Save This Page
Home » j2ssh-0.2.9-src » com.sshtools.common.ui » [javadoc | source]
com.sshtools.common.ui
abstract public class: SshToolsApplicationPanel [javadoc | source]
java.lang.Object
   java.awt.Component
      java.awt.Container
         javax.swing.JComponent
            javax.swing.JPanel
               com.sshtools.common.ui.SshToolsApplicationPanel

All Implemented Interfaces:
    Accessible, TransferHandler$HasGetTransferHandler, Serializable, MenuContainer, ImageObserver

Direct Known Subclasses:
    SshToolsApplicationSessionPanel, SshToolsApplicationClientPanel

Nested Class Summary:
public static class  SshToolsApplicationPanel.ActionMenu   
class  SshToolsApplicationPanel.ToolBarActionComparator   
class  SshToolsApplicationPanel.ContextActionComparator   
class  SshToolsApplicationPanel.MenuItemActionComparator   
class  SshToolsApplicationPanel.ConnectionFileFilter   
Field Summary
protected  Log log     
protected  SshToolsApplication application     
protected  JMenuBar menuBar     
protected  JToolBar toolBar     
protected  JPopupMenu contextMenu     
protected  SshToolsApplicationContainer container     
protected  Vector actions     
protected  HashMap actionsVisible     
protected  boolean toolsVisible     
protected  Vector actionMenus     
Fields inherited from javax.swing.JComponent:
WHEN_FOCUSED,  WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,  WHEN_IN_FOCUSED_WINDOW,  UNDEFINED_CONDITION,  TOOL_TIP_TEXT_KEY
Fields inherited from java.awt.Component:
TOP_ALIGNMENT,  CENTER_ALIGNMENT,  BOTTOM_ALIGNMENT,  LEFT_ALIGNMENT,  RIGHT_ALIGNMENT
Constructor:
 public SshToolsApplicationPanel() 
 public SshToolsApplicationPanel(LayoutManager mgr) 
    Creates a new SshToolsApplicationPanel object.
    Parameters:
    mgr -
