ElegantJ Data Entry Masks Java API Specification v1.1

com.elegantj.util.editmask
Class EditMaskEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.elegantj.util.editmask.EditMaskEvent
All Implemented Interfaces:
java.io.Serializable

public class EditMaskEvent
extends java.util.EventObject

EditMaskEvent occured while the text has been changed of the editmask

See Also:
Serialized Form

Field Summary
 int eventID
          holds the event id
static int TEXT_CHANGED
          Represents the event that text has been changed
static int TEXT_WAS_GOING_TO_CHANGE
          Represents the event that text was going to change
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
EditMaskEvent(java.lang.Object source, int eventID, java.lang.String previousText, java.lang.String currentText, java.lang.String textWasGoingToChange)
          Constructs the EditMaskEvent
 
Method Summary
 java.lang.String getCurrentText()
          Returns the current text of the EditMask
 int getID()
          Returns the event id, the possbile values are TEXT_CHANGED, TEXT_WAS_GOING_TO_CHANGE
 java.lang.String getPreviousText()
          Returns the previous text of the EditMask
 java.lang.String getTextWasGoingToChange()
          Returns the text which was going to change, but due to restriction it could not change the EditMask's text
 
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
 

Field Detail

TEXT_WAS_GOING_TO_CHANGE

public static int TEXT_WAS_GOING_TO_CHANGE
Represents the event that text was going to change


TEXT_CHANGED

public static int TEXT_CHANGED
Represents the event that text has been changed


eventID

public int eventID
holds the event id

Constructor Detail

EditMaskEvent

public EditMaskEvent(java.lang.Object source,
                     int eventID,
                     java.lang.String previousText,
                     java.lang.String currentText,
                     java.lang.String textWasGoingToChange)
Constructs the EditMaskEvent

Parameters:
source - The specified source
previousText - The specified previous text
currentText - The specified current text
textWasGoingToChange - The text which was going to change but due to some restriction it could not change
Method Detail

getCurrentText

public java.lang.String getCurrentText()
Returns the current text of the EditMask

Returns:
The current text of the EditMask

getPreviousText

public java.lang.String getPreviousText()
Returns the previous text of the EditMask

Returns:
The previous text of the EditMask

getTextWasGoingToChange

public java.lang.String getTextWasGoingToChange()
Returns the text which was going to change, but due to restriction it could not change the EditMask's text

Returns:
The text which was going to change

getID

public int getID()
Returns the event id, the possbile values are TEXT_CHANGED, TEXT_WAS_GOING_TO_CHANGE


ElegantJ Data Entry Masks Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.