Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.yaftp.ftp.gui
Class FtpSwingCustomizer  view FtpSwingCustomizer download FtpSwingCustomizer.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.yaftp.ftp.gui.FtpSwingCustomizer
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
FtpCustomizer

public class FtpSwingCustomizer
extends javax.swing.JPanel

Main Swing panel customizer

Version:
: 0.0.1

Nested Class Summary
(package private)  class FtpSwingCustomizer._FTP_DOWNLOADER_
          Class below proceed with user selections calling FTP corresponding session to proceed with File Downloads or uploads
(package private)  class FtpSwingCustomizer._FTP_OBSERVER_
           
(package private)  class FtpSwingCustomizer._POPUP_MENU_
          this class implements a closing session popup menu
(package private)  class FtpSwingCustomizer._WINDOW_RESIZER_
           
 
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
 
Field Summary
private  javax.swing.ImageIcon _CLOSE_ICON_
           
protected  com.yaftp.ftp.Ftp _curFtp
           
private  com.yaftp.utils.SwingEhnStatusBar _errors
           
private  int _ftpIndex
           
private  FtpSwingCustomizer._FTP_OBSERVER_ _ftpObserver
           
private  FtpProperties _ftpProperties
          defines the ftp configuration file to use
private  javax.swing.JTabbedPane _ftpTab
           
private  int _nbLocalFrames
           
private  java.lang.String _propertiesLoadError
           
private  int _sessionIndex
           
private  javax.swing.ImageIcon _SKULLI_ICON_
           
protected  java.beans.PropertyChangeSupport _support
           
private  FtpSwingCustomizer._WINDOW_RESIZER_ _windowResizer
           
 
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.Container
 
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
FtpSwingCustomizer()
           
 
Method Summary
private  void buildFtpPanel()
          build FTP session tab
 void decrementLocalFrames()
           
 void extendParentFrameWidth(int width)
          call this method menever you want to extend frame width before extending a contained component
 java.lang.String get_editorClassName()
           
 java.lang.String get_editorConfFileName()
           
 java.lang.String get_externalBrowserInitArgs()
           
 java.lang.String get_externalEditorInitArgs()
           
 java.lang.String get_licenseFile()
           
 int get_nbLocalFrames()
           
 java.lang.String get_prettyPrinterConfFileName()
           
 java.lang.String get_workDirectory()
           
 java.lang.String getMimeValue(java.lang.String mimeType)
           
 void incrementLocalFrames()
           
 boolean isPasvProtocol()
          returns true if protocol is defaulted to PASV
 void resizeParentFrame()
          call this method menever you want to resize frame to preferred size components
 void set_error(java.lang.String error)
           
 void set_ftpConfFile(java.lang.String ftpConfFile)
           
 void set_Object(com.yaftp.ftp.Ftp curFtp)
           
 void set_warning(java.lang.String warning)
           
 void set_windowsResizer(java.awt.Window parent)
          give the parent frame the calpability to be resized automatically depending on the selected tab component preferred size
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, 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, 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, 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, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, 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, getPropertyChangeListeners, getPropertyChangeListeners, 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, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_CLOSE_ICON_

private final javax.swing.ImageIcon _CLOSE_ICON_

_SKULLI_ICON_

private final javax.swing.ImageIcon _SKULLI_ICON_

_ftpTab

private javax.swing.JTabbedPane _ftpTab

_ftpIndex

private int _ftpIndex

_sessionIndex

private int _sessionIndex

_ftpObserver

private FtpSwingCustomizer._FTP_OBSERVER_ _ftpObserver

_errors

private com.yaftp.utils.SwingEhnStatusBar _errors

_curFtp

protected com.yaftp.ftp.Ftp _curFtp

_windowResizer

private FtpSwingCustomizer._WINDOW_RESIZER_ _windowResizer

_nbLocalFrames

private int _nbLocalFrames

_ftpProperties

private FtpProperties _ftpProperties
defines the ftp configuration file to use


_propertiesLoadError

private java.lang.String _propertiesLoadError

_support

protected java.beans.PropertyChangeSupport _support
Constructor Detail

FtpSwingCustomizer

public FtpSwingCustomizer()
Method Detail

get_nbLocalFrames

public int get_nbLocalFrames()

incrementLocalFrames

public void incrementLocalFrames()

decrementLocalFrames

public void decrementLocalFrames()

set_error

public void set_error(java.lang.String error)

set_warning

public void set_warning(java.lang.String warning)

set_windowsResizer

public void set_windowsResizer(java.awt.Window parent)
give the parent frame the calpability to be resized automatically depending on the selected tab component preferred size


set_ftpConfFile

public void set_ftpConfFile(java.lang.String ftpConfFile)

get_editorConfFileName

public java.lang.String get_editorConfFileName()

isPasvProtocol

public boolean isPasvProtocol()
returns true if protocol is defaulted to PASV


get_workDirectory

public java.lang.String get_workDirectory()

get_externalEditorInitArgs

public java.lang.String get_externalEditorInitArgs()

get_externalBrowserInitArgs

public java.lang.String get_externalBrowserInitArgs()

get_prettyPrinterConfFileName

public java.lang.String get_prettyPrinterConfFileName()

get_licenseFile

public java.lang.String get_licenseFile()

getMimeValue

public java.lang.String getMimeValue(java.lang.String mimeType)

get_editorClassName

public java.lang.String get_editorClassName()

resizeParentFrame

public void resizeParentFrame()
call this method menever you want to resize frame to preferred size components


extendParentFrameWidth

public void extendParentFrameWidth(int width)
call this method menever you want to extend frame width before extending a contained component


set_Object

public void set_Object(com.yaftp.ftp.Ftp curFtp)

buildFtpPanel

private void buildFtpPanel()
build FTP session tab