net.sf.jftp
Class JFtp
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.sf.jftp.JFtp
- All Implemented Interfaces:
- javax.accessibility.Accessible, javax.swing.event.ChangeListener, java.awt.event.ComponentListener, java.util.EventListener, java.awt.image.ImageObserver, Logger, java.awt.MenuContainer, java.io.Serializable, java.awt.event.WindowListener
- public class JFtp
- extends javax.swing.JPanel
- implements java.awt.event.WindowListener, java.awt.event.ComponentListener, Logger, javax.swing.event.ChangeListener
- See Also:
- Serialized Form
| Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
|
Constructor Summary |
JFtp()
|
JFtp(boolean mainUsed)
|
|
Method Summary |
void |
addBackgroundImage()
|
void |
addConnection(java.lang.String name,
BasicConnection con)
|
void |
addLocalConnection(java.lang.String name,
BasicConnection con)
|
void |
addToDesktop(java.lang.String title,
java.awt.Component c,
int w,
int h)
|
protected void |
chooseHost()
|
void |
clearLog()
|
void |
closeCurrentLocalTab()
|
void |
closeCurrentTab()
|
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent e)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
void |
debug(java.lang.String msg)
|
void |
debug(java.lang.String msg,
java.lang.Throwable throwable)
|
void |
debugRaw(java.lang.String msg)
|
void |
debugSize(int size,
boolean recv,
boolean last,
java.lang.String file)
|
void |
ensureLogging()
|
void |
error(java.lang.String msg)
|
void |
error(java.lang.String msg,
java.lang.Throwable throwable)
|
void |
fatal(java.lang.String msg)
|
void |
fatal(java.lang.String msg,
java.lang.Throwable throwable)
|
void |
fireUpdate()
|
static ConnectionHandler |
getConnectionHandler()
|
static java.lang.String |
getHost()
|
static java.lang.String |
getVersion()
|
void |
info(java.lang.String msg)
|
void |
info(java.lang.String msg,
java.lang.Throwable throwable)
|
void |
init()
|
static void |
localUpdate()
|
static void |
main(java.lang.String[] argv)
|
static void |
remoteUpdate()
|
static void |
safeDisconnect()
|
static void |
setHost(java.lang.String which)
|
void |
setLookAndFeel(java.lang.String name)
|
void |
stateChanged(javax.swing.event.ChangeEvent e)
|
void |
switchToInsomniacUI()
|
static void |
updateMenuBar()
|
void |
warn(java.lang.String msg)
|
void |
warn(java.lang.String msg,
java.lang.Throwable throwable)
|
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
mainUsed
public static boolean mainUsed
statusP
public static StatusPanel statusP
statusL
public static javax.swing.JLabel statusL
mainFrame
public static javax.swing.JFrame mainFrame
localDir
public static Dir localDir
remoteDir
public static Dir remoteDir
dList
public static DownloadList dList
dQueue
public static DownloadQueue dQueue
uiBlocked
public static boolean uiBlocked
hostinfo
public static HostInfo hostinfo
remoteConnectionPanel
public javax.swing.JTabbedPane remoteConnectionPanel
localConnectionPanel
public javax.swing.JTabbedPane localConnectionPanel
desktop
public static javax.swing.JDesktopPane desktop
log
public static javax.swing.JTextArea log
hc
public HostChooser hc
menuBar
public static AppMenuBar menuBar
CAPACITY
public static final int CAPACITY
- See Also:
- Constant Field Values
JFtp
public JFtp()
JFtp
public JFtp(boolean mainUsed)
init
public void init()
chooseHost
protected void chooseHost()
getHost
public static java.lang.String getHost()
setHost
public static void setHost(java.lang.String which)
localUpdate
public static void localUpdate()
remoteUpdate
public static void remoteUpdate()
windowClosing
public void windowClosing(java.awt.event.WindowEvent e)
- Specified by:
windowClosing in interface java.awt.event.WindowListener
safeDisconnect
public static void safeDisconnect()
windowClosed
public void windowClosed(java.awt.event.WindowEvent e)
- Specified by:
windowClosed in interface java.awt.event.WindowListener
windowActivated
public void windowActivated(java.awt.event.WindowEvent e)
- Specified by:
windowActivated in interface java.awt.event.WindowListener
windowDeactivated
public void windowDeactivated(java.awt.event.WindowEvent e)
- Specified by:
windowDeactivated in interface java.awt.event.WindowListener
windowIconified
public void windowIconified(java.awt.event.WindowEvent e)
- Specified by:
windowIconified in interface java.awt.event.WindowListener
windowDeiconified
public void windowDeiconified(java.awt.event.WindowEvent e)
- Specified by:
windowDeiconified in interface java.awt.event.WindowListener
windowOpened
public void windowOpened(java.awt.event.WindowEvent e)
- Specified by:
windowOpened in interface java.awt.event.WindowListener
componentHidden
public void componentHidden(java.awt.event.ComponentEvent e)
- Specified by:
componentHidden in interface java.awt.event.ComponentListener
componentMoved
public void componentMoved(java.awt.event.ComponentEvent e)
- Specified by:
componentMoved in interface java.awt.event.ComponentListener
componentShown
public void componentShown(java.awt.event.ComponentEvent e)
- Specified by:
componentShown in interface java.awt.event.ComponentListener
componentResized
public void componentResized(java.awt.event.ComponentEvent e)
- Specified by:
componentResized in interface java.awt.event.ComponentListener
addBackgroundImage
public void addBackgroundImage()
main
public static void main(java.lang.String[] argv)
clearLog
public void clearLog()
debug
public void debug(java.lang.String msg)
- Specified by:
debug in interface Logger
debugRaw
public void debugRaw(java.lang.String msg)
- Specified by:
debugRaw in interface Logger
debug
public void debug(java.lang.String msg,
java.lang.Throwable throwable)
- Specified by:
debug in interface Logger
warn
public void warn(java.lang.String msg)
- Specified by:
warn in interface Logger
warn
public void warn(java.lang.String msg,
java.lang.Throwable throwable)
- Specified by:
warn in interface Logger
error
public void error(java.lang.String msg)
- Specified by:
error in interface Logger
error
public void error(java.lang.String msg,
java.lang.Throwable throwable)
- Specified by:
error in interface Logger
info
public void info(java.lang.String msg)
- Specified by:
info in interface Logger
info
public void info(java.lang.String msg,
java.lang.Throwable throwable)
- Specified by:
info in interface Logger
fatal
public void fatal(java.lang.String msg)
- Specified by:
fatal in interface Logger
fatal
public void fatal(java.lang.String msg,
java.lang.Throwable throwable)
- Specified by:
fatal in interface Logger
debugSize
public void debugSize(int size,
boolean recv,
boolean last,
java.lang.String file)
getVersion
public static java.lang.String getVersion()
getConnectionHandler
public static ConnectionHandler getConnectionHandler()
fireUpdate
public void fireUpdate()
ensureLogging
public void ensureLogging()
setLookAndFeel
public void setLookAndFeel(java.lang.String name)
addConnection
public void addConnection(java.lang.String name,
BasicConnection con)
addLocalConnection
public void addLocalConnection(java.lang.String name,
BasicConnection con)
stateChanged
public void stateChanged(javax.swing.event.ChangeEvent e)
- Specified by:
stateChanged in interface javax.swing.event.ChangeListener
closeCurrentTab
public void closeCurrentTab()
closeCurrentLocalTab
public void closeCurrentLocalTab()
addToDesktop
public void addToDesktop(java.lang.String title,
java.awt.Component c,
int w,
int h)
updateMenuBar
public static void updateMenuBar()
switchToInsomniacUI
public void switchToInsomniacUI()