com.google.code.validationframework.swing.trigger
Class BaseJTextComponentDocumentChangedTrigger<C extends JTextComponent>

java.lang.Object
  extended by com.google.code.validationframework.base.trigger.AbstractTrigger
      extended by com.google.code.validationframework.swing.trigger.BaseJTextComponentDocumentChangedTrigger<C>
All Implemented Interfaces:
com.google.code.validationframework.api.common.Disposable, com.google.code.validationframework.api.trigger.Trigger
Direct Known Subclasses:
JEditorPaneDocumentChangedTrigger, JFormattedTextFieldDocumentChangedTrigger, JPasswordFieldDocumentChangedTrigger, JTextAreaDocumentChangedTrigger, JTextComponentDocumentChangedTrigger, JTextFieldDocumentChangedTrigger, JTextPaneDocumentChangedTrigger

public class BaseJTextComponentDocumentChangedTrigger<C extends JTextComponent>
extends com.google.code.validationframework.base.trigger.AbstractTrigger
implements com.google.code.validationframework.api.common.Disposable

Trigger that initiates the validation whenever the document of a text component is modified.

See Also:
AbstractTrigger, Disposable

Field Summary
protected  C source
          Text component that is the source of the trigger.
 
Fields inherited from class com.google.code.validationframework.base.trigger.AbstractTrigger
listeners
 
Constructor Summary
BaseJTextComponentDocumentChangedTrigger(C source)
          Constructor specifying the text component to listen to.
 
Method Summary
 void dispose()
           
 C getComponent()
          Gets the source component.
 
Methods inherited from class com.google.code.validationframework.base.trigger.AbstractTrigger
addTriggerListener, fireTriggerEvent, removeTriggerListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected C extends JTextComponent source
Text component that is the source of the trigger.

Constructor Detail

BaseJTextComponentDocumentChangedTrigger

public BaseJTextComponentDocumentChangedTrigger(C source)
Constructor specifying the text component to listen to.

Parameters:
source - Text component to listen to.
Method Detail

getComponent

public C getComponent()
Gets the source component.

Returns:
Source component.

dispose

public void dispose()
Specified by:
dispose in interface com.google.code.validationframework.api.common.Disposable
Overrides:
dispose in class com.google.code.validationframework.base.trigger.AbstractTrigger
See Also:
Disposable.dispose()


Copyright © 2013. All Rights Reserved.