|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
com.myjavaworld.gui.MFrame
com.myjavaworld.jftp.JFTP
public class JFTP
The main window that contains various menu items, tool bar and manages various FTP sessions.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static File |
DATA_HOME
|
static JFTPPreferences |
prefs
|
static File |
USER_HOME
|
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JFTP()
Creates an instance of JFTP, the main window and the central point for the software. |
|
JFTP(boolean applet)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent evt)
|
void |
closeSession()
|
void |
exit()
Closes JFTP |
static String |
getClientClassName(String clientName)
Returns the client class name given the name of the client implementation. |
static String |
getClientName(String clientClassName)
Returns the name of the implementation given the class name. |
FTPSession |
getCurrentSession()
Returns the currently selected session. |
static String[] |
getInstalledClients()
Gets the installed FTP client implementations. |
static String[] |
getInstalledParsers()
Returns an array of installed list parsers |
static String[] |
getInstalledThemes()
Returns all the installed theme names |
static String |
getParserClassName(String parserName)
Returns the class name of the List Parser, given the name of the parser |
static String |
getParserName(String parserClassName)
Returns the parser name given the parser class name |
static String |
getThemeClassName(String themeName)
Returns the class name implementing the given theme name |
static JFTPPreferences |
loadPreferences()
Loads the preferences by reading them from the file. |
void |
newSession()
Creates a new FTP session |
static void |
savePreferences(JFTPPreferences prefs)
Serializes and saves the preferences to a file in the USER_HOME directory. |
void |
showAboutDialog()
|
void |
showPreferencesDialog()
|
void |
stateChanged(ChangeEvent evt)
|
void |
updateSessionTitle(FTPSession session)
|
void |
updateToolBar()
Updates the state of various actions(menu items/toolbar buttons) based on the currently selected FTP session. |
void |
windowActivated(WindowEvent evt)
|
void |
windowClosed(WindowEvent evt)
|
void |
windowClosing(WindowEvent evt)
|
void |
windowDeactivated(WindowEvent evt)
|
void |
windowDeiconified(WindowEvent evt)
|
void |
windowIconified(WindowEvent evt)
|
void |
windowOpened(WindowEvent evt)
|
| Methods inherited from class com.myjavaworld.gui.MFrame |
|---|
setBusy |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final File USER_HOME
public static final File DATA_HOME
public static JFTPPreferences prefs
| Constructor Detail |
|---|
public JFTP()
public JFTP(boolean applet)
| Method Detail |
|---|
public void newSession()
public void windowOpened(WindowEvent evt)
windowOpened in interface WindowListenerpublic void windowActivated(WindowEvent evt)
windowActivated in interface WindowListenerpublic void windowDeactivated(WindowEvent evt)
windowDeactivated in interface WindowListenerpublic void windowIconified(WindowEvent evt)
windowIconified in interface WindowListenerpublic void windowDeiconified(WindowEvent evt)
windowDeiconified in interface WindowListenerpublic void windowClosing(WindowEvent evt)
windowClosing in interface WindowListenerpublic void windowClosed(WindowEvent evt)
windowClosed in interface WindowListenerpublic void stateChanged(ChangeEvent evt)
stateChanged in interface ChangeListenerpublic void closeSession()
public void exit()
public void actionPerformed(ActionEvent evt)
actionPerformed in interface ActionListenerpublic void showPreferencesDialog()
public FTPSession getCurrentSession()
public static void savePreferences(JFTPPreferences prefs)
throws IOException
prefs - Preferences
IOException - if an IO error occurs
public static JFTPPreferences loadPreferences()
throws IOException
IOException - if an IO error occurspublic static String[] getInstalledThemes()
public static String getThemeClassName(String themeName)
themeName - Name of the theme
public static String[] getInstalledParsers()
public static String getParserClassName(String parserName)
parserName - Name of the list parser
public static String getParserName(String parserClassName)
parserClassName - Class name of the list parser
public static String[] getInstalledClients()
public static String getClientClassName(String clientName)
clientName - name of the FTP client implementation
public static String getClientName(String clientClassName)
clientClassName - Class name
public void updateSessionTitle(FTPSession session)
public void showAboutDialog()
public void updateToolBar()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||