|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfacets.util.Tracer
facets.core.app.AppActions
facets.facet.app.FacetAppActions
facets.facet.app.FileAppActions
public class FileAppActions
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 STarget s added in newSurfaceRootElements() . |
static int |
TARGET_SAVE
Index into file STarget s added in newSurfaceRootElements() . |
static int |
TARGETS_FILE
Index into file STarget s added in newSurfaceRootElements() . |
static int |
TARGETS_LAST
Index into file STarget s added in newSurfaceRootElements() . |
static int |
TARGETS_RECENT
Index into file STarget s 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 |
---|
public static final int TARGETS_FILE
STarget
s added in newSurfaceRootElements()
.
public static final int TARGET_SAVE
STarget
s added in newSurfaceRootElements()
.
public static final int TARGET_REVERT
STarget
s added in newSurfaceRootElements()
.
public static final int TARGETS_RECENT
STarget
s added in newSurfaceRootElements()
.
public static final int TARGETS_LAST
STarget
s added in newSurfaceRootElements()
.
Constructor Detail |
---|
public FileAppActions(ActionAppSurface app_)
Method Detail |
---|
protected STarget[] newSurfaceRootElements()
Targeter elements can be accessed using the following additional indices:
TARGETS_FILE
- fileOpen(File)
etc;
TARGETS_RECENT
- recent files list
The contents of TARGETS_FILE
are determined by
AppSurface.spec
newSurfaceRootElements
in class FacetAppActions
protected final void surfaceRetargeted()
surfaceRetargeted
in class AppActions
public java.io.File getOpeningContentSourceFile()
Depending on nature values, usually launches file chooser dialog.
getOpeningContentSourceFile
in class AppActions
protected final Dialogs.Response contentIsRemovable(java.lang.String dialogTitle, AppSurface.Contenter content)
contentIsRemovable
in class AppActions
public final AppFileValues values()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |