Ontimize 5.2072EN

com.ontimize.gui.field
Class SpinnerDataField.InnerListener

java.lang.Object
  extended bycom.ontimize.gui.field.SpinnerDataField.InnerListener
All Implemented Interfaces:
javax.swing.event.ChangeListener, java.util.EventListener
Enclosing class:
SpinnerDataField

protected class SpinnerDataField.InnerListener
extends java.lang.Object
implements javax.swing.event.ChangeListener

This class implements a inner listener for field.

Author:
Imatia Innovation

Field Summary
protected  boolean innerListenerEnabled
          The condition about inner listener activation.
protected  java.lang.Object storeInnerValue
          Stores the inner value.
 
Constructor Summary
protected SpinnerDataField.InnerListener()
           
 
Method Summary
 java.lang.Object getInnerValue()
          Gets the inner value.
protected  boolean isEqualInnerValue(java.lang.Object newValue)
          Compares the inner value with parameter.
 void setInnerListenerEnabled(boolean enabled)
          Sets enable the inner listener in function of condition.
 void setInnerValue(java.lang.Object o)
          Sets the inner value.
 void stateChanged(javax.swing.event.ChangeEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

innerListenerEnabled

protected boolean innerListenerEnabled
The condition about inner listener activation. By default, true


storeInnerValue

protected java.lang.Object storeInnerValue
Stores the inner value. By default, null.

Constructor Detail

SpinnerDataField.InnerListener

protected SpinnerDataField.InnerListener()
Method Detail

setInnerListenerEnabled

public void setInnerListenerEnabled(boolean enabled)
Sets enable the inner listener in function of condition.


getInnerValue

public java.lang.Object getInnerValue()
Gets the inner value.

Returns:
the stored inner value

setInnerValue

public void setInnerValue(java.lang.Object o)
Sets the inner value.

Parameters:
o - the object to set

isEqualInnerValue

protected boolean isEqualInnerValue(java.lang.Object newValue)
Compares the inner value with parameter.

Parameters:
newValue - the value to compare
Returns:
the condition

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

Ontimize