net.sf.doolin.gui.view.decorator
Class TitledGUIViewDecorator

java.lang.Object
  extended by net.sf.doolin.gui.view.decorator.AbstractGUIViewDecorator
      extended by 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

Constructor Summary
TitledGUIViewDecorator()
           
 
Method Summary
<V> JComponent
decorate(GUIView<V> view, JComponent component, DecorationStyle decorationStyle)
          Creates a decorated component for the view.
protected
<V> JComponent
decorateWithTitleBar(GUIView<V> view, JComponent component)
          Decorates the component with a title bar
protected
<V> JComponent
decorateWithTitledBorder(GUIView<V> view, JComponent component)
          Decorates the component with a titled border.
 
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

TitledGUIViewDecorator

public TitledGUIViewDecorator()
Method Detail

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 decorate
component - Component to decorate
decorationStyle - 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 - View
component - 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 - View
component - View component to decorate
Returns:
Decorated component


Copyright © 2011. All Rights Reserved.