|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.adempiere.webui.component.WAppsAction
public class WAppsAction
Application Action. Creates Action with MenuItem and Button, delegate execution of action to an attached ActionListener instance The ActionCommand is translated for display If translated text contains &, the next character is the Mnemonic
| Field Summary | |
|---|---|
static Dimension |
BUTTON_SIZE
Button Size |
| Constructor Summary | |
|---|---|
WAppsAction(String action,
String accelerator)
Application Action |
|
WAppsAction(String action,
String accelerator,
String toolTipText)
Application Action. |
|
| Method Summary | |
|---|---|
Button |
getButton()
Return Button |
String |
getCtrlKeys()
|
String |
getName()
Get Name/ActionCommand |
void |
onEvent(Event event)
|
void |
setDelegate(EventListener listener)
Set Delegate to receive the actionPerformed calls |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Dimension BUTTON_SIZE
| Constructor Detail |
|---|
public WAppsAction(String action,
String accelerator)
throws IOException
action - base action command - used as AD_Message for Text and Icon nameaccelerator - optional keystroke for acceleratortoggle - is toggle action (maintains state)
IOException
public WAppsAction(String action,
String accelerator,
String toolTipText)
throws IOException
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)
IOException| Method Detail |
|---|
public String getName()
public Button getButton()
public void setDelegate(EventListener listener)
throws IllegalArgumentException
listener - listener
IllegalArgumentException - if the listener is not a window. This
exception can be ignored as events will still be fired for button presses.
public void onEvent(Event event)
throws Exception
onEvent in interface EventListenerExceptionpublic String getCtrlKeys()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||