SRJRCFrames
v0.1.296

de.schwarzrot.ui.service
Class DefaultFormComponentFactory.LabelIconChangeHandler

java.lang.Object
  extended by de.schwarzrot.ui.service.DefaultFormComponentFactory.LabelIconChangeHandler
All Implemented Interfaces:
PropertyChangeListener, EventListener
Enclosing class:
DefaultFormComponentFactory

protected static final class DefaultFormComponentFactory.LabelIconChangeHandler
extends Object
implements PropertyChangeListener

Sets the component visible iff the validation result has errors.


Constructor Summary
protected DefaultFormComponentFactory.LabelIconChangeHandler(JLabel label)
           
 
Method Summary
 void propertyChange(PropertyChangeEvent evt)
          The ValidationResult's severity has changed.
protected static void updateVisibilityAndIcon(JLabel aLabel, com.jgoodies.validation.Severity severity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFormComponentFactory.LabelIconChangeHandler

protected DefaultFormComponentFactory.LabelIconChangeHandler(JLabel label)
Method Detail

propertyChange

public void propertyChange(PropertyChangeEvent evt)
The ValidationResult's severity has changed. Updates the label's visibility and icon.

Specified by:
propertyChange in interface PropertyChangeListener

updateVisibilityAndIcon

protected static void updateVisibilityAndIcon(JLabel aLabel,
                                              com.jgoodies.validation.Severity severity)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.