SRJRCFrames
v0.1.296

de.schwarzrot.ui.service
Class DefaultFormComponentFactory.MessageTextChangeHandler

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

protected static final class DefaultFormComponentFactory.MessageTextChangeHandler
extends Object
implements PropertyChangeListener

Sets a JTextComponent's text to the messages text of a ValidationResult.


Constructor Summary
protected DefaultFormComponentFactory.MessageTextChangeHandler(JTextComponent textComponent)
          Constructs a MessageTextChangeHandler for the given text component.
 
Method Summary
 void propertyChange(PropertyChangeEvent evt)
          The ValidationResult of the observed ValidationResultModel has changed.
protected static void updateText(JTextComponent aTextComponent, com.jgoodies.validation.ValidationResult result)
          Sets the message text of the given ValidationResult as text in the given component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFormComponentFactory.MessageTextChangeHandler

protected DefaultFormComponentFactory.MessageTextChangeHandler(JTextComponent textComponent)
Constructs a MessageTextChangeHandler for the given text component.

Parameters:
textComponent - the target component to set texts in
Method Detail

propertyChange

public void propertyChange(PropertyChangeEvent evt)
The ValidationResult of the observed ValidationResultModel has changed. Updates this handler's text component's text to the message text of the new ValidationResult.

Specified by:
propertyChange in interface PropertyChangeListener

updateText

protected static void updateText(JTextComponent aTextComponent,
                                 com.jgoodies.validation.ValidationResult result)
Sets the message text of the given ValidationResult as text in the given component.

Parameters:
aTextComponent - the target where to set the message text
result - used to request the validation message text

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.