net.sf.doolin.gui.validation
Class AbstractValidationGUIViewDecorator
java.lang.Object
net.sf.doolin.gui.view.decorator.AbstractGUIViewDecorator
net.sf.doolin.gui.validation.AbstractValidationGUIViewDecorator
- All Implemented Interfaces:
- GUIValidationDecorator, GUIViewDecorator
- Direct Known Subclasses:
- DefaultValidationGUIViewDecorator
public abstract class AbstractValidationGUIViewDecorator
- extends AbstractGUIViewDecorator
- implements GUIValidationDecorator
Abstract implementation for a view decorator that setups the validation on a
view.
- Author:
- Damien Coraboeuf
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractValidationGUIViewDecorator
public AbstractValidationGUIViewDecorator()
decorate
public <V> JComponent decorate(GUIView<V> view,
JComponent component,
DecorationStyle decorationStyle)
- Decorates a view with a component that allows the validation.
- Specified by:
decorate in interface GUIViewDecorator
- Type Parameters:
V - Type of the object for the view- Parameters:
view - View to decoratecomponent - Component to decoratedecorationStyle - Decoration style
- Returns:
- Decorated component
createValidationComponent
protected abstract <V> JComponent createValidationComponent(GUIView<V> view,
JComponent component,
DecorationStyle decorationStyle,
ValidationSupport<V> validationSupport)
- Creates a component for the validation.
- Type Parameters:
V - Type of object for the view- Parameters:
view - View to decoratecomponent - View component to decoratedecorationStyle - Decoration stylevalidationSupport - Validation support
- Returns:
- Decorated component
Copyright © 2011. All Rights Reserved.