|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.globalmentor.event.AbstractEvent
com.guiseframework.event.AbstractGuiseEvent
com.guiseframework.event.AbstractTargetedGuiseEvent
com.guiseframework.event.ActionEvent
public class ActionEvent
An event indicating an action should take place. The event target indicates the component that originally initiated the action.
ActionListener,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
ActionEvent.Command
The commands that can be represented by an action. |
| Field Summary | |
|---|---|
static int |
DEFAULT_FORCE
The default action force. |
static int |
DEFAULT_OPTION
The default action option. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ActionEvent(java.lang.Object source)
Source constructor with a default force and option. |
|
ActionEvent(java.lang.Object source,
ActionEvent actionEvent)
Copy constructor that specifies a different source. |
|
ActionEvent(java.lang.Object source,
int force,
int option)
Source, force, and option constructor. |
|
ActionEvent(java.lang.Object source,
java.lang.Object target,
int force,
int option)
Source, target, force, and option constructor. |
|
| Method Summary | |
|---|---|
ActionEvent.Command |
getCommand()
Determines the conventional command represented by this action. |
int |
getForce()
Returns the force with which the action was initiated. |
int |
getOption()
Returns the option indicated by this action. |
| Methods inherited from class com.guiseframework.event.AbstractTargetedGuiseEvent |
|---|
getTarget |
| Methods inherited from class com.guiseframework.event.AbstractGuiseEvent |
|---|
getSession |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.globalmentor.event.Event |
|---|
getSource |
| Field Detail |
|---|
public static final int DEFAULT_OPTION
public static final int DEFAULT_FORCE
| Constructor Detail |
|---|
public ActionEvent(java.lang.Object source)
source - The object on which the event initially occurred.
java.lang.NullPointerException - if the given source is null.
public ActionEvent(java.lang.Object source,
int force,
int option)
source - The object on which the event initially occurred.force - The zero-based force, such as 0 for no force or 1 for a mouse single click.option - The zero-based option, such as 0 for a mouse left button click or 1 for a mouse right button click.
java.lang.NullPointerException - if the given source and/or target is null.
java.lang.IllegalArgumentException - if the given force and/or option is negative.
public ActionEvent(java.lang.Object source,
java.lang.Object target,
int force,
int option)
source - The object on which the event initially occurred.target - The target of the event.force - The zero-based force, such as 0 for no force or 1 for a mouse single click.option - The zero-based option, such as 0 for a mouse left button click or 1 for a mouse right button click.
java.lang.NullPointerException - if the given source and/or target is null.
java.lang.IllegalArgumentException - if the given force and/or option is negative.
public ActionEvent(java.lang.Object source,
ActionEvent actionEvent)
source - The object on which the event initially occurred.actionEvent - The event the properties of which will be copied.
java.lang.NullPointerException - if the given source and/or event is null.| Method Detail |
|---|
public int getOption()
public int getForce()
public ActionEvent.Command getCommand()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||