|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.gui.GuiEvent
public class GuiEvent
This class defines the object type GuiEvent used to notify
an event to a GuiAgent. It has two mandatory attributes:the source of the event
and an integer identifying the type of event and an optional list of parameters
than can be added to the event object.The type of each parameter must extends
java.lang.Object; therefore primitive object (e.g.int) should be wrapped
into appropriate objects(e.g java.lang.Integer).
GuiAgent| Field Summary | |
|---|---|
protected java.lang.Object |
source
|
protected int |
type
|
| Constructor Summary | |
|---|---|
GuiEvent(java.lang.Object eventSource,
int eventType)
Create a GUI event. |
|
| Method Summary | |
|---|---|
void |
addParameter(java.lang.Object param)
Add a new parameter to this event. |
Iterator |
getAllParameter()
Get an Iterator over all the parameters. |
java.lang.Object |
getParameter(int number)
Get the parameter in the given position. |
java.lang.Object |
getSource()
Retrieve the logical source of this GUI event. |
int |
getType()
Retrieve the kind of this GUI event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Object source
protected int type
| Constructor Detail |
|---|
public GuiEvent(java.lang.Object eventSource,
int eventType)
eventSource - The logical source of this event.eventType - An integer value, identifying the kind of this
event.| Method Detail |
|---|
public int getType()
public java.lang.Object getSource()
null if no source was
set.public void addParameter(java.lang.Object param)
param - is the parameterpublic java.lang.Object getParameter(int number)
public Iterator getAllParameter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||