|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjcontrol.ui.vole.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 passed to the parent container that itself may pass it to it's parent object.
(c) Copyright 2003-2005 DOMOLOGIC GmbH
KeyEvent,
Component,
Container| Field Summary | |
|---|---|
static int |
BUTTON_PRESSED
A button was pressed |
protected String |
command
|
static int |
ITEM_SELECTED
A list or combo box item was selected |
static int |
MENU_ACTION
A menu item was selected |
protected Component |
source
|
static int |
STATE_CHANGED
An component's state was changed |
protected int |
type
|
static int |
VALUE_CHANGED
A slider value was changed |
| Constructor Summary | |
|---|---|
ActionEvent(Component source,
int type)
Constructs an ActionEvent. |
|
ActionEvent(Component source,
int type,
String command)
Constructs an ActionEvent. |
|
| Method Summary | |
|---|---|
String |
getActionCommand()
Get event's action command (may be null) |
Component |
getSource()
Get event's source. |
int |
getType()
Get event's action type (may be undefined) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, notifyAll, wait |
| Field Detail |
|---|
public static final int BUTTON_PRESSED
protected String command
public static final int ITEM_SELECTED
public static final int MENU_ACTION
protected Component source
public static final int STATE_CHANGED
protected int type
public static final int VALUE_CHANGED
| Constructor Detail |
|---|
public ActionEvent(Component source,
int type)
source - the source component that generated the event.type - the event type, such as BUTTON_PRESSED.
public ActionEvent(Component source,
int type,
String command)
source - the source component that generated the event.type - the event type, such as BUTTON_PRESSED.command - a String representing the command of this event| Method Detail |
|---|
public String getActionCommand()
public Component getSource()
public int getType()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||