Method from com.sshtools.common.ui.SshToolsApplicationPanel Summary:
addFavorite,   canClose,   close,   deregisterAction,   getAction,   getActionMenu,   getApplication,   getContainer,   getContextMenu,   getIcon,   getJMenuBar,   getStatusBar,   getToolBar,   init,   isConnected,   isToolsVisible,   rebuildActionComponents,   registerAction,   registerActionMenu,   setActionVisible,   setAvailableActions,   setContainer,   setContainerTitle,   setMenuBarVisible,   setStatusBarVisible,   setToolBarVisible,   setToolsVisible,   showErrorMessage,   showErrorMessage,   showExceptionMessage,   showOptions
Methods from javax.swing.JPanel:
getAccessibleContext,   getUI,   getUIClassID,   setUI,   updateUI
Methods from javax.swing.JComponent:
addAncestorListener,   addNotify,   addVetoableChangeListener,   computeVisibleRect,   contains,   createToolTip,   disable,   enable,   firePropertyChange,   firePropertyChange,   firePropertyChange,   getAccessibleContext,   getActionForKeyStroke,   getActionMap,   getAlignmentX,   getAlignmentY,   getAncestorListeners,   getAutoscrolls,   getBaseline,   getBaselineResizeBehavior,   getBorder,   getBounds,   getClientProperty,   getComponentPopupMenu,   getConditionForKeyStroke,   getDebugGraphicsOptions,   getDefaultLocale,   getFontMetrics,   getGraphics,   getHeight,   getInheritsPopupMenu,   getInputMap,   getInputMap,   getInputVerifier,   getInsets,   getInsets,   getListeners,   getLocation,   getMaximumSize,   getMinimumSize,   getNextFocusableComponent,   getPopupLocation,   getPreferredSize,   getRegisteredKeyStrokes,   getRootPane,   getSize,   getToolTipLocation,   getToolTipText,   getToolTipText,   getTopLevelAncestor,   getTransferHandler,   getUIClassID,   getVerifyInputWhenFocusTarget,   getVetoableChangeListeners,   getVisibleRect,   getWidth,   getX,   getY,   grabFocus,   isDoubleBuffered,   isLightweightComponent,   isManagingFocus,   isOpaque,   isOptimizedDrawingEnabled,   isPaintingForPrint,   isPaintingTile,   isRequestFocusEnabled,   isValidateRoot,   paint,   paintImmediately,   paintImmediately,   print,   printAll,   putClientProperty,   registerKeyboardAction,   registerKeyboardAction,   removeAncestorListener,   removeNotify,   removeVetoableChangeListener,   repaint,   repaint,   requestDefaultFocus,   requestFocus,   requestFocus,   requestFocusInWindow,   resetKeyboardActions,   reshape,   revalidate,   scrollRectToVisible,   setActionMap,   setAlignmentX,   setAlignmentY,   setAutoscrolls,   setBackground,   setBorder,   setComponentPopupMenu,   setDebugGraphicsOptions,   setDefaultLocale,   setDoubleBuffered,   setEnabled,   setFocusTraversalKeys,   setFont,   setForeground,   setInheritsPopupMenu,   setInputMap,   setInputVerifier,   setMaximumSize,   setMinimumSize,   setNextFocusableComponent,   setOpaque,   setPreferredSize,   setRequestFocusEnabled,   setToolTipText,   setTransferHandler,   setVerifyInputWhenFocusTarget,   setVisible,   unregisterKeyboardAction,   update,   updateUI
Methods from java.awt.Container:
add,   add,   add,   add,   add,   addContainerListener,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   applyComponentOrientation,   areFocusTraversalKeysSet,   countComponents,   deliverEvent,   doLayout,   findComponentAt,   findComponentAt,   getAlignmentX,   getAlignmentY,   getComponent,   getComponentAt,   getComponentAt,   getComponentCount,   getComponentZOrder,   getComponents,   getContainerListeners,   getFocusTraversalKeys,   getFocusTraversalPolicy,   getInsets,   getLayout,   getListeners,   getMaximumSize,   getMinimumSize,   getMousePosition,   getPreferredSize,   insets,   invalidate,   isAncestorOf,   isFocusCycleRoot,   isFocusCycleRoot,   isFocusTraversalPolicyProvider,   isFocusTraversalPolicySet,   layout,   list,   list,   locate,   minimumSize,   paint,   paintComponents,   preferredSize,   print,   printComponents,   remove,   remove,   removeAll,   removeContainerListener,   removeNotify,   setComponentZOrder,   setFocusCycleRoot,   setFocusTraversalKeys,   setFocusTraversalPolicy,   setFocusTraversalPolicyProvider,   setFont,   setLayout,   transferFocusBackward,   transferFocusDownCycle,   update,   validate
Methods from java.awt.Component:
action,   add,   addComponentListener,   addFocusListener,   addHierarchyBoundsListener,   addHierarchyListener,   addInputMethodListener,   addKeyListener,   addMouseListener,   addMouseMotionListener,   addMouseWheelListener,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   applyComponentOrientation,   areFocusTraversalKeysSet,   bounds,   checkImage,   checkImage,   contains,   contains,   createImage,   createImage,   createVolatileImage,   createVolatileImage,   deliverEvent,   disable,   dispatchEvent,   doLayout,   enable,   enable,   enableInputMethods,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   getAccessibleContext,   getAlignmentX,   getAlignmentY,   getBackground,   getBaseline,   getBaselineResizeBehavior,   getBounds,   getBounds,   getColorModel,   getComponentAt,   getComponentAt,   getComponentListeners,   getComponentOrientation,   getCursor,   getDropTarget,   getFocusCycleRootAncestor,   getFocusListeners,   getFocusTraversalKeys,   getFocusTraversalKeysEnabled,   getFont,   getFontMetrics,   getForeground,   getGraphics,   getGraphicsConfiguration,   getHeight,   getHierarchyBoundsListeners,   getHierarchyListeners,   getIgnoreRepaint,   getInputContext,   getInputMethodListeners,   getInputMethodRequests,   getKeyListeners,   getListeners,   getLocale,   getLocation,   getLocation,   getLocationOnScreen,   getMaximumSize,   getMinimumSize,   getMouseListeners,   getMouseMotionListeners,   getMousePosition,   getMouseWheelListeners,   getName,   getParent,   getPeer,   getPreferredSize,   getPropertyChangeListeners,   getPropertyChangeListeners,   getSize,   getSize,   getToolkit,   getTreeLock,   getWidth,   getX,   getY,   gotFocus,   handleEvent,   hasFocus,   hide,   imageUpdate,   inside,   invalidate,   isBackgroundSet,   isCursorSet,   isDisplayable,   isDoubleBuffered,   isEnabled,   isFocusCycleRoot,   isFocusOwner,   isFocusTraversable,   isFocusable,   isFontSet,   isForegroundSet,   isLightweight,   isMaximumSizeSet,   isMinimumSizeSet,   isOpaque,   isPreferredSizeSet,   isShowing,   isValid,   isVisible,   keyDown,   keyUp,   layout,   list,   list,   list,   list,   list,   locate,   location,   lostFocus,   minimumSize,   mouseDown,   mouseDrag,   mouseEnter,   mouseExit,   mouseMove,   mouseUp,   move,   nextFocus,   paint,   paintAll,   postEvent,   preferredSize,   prepareImage,   prepareImage,   print,   printAll,   remove,   removeComponentListener,   removeFocusListener,   removeHierarchyBoundsListener,   removeHierarchyListener,   removeInputMethodListener,   removeKeyListener,   removeMouseListener,   removeMouseMotionListener,   removeMouseWheelListener,   removeNotify,   removePropertyChangeListener,   removePropertyChangeListener,   repaint,   repaint,   repaint,   repaint,   requestFocus,   requestFocusInWindow,   reshape,   resize,   resize,   setBackground,   setBounds,   setBounds,   setComponentOrientation,   setCursor,   setDropTarget,   setEnabled,   setFocusTraversalKeys,   setFocusTraversalKeysEnabled,   setFocusable,   setFont,   setForeground,   setIgnoreRepaint,   setLocale,   setLocation,   setLocation,   setMaximumSize,   setMinimumSize,   setName,   setPreferredSize,   setSize,   setSize,   setVisible,   show,   show,   size,   toString,   transferFocus,   transferFocusBackward,   transferFocusUpCycle,   update,   validate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sshtools.common.ui.SshToolsApplicationPanel Detail:
 public  void addFavorite(StandardAction action) 
 abstract public boolean canClose()
    Called by the application framework to test the closing state
 abstract public  void close()
    Called by the application framework to close the panel
 public  void deregisterAction(StandardAction action) 
    Deregister an action
 public StandardAction getAction(String name) 
    Get an action by name
 public SshToolsApplicationPanel.ActionMenu getActionMenu(String actionMenuName) 
    Gets a menu by name
 public SshToolsApplication getApplication() 
    Get the application attached to the panel
 public SshToolsApplicationContainer getContainer() 
    Gets the container for this panel.
 public JPopupMenu getContextMenu() 
    Get the context menu
 abstract public ResourceIcon getIcon()
    Get the icon for the panel
 public JMenuBar getJMenuBar() 
    Get the main menu
 public StatusBar getStatusBar() 
    Get the status bar
 public JToolBar getToolBar() 
    Gets the toolbar
 public  void init(SshToolsApplication application) throws SshToolsApplicationException 
    Initialize the panel
 abstract public boolean isConnected()
    Returns the connected state of the panel
 public boolean isToolsVisible() 
    Determine if the toolbar, menu and statusbar are visible
 public  void rebuildActionComponents() 
    Rebuild all the action components such as toobar, context menu
 public  void registerAction(StandardAction action) 
    Register a new action
 public  void registerActionMenu(SshToolsApplicationPanel.ActionMenu actionMenu) 
    Register a new menu
 public  void setActionVisible(String name,
    boolean visible) 
    Set an actions visible state
 abstract public  void setAvailableActions()
    Called by the application framework when a change in connection state has occured. The available actions should be enabled/disabled in this methods implementation
 public  void setContainer(SshToolsApplicationContainer container) 
    Sets the container for this panel
 public  void setContainerTitle(File file) 
    Set the title of the container
 public  void setMenuBarVisible(boolean visible) 
    Set the visible state of the menu bar
 public  void setStatusBarVisible(boolean visible) 
    Set the visible state of the statusbar
 public  void setToolBarVisible(boolean visible) 
    Set the visible state of the toolbar
 public  void setToolsVisible(boolean visible) 
    Set the visible state of all tools. This will set the toolbar, menu and status bar visible states to the value provided.
 public static  void showErrorMessage(Component parent,
    String title,
    Throwable exception) 
    Show an error message with detail
 public static  void showErrorMessage(Component parent,
    String mesg,
    String title,
    Throwable exception) 
    Show an error message with toggable detail
 public  void showExceptionMessage(String title,
    String message) 
    Show an exception message
 public  void showOptions() 
    Show the options dialog