net.sf.doolin.gui.validation
Class DefaultValidationGUIViewDecorator

java.lang.Object
  extended by net.sf.doolin.gui.view.decorator.AbstractGUIViewDecorator
      extended by net.sf.doolin.gui.validation.AbstractValidationGUIViewDecorator
          extended by net.sf.doolin.gui.validation.DefaultValidationGUIViewDecorator
All Implemented Interfaces:
GUIValidationDecorator, GUIViewDecorator

public class DefaultValidationGUIViewDecorator
extends AbstractValidationGUIViewDecorator

Default decorator for the validation of the view. It uses an instance of IconFeedbackPanel.

Author:
Damien Coraboeuf

Constructor Summary
DefaultValidationGUIViewDecorator()
           
 
Method Summary
protected
<V> JComponent
createValidationComponent(GUIView<V> view, JComponent component, DecorationStyle decorationStyle, ValidationSupport<V> validationSupport)
          Creates a component for the validation.
<V> JComponent
decorateField(Field<V> field, JComponent fieldComponent)
          Decorates a field.
 
Methods inherited from class net.sf.doolin.gui.validation.AbstractValidationGUIViewDecorator
decorate
 
Methods inherited from class net.sf.doolin.gui.view.decorator.AbstractGUIViewDecorator
getActionFactory, getIconService, setActionFactory, setIconService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValidationGUIViewDecorator

public DefaultValidationGUIViewDecorator()
Method Detail

createValidationComponent

protected <V> JComponent createValidationComponent(GUIView<V> view,
                                                   JComponent component,
                                                   DecorationStyle decorationStyle,
                                                   ValidationSupport<V> validationSupport)
Description copied from class: AbstractValidationGUIViewDecorator
Creates a component for the validation.

Specified by:
createValidationComponent in class AbstractValidationGUIViewDecorator
Type Parameters:
V - Type of object for the view
Parameters:
view - View to decorate
component - View component to decorate
decorationStyle - Decoration style
validationSupport - Validation support
Returns:
Decorated component

decorateField

public <V> JComponent decorateField(Field<V> field,
                                    JComponent fieldComponent)
Description copied from interface: GUIValidationDecorator
Decorates a field.

Type Parameters:
V - Type of object for the view
Parameters:
field - Field to decorate
fieldComponent - Field component to decorate
Returns:
Decorated field component


Copyright © 2011. All Rights Reserved.