|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xnap.gui.action.FileActionManager
public class FileActionManager
Provides a helper class for the file actions. All
PasteFileAction should call addPasteListener(javax.swing.Action) to get
enabled or disabled when actions are pending.
All calls to this class need to be swing synchronized.
CopyFileAction,
CutFileAction,
PasteFileAction| Field Summary | |
|---|---|
static int |
ACTION_COPY
The action type for a copy operation. |
static int |
ACTION_DO_NOTHING
The action type for no pending action. |
static int |
ACTION_MOVE
The action type for a move operation. |
| Method Summary | |
|---|---|
static void |
addPasteListener(javax.swing.Action action)
Adds a listener. |
static int |
getAction()
Returns the pending action. |
static java.io.File[] |
getFiles()
Returns the pending File objects. |
static void |
setFiles(java.io.File[] files,
int action)
Sets the File objects and action that a
subsequent PasteFileAction would perform. |
static void |
unsetFiles()
Cancels the pending action. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ACTION_DO_NOTHING
public static final int ACTION_COPY
public static final int ACTION_MOVE
| Method Detail |
|---|
public static void addPasteListener(javax.swing.Action action)
action object will be enabled, when
an action is pending and disabled after the paste action has been
performed.
public static int getAction()
public static java.io.File[] getFiles()
File objects.
public static void setFiles(java.io.File[] files,
int action)
File objects and action that a
subsequent PasteFileAction would perform.
public static void unsetFiles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||