Enterprise Information Portal APIs

com.ibm.mm.beans.gui
Class CMBTemplateFieldChangedEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.ibm.mm.beans.gui.CMBTemplateFieldChangedEvent
All Implemented Interfaces:
java.io.Serializable

public class CMBTemplateFieldChangedEvent
extends java.util.EventObject

Generated by CMBSearchTemplateViewer when the value in a field on the template is changed.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CMBTemplateFieldChangedEvent(java.lang.Object source, CMBSTCriterion crit, int templateField, java.lang.String templateOldValue)
          Constructs the event.
 
Method Summary
 void denyChange()
          Veto the update - if this function is called, the update will be cancelled
 CMBSTCriterion getCriterion()
          Get the search criterion with which the field is associated
 int getField()
          Get the template field which changed
 java.lang.String getOldValue()
          Get the value which was in the template field before the change
 boolean isUpdateAllowed()
          Determine whether the update should be allowed
 
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

CMBTemplateFieldChangedEvent

public CMBTemplateFieldChangedEvent(java.lang.Object source,
                                    CMBSTCriterion crit,
                                    int templateField,
                                    java.lang.String templateOldValue)
Constructs the event.
Parameters:
source - The source of the event.
criterionName - The name of the search criterion with which the field is associated
templateField - The template field which changed
templateOldValue - The old value in the template field
Method Detail

getCriterion

public CMBSTCriterion getCriterion()
Get the search criterion with which the field is associated

getField

public int getField()
Get the template field which changed

getOldValue

public java.lang.String getOldValue()
Get the value which was in the template field before the change

denyChange

public void denyChange()
Veto the update - if this function is called, the update will be cancelled

isUpdateAllowed

public boolean isUpdateAllowed()
Determine whether the update should be allowed

EIP JavaBeans

(c) Copyright International Business Machines Corporation 1996, 2002. IBM Corp. All rights reserved.