facets.facet.app
Class FacetAppActions

java.lang.Object
  extended by facets.util.Tracer
      extended by facets.core.app.AppActions
          extended by facets.facet.app.FacetAppActions
Direct Known Subclasses:
FileAppActions

public class FacetAppActions
extends AppActions

AppActions for a FacetAppSurface.

FacetAppActions extends its superclass by implementing abstract actions in terms of FacetAppSurface.


Nested Class Summary
 
Nested classes/interfaces inherited from class facets.core.app.AppActions
AppActions.StatePreferences
 
Field Summary
static java.lang.String ARG_PREFERENCES
           
static java.lang.String KEY_HIDE_SIDEBAR
           
static java.lang.String KEY_HIDE_STATUS
           
static java.lang.String KEY_HIDE_TOOLBAR
           
static int TARGETS_BARS_LAYOUT
           
static int TARGETS_LAST
           
static java.lang.String[] TEXTS_DEFAULT
           
 
Fields inherited from class facets.core.app.AppActions
app, BLOCKING_RUBRIC_1, BLOCKING_TITLE_0, CANCEL_RUBRIC_3, CANCEL_TITLE_2, KEY_EXTRAS_SPLIT, KEY_SHOW_EXTRAS, KEY_SHOW_PREFERENCES, TARGETS_CORE, TARGETS_HELP, TARGETS_NEW, TARGETS_WINDOW, TITLE_CLOSE_CONTENT
 
Constructor Summary
FacetAppActions(ActionAppSurface app)
           
 
Method Summary
protected  void attemptClose()
          Called by the STrigger with title AppConstants.TITLE_APP_CLOSE created by the default implementation of AppActions.newSurfaceRootElements().
protected  AppActions.StatePreferences lazyPreferences()
          Implements abstract method.
protected  STarget[] newSurfaceRootElements()
          Overrides superclass method.
protected  STarget[] useBarLayoutTargets(STarget tools, STarget side, STarget status)
          Define which targets should be exposed by STogglings in the surface.
 
Methods inherited from class facets.core.app.AppActions
contentIsRemovable, getOpeningContentSourceFile, handleWatchCall, launchAbout, launchPreferences, newWindowTargets, revertContent, setWindowCloseLiveState, showPreferences, surfaceRetargeted, updateLayout, windowTryClose
 
Methods inherited from class facets.util.Tracer
trace, trace, trace, trace, trace, traceDebug, traceDebug, traceObjectText, traceOutput, traceOutputWithClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXTS_DEFAULT

public static final java.lang.String[] TEXTS_DEFAULT

TARGETS_BARS_LAYOUT

public static final int TARGETS_BARS_LAYOUT
See Also:
Constant Field Values

TARGETS_LAST

public static final int TARGETS_LAST
See Also:
Constant Field Values

KEY_HIDE_TOOLBAR

public static final java.lang.String KEY_HIDE_TOOLBAR
See Also:
Constant Field Values

KEY_HIDE_SIDEBAR

public static final java.lang.String KEY_HIDE_SIDEBAR
See Also:
Constant Field Values

KEY_HIDE_STATUS

public static final java.lang.String KEY_HIDE_STATUS
See Also:
Constant Field Values

ARG_PREFERENCES

public static final java.lang.String ARG_PREFERENCES
See Also:
Constant Field Values
Constructor Detail

FacetAppActions

public FacetAppActions(ActionAppSurface app)
Method Detail

newSurfaceRootElements

protected STarget[] newSurfaceRootElements()
Overrides superclass method.

Adds the STogglings returned by useBarLayoutTargets(STarget, STarget, STarget)

Overrides:
newSurfaceRootElements in class AppActions

attemptClose

protected final void attemptClose()
Description copied from class: AppActions
Called by the STrigger with title AppConstants.TITLE_APP_CLOSE created by the default implementation of AppActions.newSurfaceRootElements().

Specified by:
attemptClose in class AppActions

useBarLayoutTargets

protected STarget[] useBarLayoutTargets(STarget tools,
                                        STarget side,
                                        STarget status)
Define which targets should be exposed by STogglings in the surface.

Indexed by TARGETS_BARS_LAYOUT


lazyPreferences

protected final AppActions.StatePreferences lazyPreferences()
Implements abstract method.

Delegates finally to )

Specified by:
lazyPreferences in class AppActions