Package com.sshtools.common.ui
Class StandardAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- com.sshtools.common.ui.StandardAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
- Direct Known Subclasses:
AboutAction
,CloseAction
,ConnectionPropertiesAction
,EditAction
,ExitAction
,MenuAction
,NewAction
,NewWindowAction
,OpenAction
,OptionsAction
,PrintAction
,PrintPreviewAction
,RecordAction
,RefreshAction
,SaveAction
,SaveAsAction
,SessionProviderAction
,StopAction
public abstract class StandardAction extends javax.swing.AbstractAction
- Version:
- $Revision: 1.16 $
- Author:
- $author$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONTEXT_MENU_GROUP
static java.lang.String
CONTEXT_MENU_WEIGHT
static java.lang.String
HIDE_TOOLBAR_TEXT
static java.lang.String
IMAGE_DIR
static java.lang.String
IS_TOGGLE_BUTTON
static java.lang.String
LARGE_ICON
static java.lang.String
MENU_ICON
static java.lang.String
MENU_ITEM_GROUP
static java.lang.String
MENU_ITEM_WEIGHT
static java.lang.String
MENU_NAME
static java.lang.String
ON_CONTEXT_MENU
static java.lang.String
ON_MENUBAR
static java.lang.String
ON_TOOLBAR
static java.lang.String
TOOLBAR_GROUP
static java.lang.String
TOOLBAR_WEIGHT
-
Constructor Summary
Constructors Constructor Description StandardAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent evt)
void
addActionListener(java.awt.event.ActionListener l)
java.lang.String
getActionCommand()
javax.swing.ImageIcon
getIcon(java.lang.String name)
java.lang.String
getLongDescription()
java.lang.String
getName()
java.lang.String
getShortDescription()
java.lang.String
getSmallIcon()
void
removeActionListener(java.awt.event.ActionListener l)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
ON_TOOLBAR
public static final java.lang.String ON_TOOLBAR
- See Also:
- Constant Field Values
-
TOOLBAR_GROUP
public static final java.lang.String TOOLBAR_GROUP
- See Also:
- Constant Field Values
-
TOOLBAR_WEIGHT
public static final java.lang.String TOOLBAR_WEIGHT
- See Also:
- Constant Field Values
-
ON_MENUBAR
public static final java.lang.String ON_MENUBAR
- See Also:
- Constant Field Values
-
MENU_NAME
public static final java.lang.String MENU_NAME
- See Also:
- Constant Field Values
-
MENU_ITEM_GROUP
public static final java.lang.String MENU_ITEM_GROUP
- See Also:
- Constant Field Values
-
MENU_ITEM_WEIGHT
public static final java.lang.String MENU_ITEM_WEIGHT
- See Also:
- Constant Field Values
-
IMAGE_DIR
public static final java.lang.String IMAGE_DIR
- See Also:
- Constant Field Values
-
HIDE_TOOLBAR_TEXT
public static final java.lang.String HIDE_TOOLBAR_TEXT
- See Also:
- Constant Field Values
-
IS_TOGGLE_BUTTON
public static final java.lang.String IS_TOGGLE_BUTTON
- See Also:
- Constant Field Values
-
LARGE_ICON
public static final java.lang.String LARGE_ICON
- See Also:
- Constant Field Values
-
ON_CONTEXT_MENU
public static final java.lang.String ON_CONTEXT_MENU
- See Also:
- Constant Field Values
-
CONTEXT_MENU_GROUP
public static final java.lang.String CONTEXT_MENU_GROUP
- See Also:
- Constant Field Values
-
CONTEXT_MENU_WEIGHT
public static final java.lang.String CONTEXT_MENU_WEIGHT
- See Also:
- Constant Field Values
-
MENU_ICON
public static final java.lang.String MENU_ICON
- See Also:
- Constant Field Values
-
-
Method Detail
-
getActionCommand
public java.lang.String getActionCommand()
- Returns:
-
getShortDescription
public java.lang.String getShortDescription()
- Returns:
-
getLongDescription
public java.lang.String getLongDescription()
- Returns:
-
getName
public java.lang.String getName()
- Returns:
-
getSmallIcon
public java.lang.String getSmallIcon()
- Returns:
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)
- Parameters:
evt
-
-
addActionListener
public void addActionListener(java.awt.event.ActionListener l)
- Parameters:
l
-
-
removeActionListener
public void removeActionListener(java.awt.event.ActionListener l)
- Parameters:
l
-
-
getIcon
public javax.swing.ImageIcon getIcon(java.lang.String name)
- Parameters:
name
-- Returns:
-
-