public class FHAESAction
extends javax.swing.AbstractAction
Modifier and Type | Class and Description |
---|---|
private class |
FHAESAction.ButtonSelectionActionAdapter
ButtonSelectionActionAdapter Class.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<FHAESAction.ButtonSelectionActionAdapter> |
buttonAdapters |
java.lang.String |
i18nKey |
protected static java.lang.String |
KLUDGE_DISPLAYED_MNEMONIC_INDEX_KEY |
private static org.slf4j.Logger |
log |
protected static java.lang.String |
SELECTED_KEY |
private static long |
serialVersionUID |
private int |
SHORT_NAME_MAX_LENGTH |
java.lang.String |
shortName |
java.lang.String |
tooltip |
Constructor and Description |
---|
FHAESAction(java.lang.String name)
Simple constructor where just the name is specified.
|
FHAESAction(java.lang.String name,
java.lang.String iconName)
Constructor for this action.
|
FHAESAction(java.lang.String name,
java.lang.String iconName,
java.lang.String shortName)
Constructor for this action.
|
FHAESAction(java.lang.String name,
java.lang.String iconName,
java.lang.String shortName,
java.lang.String tooltip)
Constructor for this action.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent arg0)
TODO
|
void |
connectToggleableButton(javax.swing.AbstractButton button)
Associate a toggleable button with this action's internal toggle state (Guess defaults!).
|
void |
connectToggleableButton(javax.swing.AbstractButton button,
java.lang.Boolean defaultValue)
Associate a toggleable button with this action's internal toggle state.
|
java.lang.String |
getShortName()
Get the short name for this action if specified.
|
java.lang.String |
getToolTipText()
Get the tool tip text.
|
void |
perform(java.lang.Object source)
Perform this action.
|
protected void |
selectionStateChanged(boolean newSelectedState)
Called when our selection state changes.
|
void |
setToolTipText(java.lang.String text)
Set the tool tip text to use for this action.
|
private static final long serialVersionUID
private static final org.slf4j.Logger log
protected static final java.lang.String SELECTED_KEY
protected static final java.lang.String KLUDGE_DISPLAYED_MNEMONIC_INDEX_KEY
protected java.util.ArrayList<FHAESAction.ButtonSelectionActionAdapter> buttonAdapters
private final int SHORT_NAME_MAX_LENGTH
public java.lang.String i18nKey
public java.lang.String tooltip
public java.lang.String shortName
public FHAESAction(java.lang.String name)
name
- public FHAESAction(java.lang.String name, java.lang.String iconName)
name
- - Full human readable name for this actioniconName
- - String for the icon file namepublic FHAESAction(java.lang.String name, java.lang.String iconName, java.lang.String shortName)
name
- - Full human readable name for this actioniconName
- - String for the icon file nameshortName
- - Short name of <=13 characters for OSX toolbar buttonspublic FHAESAction(java.lang.String name, java.lang.String iconName, java.lang.String shortName, java.lang.String tooltip)
name
- - Full human readable name for this actioniconName
- - String for the icon file nameshortName
- - Short name of <=13 characters for OSX toolbar buttonstooltip
- - Tool tip to displaypublic java.lang.String getShortName()
public java.lang.String getToolTipText()
public void setToolTipText(java.lang.String text)
text
- public void perform(java.lang.Object source)
source
- protected void selectionStateChanged(boolean newSelectedState)
newSelectedState
- public void connectToggleableButton(javax.swing.AbstractButton button, java.lang.Boolean defaultValue)
button
- the button to associate withdefaultValue
- the default boolean value, or null if we should try to automatically figure this outpublic void connectToggleableButton(javax.swing.AbstractButton button)
button
- public void actionPerformed(java.awt.event.ActionEvent arg0)