|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.sshtools.common.ui.SshToolsApplicationPanel
public abstract class SshToolsApplicationPanel
| Nested Class Summary | |
|---|---|
static class |
SshToolsApplicationPanel.ActionMenu
|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
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
|
| 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 | |
|---|---|
SshToolsApplicationPanel()
Creates a new SshToolsApplicationPanel object. |
|
SshToolsApplicationPanel(java.awt.LayoutManager mgr)
Creates a new SshToolsApplicationPanel object. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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 |
| Methods inherited from class java.awt.Container |
|---|
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 |
| 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, 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, hide, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public SshToolsApplicationPanel()
public SshToolsApplicationPanel(java.awt.LayoutManager mgr)
mgr - | Method Detail |
|---|
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 -
SshToolsApplicationExceptionpublic 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||