JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.value
Class JCValueEvent

java.lang.Object
  |
  +--com.klg.jclass.util.value.JCValueEvent

public class JCValueEvent
extends Object

Value Event.


Field Summary
protected  boolean allowChange
           
protected  Object newValue
           
protected  Object oldValue
           
protected  Object source
           
 
Constructor Summary
JCValueEvent(Object source, Object old_value, Object new_value)
          Constructs a new value event.
 
Method Summary
 boolean getAllowChange()
          Tests whether a change is allowed.
 Object getNewValue()
          During a valueChanged() event, this is equivalent to getValueModel().getValue().
 Object getOldValue()
          During a valueChanging() event, this is equivalent to getValueModel().getValue().
 Object getSource()
          Returns the value model in which the change is occurring.
 void setAllowChange(boolean allow)
          Sets the allowChange flag, to allow or prevent the value from changing.
 void setNewValue(Object new_value)
          During a valueChanging() event, it is possible to change to a new value by calling this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected Object source

oldValue

protected Object oldValue

newValue

protected Object newValue

allowChange

protected boolean allowChange
Constructor Detail

JCValueEvent

public JCValueEvent(Object source,
                    Object old_value,
                    Object new_value)
Constructs a new value event.

Parameters:
new_value -
old_value -
source -
Method Detail

getSource

public Object getSource()
Returns the value model in which the change is occurring.

Returns:
value model in which the change is occurring

getOldValue

public Object getOldValue()
During a valueChanging() event, this is equivalent to getValueModel().getValue().

Returns:

getNewValue

public Object getNewValue()
During a valueChanged() event, this is equivalent to getValueModel().getValue().

Returns:

setNewValue

public void setNewValue(Object new_value)
During a valueChanging() event, it is possible to change to a new value by calling this method.

Parameters:
new_value -

getAllowChange

public boolean getAllowChange()
Tests whether a change is allowed.

Returns:

setAllowChange

public void setAllowChange(boolean allow)
Sets the allowChange flag, to allow or prevent the value from changing.

Parameters:
allow -

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