public abstract class SshToolsApplicationPanel
extends javax.swing.JPanel
Modifier and Type | Class and Description |
---|---|
static class |
SshToolsApplicationPanel.ActionMenu |
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
actionMenus |
protected java.util.Vector |
actions |
protected java.util.HashMap |
actionsVisible |
protected SshToolsApplication |
application |
protected SshToolsApplicationContainer |
container |
protected javax.swing.JPopupMenu |
contextMenu |
protected org.apache.commons.logging.Log |
log |
protected javax.swing.JMenuBar |
menuBar |
protected javax.swing.JToolBar |
toolBar |
protected boolean |
toolsVisible |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
SshToolsApplicationPanel()
Creates a new SshToolsApplicationPanel object.
|
SshToolsApplicationPanel(java.awt.LayoutManager mgr)
Creates a new SshToolsApplicationPanel object.
|
Modifier and Type | Method and Description |
---|---|
void |
addFavorite(StandardAction action) |
abstract boolean |
canClose()
Called by the application framework to test the closing state
|
abstract void |
close()
Called by the application framework to close the panel
|
void |
deregisterAction(StandardAction action)
Deregister an action
|
StandardAction |
getAction(java.lang.String name)
Get an action by name
|
SshToolsApplicationPanel.ActionMenu |
getActionMenu(java.lang.String actionMenuName)
Gets a menu by name
|
SshToolsApplication |
getApplication()
Get the application attached to the panel
|
SshToolsApplicationContainer |
getContainer()
Gets the container for this panel.
|
javax.swing.JPopupMenu |
getContextMenu()
Get the context menu
|
abstract ResourceIcon |
getIcon()
Get the icon for the panel
|
javax.swing.JMenuBar |
getJMenuBar()
Get the main menu
|
StatusBar |
getStatusBar()
Get the status bar
|
javax.swing.JToolBar |
getToolBar()
Gets the toolbar
|
void |
init(SshToolsApplication application)
Initialize the panel
|
abstract boolean |
isConnected()
Returns the connected state of the panel
|
boolean |
isToolsVisible()
Determine if the toolbar, menu and statusbar are visible
|
void |
rebuildActionComponents()
Rebuild all the action components such as toobar, context menu
|
void |
registerAction(StandardAction action)
Register a new action
|
void |
registerActionMenu(SshToolsApplicationPanel.ActionMenu actionMenu)
Register a new menu
|
void |
setActionVisible(java.lang.String name,
boolean visible)
Set an actions visible state
|
abstract void |
setAvailableActions()
Called by the application framework when a change in connection state
has occured.
|
void |
setContainer(SshToolsApplicationContainer container)
Sets the container for this panel
|
void |
setContainerTitle(java.io.File file)
Set the title of the container
|
void |
setMenuBarVisible(boolean visible)
Set the visible state of the menu bar
|
void |
setStatusBarVisible(boolean visible)
Set the visible state of the statusbar
|
void |
setToolBarVisible(boolean visible)
Set the visible state of the toolbar
|
void |
setToolsVisible(boolean visible)
Set the visible state of all tools.
|
static void |
showErrorMessage(java.awt.Component parent,
java.lang.String mesg,
java.lang.String title,
java.lang.Throwable exception)
Show an error message with toggable detail
|
static void |
showErrorMessage(java.awt.Component parent,
java.lang.String title,
java.lang.Throwable exception)
Show an error message with detail
|
void |
showExceptionMessage(java.lang.String title,
java.lang.String message)
Show an exception message
|
void |
showOptions()
Show the options dialog
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
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, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, 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
protected org.apache.commons.logging.Log log
protected SshToolsApplication application
protected javax.swing.JMenuBar menuBar
protected javax.swing.JToolBar toolBar
protected javax.swing.JPopupMenu contextMenu
protected SshToolsApplicationContainer container
protected java.util.Vector actions
protected java.util.HashMap actionsVisible
protected boolean toolsVisible
protected java.util.Vector actionMenus
public SshToolsApplicationPanel()
public SshToolsApplicationPanel(java.awt.LayoutManager mgr)
mgr
- public abstract boolean canClose()
public abstract void close()
public abstract void setAvailableActions()
public void setActionVisible(java.lang.String name, boolean visible)
name
- visible
- public SshToolsApplicationContainer getContainer()
public void setContainer(SshToolsApplicationContainer container)
container
- public void registerActionMenu(SshToolsApplicationPanel.ActionMenu actionMenu)
actionMenu
- public SshToolsApplicationPanel.ActionMenu getActionMenu(java.lang.String actionMenuName)
actionMenuName
- public StandardAction getAction(java.lang.String name)
name
- public void deregisterAction(StandardAction action)
action
- public void registerAction(StandardAction action)
action
- public void init(SshToolsApplication application) throws SshToolsApplicationException
application
- SshToolsApplicationException
public void showOptions()
public void rebuildActionComponents()
public boolean isToolsVisible()
public void addFavorite(StandardAction action)
public void setMenuBarVisible(boolean visible)
visible
- public void setToolBarVisible(boolean visible)
visible
- public void setStatusBarVisible(boolean visible)
visible
- public void setToolsVisible(boolean visible)
visible
- public void showExceptionMessage(java.lang.String title, java.lang.String message)
title
- message
- public static void showErrorMessage(java.awt.Component parent, java.lang.String title, java.lang.Throwable exception)
parent
- title
- exception
- public static void showErrorMessage(java.awt.Component parent, java.lang.String mesg, java.lang.String title, java.lang.Throwable exception)
parent
- mesg
- title
- exception
- public abstract boolean isConnected()
public void setContainerTitle(java.io.File file)
file
- public javax.swing.JToolBar getToolBar()
public javax.swing.JPopupMenu getContextMenu()
public javax.swing.JMenuBar getJMenuBar()
public StatusBar getStatusBar()
public SshToolsApplication getApplication()
public abstract ResourceIcon getIcon()
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.