public class AnyEvent extends EventObject implements Serializable
| Modifier and Type | Field | Description |
|---|---|---|
protected Object |
value |
The value associated with this event.
|
source| Constructor | Description |
|---|---|
AnyEvent(Object source,
Object value) |
Construct a new
AnyEvent. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getInt() |
Gets the associated value as a java int.
|
String |
getString() |
Gets the associated value as a java.lang.String.
|
Object |
getValue() |
Gets the associated value.
|
getSource, toStringprotected Object value
public Object getValue()
public String getString()
ClassCastException - if the event's value is not a Stringpublic int getInt()
ClassCastException - if the event's value is not a Number