alt.jiapi.event
Class FieldEvent

java.lang.Object
  extended by java.util.EventObject
      extended by alt.jiapi.event.JiapiEvent
          extended by alt.jiapi.event.FieldEvent
All Implemented Interfaces:
java.io.Serializable

public class FieldEvent
extends JiapiEvent

FieldEvent objects are used to identify fields that are accessed somehow.

Version:
$Revision: 1.5 $ $Date: 2006/01/31 11:11:42 $
Author:
Mika Riekkinen, Joni Suominen
See Also:
Serialized Form

Field Summary
static int FIELD_GET
          Constant used as an id of the FieldEvent
static int FIELD_SET
          Constant used as an id of the FieldEvent
 
Fields inherited from class alt.jiapi.event.JiapiEvent
id, sourceObject, target, targetName
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FieldEvent(FieldEventProducer fep, java.lang.Object sourceObject, java.lang.String fieldName, int id)
          Constructor.
FieldEvent(FieldEventProducer fep, java.lang.Object sourceObject, java.lang.String fieldName, java.lang.Object target, int id)
          Constructor.
 
Method Summary
 java.lang.String getFieldName()
          Gets the name of the field, that triggered this event.
 
Methods inherited from class alt.jiapi.event.JiapiEvent
finalize, getSourceObject, getTarget, getTargetName, protect, release, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIELD_GET

public static final int FIELD_GET
Constant used as an id of the FieldEvent

See Also:
Constant Field Values

FIELD_SET

public static final int FIELD_SET
Constant used as an id of the FieldEvent

See Also:
Constant Field Values
Constructor Detail

FieldEvent

public FieldEvent(FieldEventProducer fep,
                  java.lang.Object sourceObject,
                  java.lang.String fieldName,
                  int id)
Constructor.

Parameters:
fep - An instance of FieldEventProducer.
sourceObject - A Source Object. On static methods, this is the Class, that method belongs to. Otherwise Source Object is 'this'.
fieldName - Name of the Field that triggered this event
id - FIELD_SET or FIELD_GET values should be used

FieldEvent

public FieldEvent(FieldEventProducer fep,
                  java.lang.Object sourceObject,
                  java.lang.String fieldName,
                  java.lang.Object target,
                  int id)
Constructor.

Parameters:
fep - An instance of FieldEventProducer.
sourceObject - A Source Object. On static methods, this is the Class, that method belongs to. Otherwise Source Object is 'this'.
fieldName - Name of the Field that triggered this event
target -
id - FIELD_SET or FIELD_GET values should be used
Method Detail

getFieldName

public java.lang.String getFieldName()
Gets the name of the field, that triggered this event.



Copyright © 2001. Documenation generated August 26 2011.