Ontimize 5.2072EN

com.ontimize.gui.field
Class ColorDataField.ColorInnerDocumentListener

java.lang.Object
  extended bycom.ontimize.gui.field.TextFieldDataField.InnerDocumentListener
      extended bycom.ontimize.gui.field.ColorDataField.ColorInnerDocumentListener
All Implemented Interfaces:
javax.swing.event.DocumentListener, java.util.EventListener
Enclosing class:
ColorDataField

protected class ColorDataField.ColorInnerDocumentListener
extends TextFieldDataField.InnerDocumentListener

The main class to listen the document inner color.

Author:
Imatia Innovation

Field Summary
protected  boolean innerListenerActive
          The condition to enable or disable the inner listener.
 
Fields inherited from class com.ontimize.gui.field.TextFieldDataField.InnerDocumentListener
innerListenerEnabled
 
Constructor Summary
protected ColorDataField.ColorInnerDocumentListener()
          The constructor to set true the inner document listener.
 
Method Summary
 void changedUpdate(javax.swing.event.DocumentEvent documentevent)
          Empty method.
 void insertUpdate(javax.swing.event.DocumentEvent e)
          Sets the color when innerListenerActive is enabled.
 void removeUpdate(javax.swing.event.DocumentEvent e)
          Removes the update color when innerListenerActive is enabled.
 void setInnerListenerEnabled(boolean enabled)
          Changes the inner listener according to parameter
 
Methods inherited from class com.ontimize.gui.field.TextFieldDataField.InnerDocumentListener
getInnerValue, getValueField, isEqualInnerValue, setInnerValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

innerListenerActive

protected boolean innerListenerActive
The condition to enable or disable the inner listener.

Constructor Detail

ColorDataField.ColorInnerDocumentListener

protected ColorDataField.ColorInnerDocumentListener()
The constructor to set true the inner document listener.

Method Detail

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent documentevent)
Empty method.

Specified by:
changedUpdate in interface javax.swing.event.DocumentListener
Overrides:
changedUpdate in class TextFieldDataField.InnerDocumentListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e)
Sets the color when innerListenerActive is enabled.

Specified by:
insertUpdate in interface javax.swing.event.DocumentListener
Overrides:
insertUpdate in class TextFieldDataField.InnerDocumentListener

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e)
Removes the update color when innerListenerActive is enabled.

Specified by:
removeUpdate in interface javax.swing.event.DocumentListener
Overrides:
removeUpdate in class TextFieldDataField.InnerDocumentListener
Parameters:
e - the document change notification

setInnerListenerEnabled

public void setInnerListenerEnabled(boolean enabled)
Changes the inner listener according to parameter

Overrides:
setInnerListenerEnabled in class TextFieldDataField.InnerDocumentListener
Parameters:
enabled - the condition to enable the inner listener

Ontimize