org.jtoolkit.essence.data
Class Event.StatusEvent

java.lang.Object
  extended by org.jtoolkit.essence.app.pojo.DataValue
      extended by org.jtoolkit.essence.data.Event.StatusEvent
All Implemented Interfaces:
Datable, Event, Named, Named.Source
Enclosing interface:
Event

public static class Event.StatusEvent
extends DataValue
implements Datable, Event

Notify that a Listeneable is online/offline. This event is triggers when a Listener is added for the first time.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jtoolkit.essence.data.Event
Event.Listenable, Event.Listener, Event.ListenerSet, Event.StatusEvent
 
Nested classes/interfaces inherited from interface org.jtoolkit.essence.utils.Named
Named.ContextSource<T>, Named.MapSource<T>, Named.Source<T>
 
Field Summary
 boolean online
           
 
Fields inherited from interface org.jtoolkit.essence.utils.Named.Source
EMPTY_SOURCE
 
Constructor Summary
Event.StatusEvent(boolean online)
           
Event.StatusEvent(java.io.DataInput in)
           
 
Method Summary
 void notifyListener(Event.Listener l)
          Notify this listener of an event.
 void writeData(java.io.DataOutput out)
          Write this object to DataOutput must define a constructor.
 
Methods inherited from class org.jtoolkit.essence.app.pojo.DataValue
asMap, equals, getName, getNames, getValue, hashCode, project, setCopy, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

online

public final boolean online
Constructor Detail

Event.StatusEvent

public Event.StatusEvent(boolean online)

Event.StatusEvent

public Event.StatusEvent(@NotNull
                         java.io.DataInput in)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

notifyListener

public void notifyListener(@NotNull
                           Event.Listener l)
Description copied from interface: Event
Notify this listener of an event.

Specified by:
notifyListener in interface Event

writeData

public void writeData(@NotNull
                      java.io.DataOutput out)
               throws java.io.IOException
Description copied from interface: Datable
Write this object to DataOutput must define a constructor. public Datable(@NotNull DataInput in) throws IOException;

Specified by:
writeData in interface Datable
Throws:
java.io.IOException


Copyright © Peter Lawrey. All Rights Reserved.