net.sf.doolin.gui.view.decorator
Class TitledGUIViewDecorator
java.lang.Object
net.sf.doolin.gui.view.decorator.AbstractGUIViewDecorator
net.sf.doolin.gui.view.decorator.TitledGUIViewDecorator
- All Implemented Interfaces:
- GUIViewDecorator
public class TitledGUIViewDecorator
- extends AbstractGUIViewDecorator
Default decorator that decorates the view with a title, according to the
decoration style.
- Author:
- Damien Coraboeuf
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TitledGUIViewDecorator
public TitledGUIViewDecorator()
decorate
public <V> JComponent decorate(GUIView<V> view,
JComponent component,
DecorationStyle decorationStyle)
- Description copied from interface:
GUIViewDecorator
- Creates a decorated component for the view.
- Type Parameters:
V - Type of the object for the view- Parameters:
view - View to decoratecomponent - Component to decoratedecorationStyle - Decoration style
- Returns:
- Decorated component
decorateWithTitleBar
protected <V> JComponent decorateWithTitleBar(GUIView<V> view,
JComponent component)
- Decorates the component with a title bar
- Type Parameters:
V - Type of view data- Parameters:
view - Viewcomponent - View component to decorate
- Returns:
- Decorated component
decorateWithTitledBorder
protected <V> JComponent decorateWithTitledBorder(GUIView<V> view,
JComponent component)
- Decorates the component with a titled border.
- Type Parameters:
V - Type of view data- Parameters:
view - Viewcomponent - View component to decorate
- Returns:
- Decorated component
Copyright © 2011. All Rights Reserved.