com.jgoodies.validation.view
Class ValidationResultViewFactory.MessageStateChangeHandler

java.lang.Object
  extended by 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.


Constructor Summary
ValidationResultViewFactory.MessageStateChangeHandler(Component component)
          Constructs a MessageStateHanlder that updates the visibility of the given Component.
 
Method Summary
 void propertyChange(PropertyChangeEvent evt)
          The ValidationResult's 'messages' property has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.