|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lightdev.app.filemanager.ui.FileActions
public class FileActions
Helper class to centrally provide a number of file related actions inside application FileManager. Provided actions are create folder, delete files, extract archive, pack folder, rename file.
| Nested Class Summary | |
|---|---|
class |
FileActions.FileAction
Generic action class to use with different action commands. |
| Field Summary | |
|---|---|
static int |
CREATE_FOLDER
index of action command inside 'names' |
static int |
DELETE_FILES
index of action command inside 'names' |
static int |
EXTRACT_ARCHIVE
index of action command inside 'names' |
static String[] |
names
string constants for file action commands |
static int |
PACK_FOLDER
index of action command inside 'names' |
static int |
RENAME_FILE
index of action command inside 'names' |
| Constructor Summary | |
|---|---|
FileActions()
create a new instance of class FileActions |
|
| Method Summary | |
|---|---|
Action |
getAction(String actionCommand)
get an action from the actions provided by this class |
void |
mapActions(JComponent c)
map actions provided by this class to a given component using the component's action map |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String[] names
public static final int CREATE_FOLDER
public static final int DELETE_FILES
public static final int EXTRACT_ARCHIVE
public static final int PACK_FOLDER
public static final int RENAME_FILE
| Constructor Detail |
|---|
public FileActions()
| Method Detail |
|---|
public Action getAction(String actionCommand)
actionCommand - the action command to get the action for
public void mapActions(JComponent c)
c -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||