|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.webmancer.base.Event
public class Event
Constructor Summary | |
---|---|
Event()
Creates new broadcast event. |
|
Event(java.lang.String target)
Creates new event that is adressed to target object target . |
Method Summary | |
---|---|
java.lang.String |
getTarget()
Return the target object's name or null , if the current event is broadcast. |
boolean |
isBroadcast()
Returns true if the current event is a broadcast event. |
boolean |
isHandled()
Returns true if the event has been handled already. |
void |
setHandled(boolean handled)
Set the handled flag to the event. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Event(java.lang.String target)
target
. A null
target means a broadcast event.
target
- The target object identification or null
for broadcast event.public Event()
Method Detail |
---|
public boolean isHandled()
true
if the event has been handled already. Broadcast events return always false
.
true
if the event has been handled already.public boolean isBroadcast()
true
if the current event is a broadcast event. Broadcast events do not have any concrete target.
true
if the current event is a broadcast event.public java.lang.String getTarget()
null
, if the current event is broadcast.
public void setHandled(boolean handled)
handled
- the handled flag
java.lang.IllegalStateException
- if setting handled for a broadcast eventpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |