|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.code.validationframework.base.trigger.AbstractTrigger
com.google.code.validationframework.swing.trigger.BaseComponentKeyStrokeTrigger<C>
public class BaseComponentKeyStrokeTrigger<C extends Component>
Trigger that initiates the validation whenever registered key strokes happen on a component.
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 | |
|---|---|
BaseComponentKeyStrokeTrigger(C source,
KeyStroke... keyStrokes)
Constructor specifying the text component to listen to and the key stroke to trigger the validation. |
|
| Method Summary | |
|---|---|
void |
addKeyStroke(KeyStroke keyStroke)
Adds a key stroke for which the validation will be triggered. |
void |
dispose()
|
C |
getComponent()
Gets the source component. |
Collection<KeyStroke> |
getKeyStokes()
Gets the key strokes for which the validation will be triggered. |
void |
removeKey(KeyStroke keyStroke)
Removes a key stroke for which the validation should no longer be triggered. |
| 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 |
|---|
protected C extends Component source
| Constructor Detail |
|---|
public BaseComponentKeyStrokeTrigger(C source,
KeyStroke... keyStrokes)
KeyStroke utility methods to build a KeyStroke.
source - Text component to listen to.keyStrokes - Key strokes to trigger the validation.KeyStroke| Method Detail |
|---|
public C getComponent()
public Collection<KeyStroke> getKeyStokes()
public void addKeyStroke(KeyStroke keyStroke)
KeyStroke utility methods to build a KeyStroke.
keyStroke - Key stroke to be added to trigger the validation.KeyStrokepublic void removeKey(KeyStroke keyStroke)
keyStroke - Key stroke to be removed.public void dispose()
dispose in interface com.google.code.validationframework.api.common.Disposabledispose in class com.google.code.validationframework.base.trigger.AbstractTriggerDisposable.dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||