actionMenus
protected Vector actionMenus
actions
protected Vector actions
actionsVisible
protected HashMap actionsVisible
contextMenu
protected JPopupMenu contextMenu
menuBar
protected JMenuBar menuBar
toolBar
protected JToolBar toolBar
toolsVisible
protected boolean toolsVisible
canClose
public abstract boolean canClose()
Called by the application framework to test the closing state
close
public abstract void close()
Called by the application framework to close the panel
deregisterAction
public void deregisterAction(StandardAction action)
Deregister an action
getAction
public StandardAction getAction(String name)
Get an action by name
getApplication
public SshToolsApplication getApplication()
Get the application attached to the panel
getContextMenu
public JPopupMenu getContextMenu()
Get the context menu
getIcon
public abstract ResourceIcon getIcon()
Get the icon for the panel
getJMenuBar
public JMenuBar getJMenuBar()
Get the main menu
getStatusBar
public StatusBar getStatusBar()
Get the status bar
getToolBar
public JToolBar getToolBar()
Gets the toolbar
isConnected
public abstract boolean isConnected()
Returns the connected state of the panel
isToolsVisible
public boolean isToolsVisible()
Determine if the toolbar, menu and statusbar are visible
rebuildActionComponents
public void rebuildActionComponents()
Rebuild all the action components such as toobar, context menu
registerAction
public void registerAction(StandardAction action)
Register a new action
setActionVisible
public void setActionVisible(String name,
boolean visible)
Set an actions visible state
setAvailableActions
public abstract 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
setContainerTitle
public void setContainerTitle(File file)
Set the title of the container
setMenuBarVisible
public void setMenuBarVisible(boolean visible)
Set the visible state of the menu bar
setStatusBarVisible
public void setStatusBarVisible(boolean visible)
Set the visible state of the statusbar
setToolBarVisible
public void setToolBarVisible(boolean visible)
Set the visible state of the toolbar
setToolsVisible
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.
showErrorMessage
public static void showErrorMessage(Component parent,
String mesg,
String title,
Throwable exception)
Show an error message with toggable detail
parent
- mesg
- title
- exception
-
showErrorMessage
public static void showErrorMessage(Component parent,
String title,
Throwable exception)
Show an error message with detail
parent
- title
- exception
-
showExceptionMessage
public void showExceptionMessage(String title,
String message)
Show an exception message
showOptions
public void showOptions()
Show the options dialog