|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcontrol.ui.wombat.event.ActionEvent
public class ActionEvent
A semantic event which indicates that a component-defined action occured. This event is generated by a component (such as a Button) when the component-specific action occurs (such as being pressed). The event is pushed on the global event queue. The application frame continously works the event queue by passing any ActionEvent on to the event's destination ActionListener.
(C) DOMOLOGIC Home Automation GmbH 2005 - 2007
ActionListener
,
ActionProducer
Field Summary | |
---|---|
static int |
BUTTON_PRESSED
A button has been pressed. |
static int |
BUTTON_RELEASED
A button has been released. |
String |
command
The command String (optional) |
static int |
ITEM_SELECTED
A component's entry (in a list or whatever) has been selected. |
static int |
MENU_ACTION
A menu item has been selected. |
ActionProducer |
source
The object that created this ActionEvent. |
static int |
STATE_CHANGED
An component's state has changed (e.g. a check box). |
int |
type
The type of this action event. |
static int |
VALUE_CHANGED
A component's value has changed (e.g. in a slider). |
Constructor Summary | |
---|---|
ActionEvent(ActionProducer source,
int type)
Constructs an ActionEvent. |
|
ActionEvent(ActionProducer source,
int type,
String command)
Constructs an ActionEvent. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notifyAll, toString, wait |
Field Detail |
---|
public static final int BUTTON_RELEASED
public static final int BUTTON_PRESSED
public static final int MENU_ACTION
public static final int ITEM_SELECTED
public static final int VALUE_CHANGED
public static final int STATE_CHANGED
public ActionProducer source
public String command
public int type
Constructor Detail |
---|
public ActionEvent(ActionProducer source, int type)
source
- the source component that generated the event.type
- the event type, such as BUTTON_PRESSED.public ActionEvent(ActionProducer source, int type, String command)
source
- the source ActionProducer that generated the event.type
- the event type, such as BUTTON_PRESSED.command
- a String representing the command of this event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |