com.alee.managers.style.data
Class ComponentStyle

java.lang.Object
  extended by com.alee.managers.style.data.ComponentStyle
All Implemented Interfaces:
java.io.Serializable

@XStreamConverter(value=ComponentStyleConverter.class)
public final class ComponentStyle
extends java.lang.Object
implements java.io.Serializable

Component style information class.

Author:
Mikle Garin
See Also:
How to use StyleManager, StyleManager, Serialized Form

Constructor Summary
ComponentStyle()
          Constructs new component style information.
 
Method Summary
 PainterStyle getBasePainter()
          Returns component base painter.
 java.util.Map<java.lang.String,java.lang.Object> getComponentProperties()
          Returns component properties.
 java.lang.String getExtendsId()
          Returns extended component style ID or null if none extended.
 java.lang.String getId()
          Returns component style ID.
 java.util.List<PainterStyle> getPainters()
          Returns component painters.
 SupportedComponent getType()
          Returns supported component type.
 java.util.Map<java.lang.String,java.lang.Object> getUIProperties()
          Returns component UI properties.
 void setComponentProperties(java.util.Map<java.lang.String,java.lang.Object> componentProperties)
          Sets component properties.
 void setExtendsId(java.lang.String id)
          Sets extended component style ID.
 void setId(java.lang.String id)
          Sets component style ID.
 void setPainters(java.util.List<PainterStyle> painters)
          Sets component painters.
 void setType(SupportedComponent type)
          Sets supported component type.
 void setUIProperties(java.util.Map<java.lang.String,java.lang.Object> uiProperties)
          Sets component UI properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentStyle

public ComponentStyle()
Constructs new component style information.

Method Detail

getType

public SupportedComponent getType()
Returns supported component type.

Returns:
supported component type

setType

public void setType(SupportedComponent type)
Sets supported component type.

Parameters:
type - new supported component type

getId

public java.lang.String getId()
Returns component style ID.

Returns:
component style ID

setId

public void setId(java.lang.String id)
Sets component style ID.

Parameters:
id - new component style ID

getExtendsId

public java.lang.String getExtendsId()
Returns extended component style ID or null if none extended.

Returns:
extended component style ID or null if none extended

setExtendsId

public void setExtendsId(java.lang.String id)
Sets extended component style ID. Set this to null in case you don't want to extend any style.

Parameters:
id - new extended component style ID

getComponentProperties

public java.util.Map<java.lang.String,java.lang.Object> getComponentProperties()
Returns component properties.

Returns:
component properties

setComponentProperties

public void setComponentProperties(java.util.Map<java.lang.String,java.lang.Object> componentProperties)
Sets component properties.

Parameters:
componentProperties - new component properties

getUIProperties

public java.util.Map<java.lang.String,java.lang.Object> getUIProperties()
Returns component UI properties.

Returns:
component UI properties

setUIProperties

public void setUIProperties(java.util.Map<java.lang.String,java.lang.Object> uiProperties)
Sets component UI properties

Parameters:
uiProperties - new component UI properties

getPainters

public java.util.List<PainterStyle> getPainters()
Returns component painters.

Returns:
component painters

setPainters

public void setPainters(java.util.List<PainterStyle> painters)
Sets component painters.

Parameters:
painters - new component painters

getBasePainter

public PainterStyle getBasePainter()
Returns component base painter.

Returns:
component base painter