org.apache.tapestry.event
Class ReportStatusEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.apache.tapestry.event.ReportStatusEvent
All Implemented Interfaces:
Serializable, DescriptionReceiver

public class ReportStatusEvent
extends EventObject
implements DescriptionReceiver

Event object used by ReportStatusListener; the event implements DescriptionReceiver; classes (typically, HiveMind service implementations) that implement the listener interface will "describe" themselves to the event.

Since:
4.0
Author:
Howard M. Lewis Ship
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ReportStatusEvent(Object source, DescriptionReceiver receiver)
           
 
Method Summary
 void array(String key, Object[] values)
          Emits a list of values for the key.
 void collection(String key, Collection values)
          As with DescriptionReceiver.array(String, Object[]), but the values are in a collection (which may be null, to emit nothing).
 void describeAlternate(Object alternate)
          Invoke to describe another object instead of the current object.
 void property(String key, boolean value)
           
 void property(String key, byte value)
           
 void property(String key, char value)
           
 void property(String key, double value)
           
 void property(String key, float value)
           
 void property(String key, int value)
           
 void property(String key, long value)
           
 void property(String key, Object value)
          Emits a key/value pair, describing a property of the object.
 void property(String key, short value)
           
 void section(String section)
          Starts a new sub-section within the description.
 void title(String title)
          Provides a title for the object; usually the object's class name.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReportStatusEvent

public ReportStatusEvent(Object source,
                         DescriptionReceiver receiver)
Method Detail

array

public void array(String key,
                  Object[] values)
Description copied from interface: DescriptionReceiver
Emits a list of values for the key. Each value will be described. Emits nothing if the array is null.

Specified by:
array in interface DescriptionReceiver

collection

public void collection(String key,
                       Collection values)
Description copied from interface: DescriptionReceiver
As with DescriptionReceiver.array(String, Object[]), but the values are in a collection (which may be null, to emit nothing).

Specified by:
collection in interface DescriptionReceiver

describeAlternate

public void describeAlternate(Object alternate)
Description copied from interface: DescriptionReceiver
Invoke to describe another object instead of the current object.

Specified by:
describeAlternate in interface DescriptionReceiver

property

public void property(String key,
                     boolean value)
Specified by:
property in interface DescriptionReceiver

property

public void property(String key,
                     byte value)
Specified by:
property in interface DescriptionReceiver

property

public void property(String key,
                     char value)
Specified by:
property in interface DescriptionReceiver

property

public void property(String key,
                     double value)
Specified by:
property in interface DescriptionReceiver

property

public void property(String key,
                     float value)
Specified by:
property in interface DescriptionReceiver

property

public void property(String key,
                     int value)
Specified by:
property in interface DescriptionReceiver

property

public void property(String key,
                     long value)
Specified by:
property in interface DescriptionReceiver

property

public void property(String key,
                     Object value)
Description copied from interface: DescriptionReceiver
Emits a key/value pair, describing a property of the object. The value will itself be described. This method is overridden for scalar property types.

Specified by:
property in interface DescriptionReceiver

property

public void property(String key,
                     short value)
Specified by:
property in interface DescriptionReceiver

section

public void section(String section)
Description copied from interface: DescriptionReceiver
Starts a new sub-section within the description. A description may have any number of sections (but sections do not nest). A second title is only emitted when the firstproperty within the section is emitted.

Specified by:
section in interface DescriptionReceiver

title

public void title(String title)
Description copied from interface: DescriptionReceiver
Provides a title for the object; usually the object's class name.

Specified by:
title in interface DescriptionReceiver


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.