com.google.code.validationframework.swing.trigger
Class BaseJTextComponentDocumentChangedTrigger<C extends JTextComponent>
java.lang.Object
com.google.code.validationframework.base.trigger.AbstractTrigger
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 |
| 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 |
source
protected C extends JTextComponent source
- Text component that is the source of the trigger.
BaseJTextComponentDocumentChangedTrigger
public BaseJTextComponentDocumentChangedTrigger(C source)
- Constructor specifying the text component to listen to.
- Parameters:
source - Text component to listen to.
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.