com.jgoodies.validation.view
Class ValidationResultViewFactory.MessageStateChangeHandler
java.lang.Object
com.jgoodies.validation.view.ValidationResultViewFactory.MessageStateChangeHandler
- All Implemented Interfaces:
- PropertyChangeListener, EventListener
- Enclosing class:
- ValidationResultViewFactory
public static final class ValidationResultViewFactory.MessageStateChangeHandler
- extends Object
- implements PropertyChangeListener
Sets the component visible iff the validation result has messages.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidationResultViewFactory.MessageStateChangeHandler
public ValidationResultViewFactory.MessageStateChangeHandler(Component component)
- Constructs a MessageStateHanlder that updates the visibility
of the given Component.
- Parameters:
component
- the component to show and hide
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- The ValidationResult's 'messages' property has changed.
Hides or shows the component if the ValidationResult is OK
or has messages resp.
- Specified by:
propertyChange
in interface PropertyChangeListener
Copyright © 2003-2011 JGoodies Karsten Lentzsch. All Rights Reserved.