net.sf.doolin.gui.style
Class ChainedStyle

java.lang.Object
  extended by net.sf.doolin.gui.style.ChainedStyle
All Implemented Interfaces:
Style

public class ChainedStyle
extends Object
implements Style

Combination of styles.

Author:
Damien Coraboeuf

Constructor Summary
ChainedStyle()
           
 
Method Summary
 void addStyle(Style style)
          Adds a style to the chain
 void apply(Component component)
          Applies this style to this component
 List<Style> getStyles()
          Returns the list of styles to apply
 void setStyles(List<Style> styles)
          Sets the list of styles to apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedStyle

public ChainedStyle()
Method Detail

getStyles

public List<Style> getStyles()
Returns the list of styles to apply

Returns:
List of styles

setStyles

public void setStyles(List<Style> styles)
Sets the list of styles to apply

Parameters:
styles - List of styles

addStyle

public void addStyle(Style style)
Adds a style to the chain

Parameters:
style - Style to add

apply

public void apply(Component component)
Description copied from interface: Style
Applies this style to this component

Specified by:
apply in interface Style
Parameters:
component - Component to apply the style to


Copyright © 2011. All Rights Reserved.