facets.facet.app
Class FileAppActions

java.lang.Object
  extended by facets.util.Tracer
      extended by facets.core.app.AppActions
          extended by facets.facet.app.FacetAppActions
              extended by facets.facet.app.FileAppActions

public class FileAppActions
extends FacetAppActions

FacetAppActions for an application that reads and writes files.

FileAppActions extends its superclass with a practical API for using files as content sources and sinks.


Nested Class Summary
 
Nested classes/interfaces inherited from class facets.core.app.AppActions
AppActions.StatePreferences
 
Field Summary
static int TARGET_REVERT
          Index into file STargets added in newSurfaceRootElements().
static int TARGET_SAVE
          Index into file STargets added in newSurfaceRootElements().
static int TARGETS_FILE
          Index into file STargets added in newSurfaceRootElements().
static int TARGETS_LAST
          Index into file STargets added in newSurfaceRootElements().
static int TARGETS_RECENT
          Index into file STargets added in newSurfaceRootElements().
 
Fields inherited from class facets.facet.app.FacetAppActions
ARG_PREFERENCES, KEY_HIDE_SIDEBAR, KEY_HIDE_STATUS, KEY_HIDE_TOOLBAR, TARGETS_BARS_LAYOUT, 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
FileAppActions(ActionAppSurface app_)
           
 
Method Summary
protected  Dialogs.Response contentIsRemovable(java.lang.String dialogTitle, AppSurface.Contenter content)
           
 java.io.File getOpeningContentSourceFile()
          Re-implementation of superclass method.
protected  STarget[] newSurfaceRootElements()
          Adds target groups to super implementation.
protected  void surfaceRetargeted()
          Re-implementation adjusting file menu live states.
 AppFileValues values()
           
 
Methods inherited from class facets.facet.app.FacetAppActions
attemptClose, lazyPreferences, useBarLayoutTargets
 
Methods inherited from class facets.core.app.AppActions
handleWatchCall, launchAbout, launchPreferences, newWindowTargets, revertContent, setWindowCloseLiveState, showPreferences, 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

TARGETS_FILE

public static final int TARGETS_FILE
Index into file STargets added in newSurfaceRootElements().

See Also:
Constant Field Values

TARGET_SAVE

public static final int TARGET_SAVE
Index into file STargets added in newSurfaceRootElements().

See Also:
Constant Field Values

TARGET_REVERT

public static final int TARGET_REVERT
Index into file STargets added in newSurfaceRootElements().

See Also:
Constant Field Values

TARGETS_RECENT

public static final int TARGETS_RECENT
Index into file STargets added in newSurfaceRootElements().

See Also:
Constant Field Values

TARGETS_LAST

public static final int TARGETS_LAST
Index into file STargets added in newSurfaceRootElements().

See Also:
Constant Field Values
Constructor Detail

FileAppActions

public FileAppActions(ActionAppSurface app_)
Method Detail

newSurfaceRootElements

protected STarget[] newSurfaceRootElements()
Adds target groups to super implementation.

Targeter elements can be accessed using the following additional indices:

The contents of TARGETS_FILE are determined by AppSurface.spec

Overrides:
newSurfaceRootElements in class FacetAppActions

surfaceRetargeted

protected final void surfaceRetargeted()
Re-implementation adjusting file menu live states.

Overrides:
surfaceRetargeted in class AppActions

getOpeningContentSourceFile

public java.io.File getOpeningContentSourceFile()
Re-implementation of superclass method.

Depending on nature values, usually launches file chooser dialog.

Overrides:
getOpeningContentSourceFile in class AppActions

contentIsRemovable

protected final Dialogs.Response contentIsRemovable(java.lang.String dialogTitle,
                                                    AppSurface.Contenter content)
Overrides:
contentIsRemovable in class AppActions

values

public final AppFileValues values()