Enterprise Information Portal APIs

com.ibm.mm.beans.gui
Class CMBSearchFieldChangedEvent

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

public class CMBSearchFieldChangedEvent
extends java.util.EventObject

Generated by CMBSearchPanel when the value in a field on the panel is changed.

Since:
8.1
See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CMBSearchFieldChangedEvent(java.lang.Object source, CMBAttribute att, int searchField, java.lang.String fieldOldValue)
          Constructs the event.
 
Method Summary
 void denyChange()
          Veto the update - if this function is called, the update will be cancelled
 CMBAttribute getAttribute()
          Get the attribute with which the field is associated
 int getField()
          Get the identifier of the search field which changed Must be one of the following values: CMBSearchPanel.COMPONENT1 - the first component in the row CMBSearchPanel.COMPONENT2 - the second component in the row
 java.lang.String getOldValue()
          Get the value which was in the search 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

CMBSearchFieldChangedEvent

public CMBSearchFieldChangedEvent(java.lang.Object source,
                                  CMBAttribute att,
                                  int searchField,
                                  java.lang.String fieldOldValue)
Constructs the event.
Parameters:
source - The source of the event.
criterionName - The name of the search criterion with which the field is associated
searchField - The identifier of the search field which changed Must be one of the following values:
  • CMBSearchPanel.COMPONENT1 - the first component in the row
  • CMBSearchPanel.COMPONENT2 - the second component in the row
templateOldValue - The old value in the template field
Method Detail

getAttribute

public CMBAttribute getAttribute()
Get the attribute with which the field is associated

getField

public int getField()
Get the identifier of the search field which changed Must be one of the following values:

getOldValue

public java.lang.String getOldValue()
Get the value which was in the search 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.