org.zkoss.pivot.event
Class FieldDataEvent

java.lang.Object
  extended by org.zkoss.pivot.event.FieldDataEvent

public class FieldDataEvent
extends java.lang.Object

A data event is used to notify listeners that a pivot field has changed.

Author:
jumperchen

Constructor Summary
FieldDataEvent(PivotField field, java.lang.String type, java.lang.Object origin, java.lang.Object current)
          Constructor
 
Method Summary
 java.lang.Object getCurrent()
          Returns the updated value
 java.lang.Object getOrigin()
          Returns the original value
 PivotField getPivotField()
          Returns the pivot field which fires the event.
 java.lang.String getType()
          Returns the name of the event type whose field has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldDataEvent

public FieldDataEvent(PivotField field,
                      java.lang.String type,
                      java.lang.Object origin,
                      java.lang.Object current)
Constructor

Parameters:
field - a PivotField
type - a name of the event type
origin - the original value
current - the updated value
Method Detail

getPivotField

public PivotField getPivotField()
Returns the pivot field which fires the event.


getType

public java.lang.String getType()
Returns the name of the event type whose field has changed.


getOrigin

public java.lang.Object getOrigin()
Returns the original value


getCurrent

public java.lang.Object getCurrent()
Returns the updated value



Copyright © 2013. All Rights Reserved.