|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
org.compiere.apps.AppsAction
public final class AppsAction
Application Action. Creates Action with MenuItem and Button The ActionCommand is translated for display If translated text contains &, the next character is the Mnemonic
| Field Summary | |
|---|---|
static Insets |
BUTTON_INSETS
Button Insets |
static Dimension |
BUTTON_SIZE
Button Size |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
AppsAction(String action,
KeyStroke accelerator,
boolean toggle)
Application Action |
|
AppsAction(String action,
KeyStroke accelerator,
String text)
Application Action |
|
AppsAction(String action,
KeyStroke accelerator,
String toolTipText,
boolean toggle)
Application Action |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
ActionListener |
void |
dispose()
Dispose |
AbstractButton |
getButton()
Return Button |
JMenuItem |
getMenuItem()
Return MenuItem |
Character |
getMnemonic()
Get Mnemonic character |
String |
getName()
Get Name/ActionCommand |
boolean |
isPressed()
IsPressed |
void |
setDelegate(ActionListener al)
Set Delegate to receive the actionPerformed calls |
void |
setPressed(boolean pressed)
Toggle |
String |
toString()
String Info |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Dimension BUTTON_SIZE
public static final Insets BUTTON_INSETS
| Constructor Detail |
|---|
public AppsAction(String action,
KeyStroke accelerator,
boolean toggle)
action - base action command - used as AD_Message for Text and Icon nameaccelerator - optional keystroke for acceleratortoggle - is toggle action (maintains state)
public AppsAction(String action,
KeyStroke accelerator,
String text)
action - base action command - used as AD_Message for Text and Icon nameaccelerator - optional keystroke for acceleratortext - text, if null defered from action
public AppsAction(String action,
KeyStroke accelerator,
String toolTipText,
boolean toggle)
action - base action command - used as AD_Message for Text and Icon nameaccelerator - optional keystroke for acceleratortoolTipText - text, if null defered from actiontoggle - is toggle action (maintains state)| Method Detail |
|---|
public String getName()
public AbstractButton getButton()
public JMenuItem getMenuItem()
public void setDelegate(ActionListener al)
al - listenerpublic void setPressed(boolean pressed)
pressed - pressedpublic boolean isPressed()
public Character getMnemonic()
public void actionPerformed(ActionEvent e)
e - Eventpublic void dispose()
public String toString()
toString in class Object
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||