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

java.lang.Object
  extended by net.sf.doolin.gui.view.decorator.AbstractGUIViewDecorator
      extended by net.sf.doolin.gui.view.decorator.ChainedGUIViewDecorator
All Implemented Interfaces:
GUIViewDecorator
Direct Known Subclasses:
DefaultGUIViewDecorator

public class ChainedGUIViewDecorator
extends AbstractGUIViewDecorator

Chain of view decorators.

Author:
Damien Coraboeuf

Constructor Summary
ChainedGUIViewDecorator()
          Default constructor with an empty chain of decorators
ChainedGUIViewDecorator(GUIViewDecorator... decorators)
          Constructor from a list of decorators
 
Method Summary
<V> JComponent
decorate(GUIView<V> view, JComponent component, DecorationStyle decorationStyle)
          Creates a decorated component for the view.
 List<GUIViewDecorator> getDecorators()
          Gets the decorators.
 void setDecorators(List<GUIViewDecorator> decorators)
          Sets the decorators.
 
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

ChainedGUIViewDecorator

public ChainedGUIViewDecorator()
Default constructor with an empty chain of decorators


ChainedGUIViewDecorator

public ChainedGUIViewDecorator(GUIViewDecorator... decorators)
Constructor from a list of decorators

Parameters:
decorators - List of decorators to apply
Method Detail

decorate

public <V> JComponent decorate(GUIView<V> view,
                               JComponent component,
                               DecorationStyle decorationStyle)
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

getDecorators

public List<GUIViewDecorator> getDecorators()
Gets the decorators.

Returns:
the decorators

setDecorators

public void setDecorators(List<GUIViewDecorator> decorators)
Sets the decorators.

Parameters:
decorators - the new decorators


Copyright © 2011. All Rights Reserved.