Package jadex.commons
Class ChangeEvent<T>
- java.lang.Object
-
- jadex.commons.ChangeEvent<T>
-
public class ChangeEvent<T> extends java.lang.Object
The basic change event.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
source
protected java.lang.Object source
The source.
-
type
protected java.lang.String type
The type.
-
value
protected T value
The value.
-
-
Constructor Detail
-
ChangeEvent
public ChangeEvent()
Create a new event.
-
ChangeEvent
public ChangeEvent(java.lang.Object source)
Create a new event.
-
ChangeEvent
public ChangeEvent(java.lang.Object source, java.lang.String type)
Create a new event.
-
ChangeEvent
public ChangeEvent(java.lang.Object source, java.lang.String type, T value)
Create a new event.
-
-
Method Detail
-
getSource
public java.lang.Object getSource()
Get the source.- Returns:
- The source.
-
setSource
public void setSource(java.lang.Object source)
Set the source.- Parameters:
source
- The source to set.
-
getType
public java.lang.String getType()
Get the type.- Returns:
- The type.
-
setType
public void setType(java.lang.String type)
Set the type.- Parameters:
type
- The type to set.
-
getValue
public T getValue()
Get the value.- Returns:
- The value.
-
setValue
public void setValue(T value)
Set the value.- Parameters:
value
- The value to set.
-
toString
public java.lang.String toString()
Get the string respresentation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-