com.google.code.validationframework.swing.trigger
Class JListModelChangedTrigger

java.lang.Object
  extended by com.google.code.validationframework.base.trigger.AbstractTrigger
      extended by com.google.code.validationframework.swing.trigger.JListModelChangedTrigger
All Implemented Interfaces:
com.google.code.validationframework.api.common.Disposable, com.google.code.validationframework.api.trigger.Trigger

public class JListModelChangedTrigger
extends com.google.code.validationframework.base.trigger.AbstractTrigger
implements com.google.code.validationframework.api.common.Disposable

Trigger that initiates the validation whenever the model of a list changes.


Field Summary
 
Fields inherited from class com.google.code.validationframework.base.trigger.AbstractTrigger
listeners
 
Constructor Summary
JListModelChangedTrigger(JList source)
          Constructor specifying the list whose model changes are meant to trigger validation.
 
Method Summary
 void dispose()
           
 JList 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
 

Constructor Detail

JListModelChangedTrigger

public JListModelChangedTrigger(JList source)
Constructor specifying the list whose model changes are meant to trigger validation.

Parameters:
source - List whose model changes are meant to trigger validation.
Method Detail

getComponent

public JList 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.