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

java.lang.Object
  extended by net.sf.doolin.gui.view.decorator.DecorationStyle

public class DecorationStyle
extends Object

A decoration style is a set of parameters that is used by GUIViewDecorators.

Author:
Damien Coraboeuf

Field Summary
static String BORDER_STYLE_BORDER_ONLY
          borderOnly border style where no title is displayed in the view but a border is drawn around the view.
static String BORDER_STYLE_BORDER_TITLE
          borderTitle border style where a titled border is drawn around the view.
static String BORDER_STYLE_NONE
          none border style where no title is displayed in the view.
static String BORDER_STYLE_TITLE_BAR
          titleBar border style where the title is displayed in a bar at the top of the view.
static String PARAM_BORDER_STYLE
          Style of border.
 
Constructor Summary
DecorationStyle()
          Constructor
 
Method Summary
 Object getParamater(String key)
          Gets a parameter from the map.
 Map<String,Object> getParameterMap()
          Gets the parameter map.
 boolean isParameterDefined(String key)
          Tests if a parameter is defined or not.
 void setParameterMap(Map<String,Object> parameterMap)
          Sets the parameter map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_BORDER_STYLE

public static final String PARAM_BORDER_STYLE
Style of border. List of values are:

See Also:
Constant Field Values

BORDER_STYLE_TITLE_BAR

public static final String BORDER_STYLE_TITLE_BAR
titleBar border style where the title is displayed in a bar at the top of the view.

See Also:
Constant Field Values

BORDER_STYLE_NONE

public static final String BORDER_STYLE_NONE
none border style where no title is displayed in the view.

See Also:
Constant Field Values

BORDER_STYLE_BORDER_ONLY

public static final String BORDER_STYLE_BORDER_ONLY
borderOnly border style where no title is displayed in the view but a border is drawn around the view.

See Also:
Constant Field Values

BORDER_STYLE_BORDER_TITLE

public static final String BORDER_STYLE_BORDER_TITLE
borderTitle border style where a titled border is drawn around the view.

See Also:
Constant Field Values
Constructor Detail

DecorationStyle

public DecorationStyle()
Constructor

Method Detail

getParameterMap

public Map<String,Object> getParameterMap()
Gets the parameter map.

Returns:
the parameter map

setParameterMap

public void setParameterMap(Map<String,Object> parameterMap)
Sets the parameter map.

Parameters:
parameterMap - the parameter map

getParamater

public Object getParamater(String key)
Gets a parameter from the map.

Parameters:
key - Key of the parameter
Returns:
Parameter value or null if not found.

isParameterDefined

public boolean isParameterDefined(String key)
Tests if a parameter is defined or not.

Parameters:
key - Parameter key to test
Returns:
true if this decoration style defines this parameter


Copyright © 2011. All Rights Reserved.