|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lightdev.app.filemanager.FileManager
public class FileManager
The Light Development File Manager application class.
| Field Summary | |
|---|---|
static String |
ACTION_ABOUT_APP
action name constant |
static String |
ACTION_EDIT_PREFS
action name constant |
static String |
ACTION_HELP_CONTENTS
action name constant |
static String |
ACTION_OPEN_LOCAL_FILE_FRAME
action name constant |
static String |
ACTION_OPEN_PARENT_FOLDER
action name constant |
static String |
ACTION_OPEN_REMOTE_FILE_FRAME
action name constant |
static String |
ACTION_QUIT
action name constant |
static String |
ACTION_TEST
action name constant |
static FileActions |
fileActionProvider
a central place for file actions shared with other parts of the application |
protected static Logger |
logger
logger for this Application |
static String |
PK_LAF_CLASS_NAME
preferences key constant |
static FileTransferHandler |
transferHandler
the file transfer handler |
| Constructor Summary | |
|---|---|
FileManager(Level level)
create a new instance of class FileManager |
|
| Method Summary | |
|---|---|
void |
contentChanged(FileSystemEvent event)
|
void |
internalFrameActivated(InternalFrameEvent e)
needed for implementation of InternalFrameListener, unused here |
void |
internalFrameClosed(InternalFrameEvent e)
needed for implementation of InternalFrameListener, unused here |
void |
internalFrameClosing(InternalFrameEvent e)
initiate application specific handling in case an internal frame is closed, e.g. logout probably existing TREC clients, etc. |
void |
internalFrameDeactivated(InternalFrameEvent e)
needed for implementation of InternalFrameListener, unused here |
void |
internalFrameDeiconified(InternalFrameEvent e)
needed for implementation of InternalFrameListener, unused here |
void |
internalFrameIconified(InternalFrameEvent e)
needed for implementation of InternalFrameListener, unused here |
void |
internalFrameOpened(InternalFrameEvent e)
needed for implementation of InternalFrameListener, unused here |
static void |
log(String msg,
Class source,
Level level)
log an information message |
static void |
logStackTrace(Throwable ex,
Class source)
log an exception by writing the stack trace to the log as a warning |
static void |
main(String[] args)
application entry point |
void |
windowActivated(WindowEvent e)
needed for implementation of WindowListener, unused here |
void |
windowClosed(WindowEvent e)
needed for implementation of WindowListener, unused here |
void |
windowClosing(WindowEvent e)
initiate application specific handling of closing the main application frame, e.g. close open connections, etc. |
void |
windowDeactivated(WindowEvent e)
needed for implementation of WindowListener, unused here |
void |
windowDeiconified(WindowEvent e)
needed for implementation of WindowListener, unused here |
void |
windowIconified(WindowEvent e)
needed for implementation of WindowListener, unused here |
void |
windowOpened(WindowEvent e)
needed for implementation of WindowListener, unused here |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger logger
public static final FileTransferHandler transferHandler
public static FileActions fileActionProvider
public static final String ACTION_QUIT
public static final String ACTION_OPEN_LOCAL_FILE_FRAME
public static final String ACTION_OPEN_REMOTE_FILE_FRAME
public static final String ACTION_OPEN_PARENT_FOLDER
public static final String ACTION_HELP_CONTENTS
public static final String ACTION_ABOUT_APP
public static final String ACTION_TEST
public static final String ACTION_EDIT_PREFS
public static final String PK_LAF_CLASS_NAME
| Constructor Detail |
|---|
public FileManager(Level level)
level - the log level to use| Method Detail |
|---|
public static void main(String[] args)
args - command line arguments, recognised is -loglevel [level]
with [level] being one of "all", "severe", "warning",
"info", "fine", "finer", "finest", "off"; "info" is used when omitted or invalid
public static void log(String msg,
Class source,
Level level)
msg - the message stringsource - Class the class that logged this messagelevel - Level the log level the message has
public static void logStackTrace(Throwable ex,
Class source)
ex - the exception to log the stack trace forsource - Class the class the error came frompublic void windowClosing(WindowEvent e)
windowClosing in interface WindowListenerpublic void windowActivated(WindowEvent e)
windowActivated in interface WindowListenerpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenerpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenerpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenerpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenerpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListenerpublic void internalFrameClosing(InternalFrameEvent e)
internalFrameClosing in interface InternalFrameListenerpublic void internalFrameActivated(InternalFrameEvent e)
internalFrameActivated in interface InternalFrameListenerpublic void internalFrameClosed(InternalFrameEvent e)
internalFrameClosed in interface InternalFrameListenerpublic void internalFrameDeactivated(InternalFrameEvent e)
internalFrameDeactivated in interface InternalFrameListenerpublic void internalFrameDeiconified(InternalFrameEvent e)
internalFrameDeiconified in interface InternalFrameListenerpublic void internalFrameIconified(InternalFrameEvent e)
internalFrameIconified in interface InternalFrameListenerpublic void internalFrameOpened(InternalFrameEvent e)
internalFrameOpened in interface InternalFrameListenerpublic void contentChanged(FileSystemEvent event)
contentChanged in interface FileSystemListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||