public class AnyEvent extends EventObject implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Object |
value
The value associated with this event.
|
source| Constructor and Description |
|---|
AnyEvent(Object source, Object value)
Construct a new
AnyEvent. |
| Modifier and Type | Method and 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