public class ChangeEvent<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
source
The source.
|
protected java.lang.String |
type
The type.
|
protected T |
value
The value.
|
Constructor and Description |
---|
ChangeEvent()
Create a new event.
|
ChangeEvent(java.lang.Object source)
Create a new event.
|
ChangeEvent(java.lang.Object source,
java.lang.String type)
Create a new event.
|
ChangeEvent(java.lang.Object source,
java.lang.String type,
T value)
Create a new event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getSource()
Get the source.
|
java.lang.String |
getType()
Get the type.
|
T |
getValue()
Get the value.
|
void |
setSource(java.lang.Object source)
Set the source.
|
void |
setType(java.lang.String type)
Set the type.
|
void |
setValue(T value)
Set the value.
|
java.lang.String |
toString()
Get the string respresentation.
|
protected java.lang.Object source
protected java.lang.String type
protected T value
public ChangeEvent()
public ChangeEvent(java.lang.Object source)
public ChangeEvent(java.lang.Object source, java.lang.String type)
public ChangeEvent(java.lang.Object source, java.lang.String type, T value)
public java.lang.Object getSource()
public void setSource(java.lang.Object source)
source
- The source to set.public java.lang.String getType()
public void setType(java.lang.String type)
type
- The type to set.public T getValue()
public void setValue(T value)
value
- The value to set.public java.lang.String toString()
toString
in class java.lang.Object