JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.cell.validate
Class JCValidateEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.klg.jclass.cell.validate.JCValidateEvent
All Implemented Interfaces:
Serializable

public class JCValidateEvent
extends EventObject

Data validation event. Validate events are typically fired when stopCellEditing() is called.

See Also:
JCCellEditor, Serialized Form

Field Summary
protected  boolean beep
           
protected  Object old_value
           
protected  boolean valid
           
protected  Object value
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JCValidateEvent(Object src)
           
JCValidateEvent(Object source, Object old_value, Object value, boolean valid)
           
JCValidateEvent(Object source, Object old_value, Object value, boolean valid, boolean beep)
           
 
Method Summary
 boolean getBeep()
          Returns whether the event will cause a beep or not.
 Object getOldValue()
          Returns the previous value of the field.
 Object getValue()
          Returns the new value of the field.
 boolean isValid()
          Returns whether the value is considered valid or not.
 void setBeep(boolean beep)
          Sets whether the event will cause a beep or not.
 void setValid(boolean valid)
          Sets whether the current value is considered valid or not.
 void setValue(Object value)
          In the valueChangedBegin method, this may be called to changed the new value.
 
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

old_value

protected Object old_value

value

protected Object value

beep

protected boolean beep

valid

protected boolean valid
Constructor Detail

JCValidateEvent

public JCValidateEvent(Object src)

JCValidateEvent

public JCValidateEvent(Object source,
                       Object old_value,
                       Object value,
                       boolean valid)

JCValidateEvent

public JCValidateEvent(Object source,
                       Object old_value,
                       Object value,
                       boolean valid,
                       boolean beep)
Method Detail

getBeep

public boolean getBeep()
Returns whether the event will cause a beep or not.

Returns:
whether the event will cause a beep or not

setBeep

public void setBeep(boolean beep)
Sets whether the event will cause a beep or not.

Parameters:
beep -

getValue

public Object getValue()
Returns the new value of the field.

Returns:
new value of the field

setValue

public void setValue(Object value)
In the valueChangedBegin method, this may be called to changed the new value. The new value is run through the validator associated with the source to ensure that it is valid.

Parameters:
value -

getOldValue

public Object getOldValue()
Returns the previous value of the field.

Returns:
previous value of the field

isValid

public boolean isValid()
Returns whether the value is considered valid or not.

Returns:
whether the value is considered valid or not

setValid

public void setValid(boolean valid)
Sets whether the current value is considered valid or not.

Parameters:
valid -

Copyright © 2004 Quest Software Inc..
All rights reserved.