com.alee.managers.style.data
Class SkinInfo

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

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

Skin information class.

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

Constructor Summary
SkinInfo()
          Constructs new skin information.
 
Method Summary
 java.lang.String getAuthor()
          Returns skin author.
 java.lang.String getDescription()
          Returns skin description.
 java.lang.String getId()
          Returns skin ID.
 java.lang.String getName()
          Returns skin name.
 java.lang.String getSkinClass()
          Returns skin class canonical name.
 ComponentStyle getStyle(javax.swing.JComponent component, SupportedComponent type)
          Returns style for the specified supported component type.
 java.util.List<ComponentStyle> getStyles()
          Returns skin styles.
 java.util.Map<SupportedComponent,java.util.Map<java.lang.String,ComponentStyle>> getStylesCache()
          Returns skin styles cache map.
 java.lang.String getSupportedSystems()
          Returns supported systems.
 java.util.List<java.lang.String> getSupportedSystemsList()
          Returns supported systems list.
 void setAuthor(java.lang.String author)
          Sets skin author.
 void setDescription(java.lang.String description)
          Sets skin description.
 void setId(java.lang.String id)
          Sets skin ID.
 void setName(java.lang.String name)
          Sets skin name.
 void setSkinClass(java.lang.String skinClass)
          Sets skin class canonical name.
 void setStyles(java.util.List<ComponentStyle> styles)
          Sets skin styles.
 void setStylesCache(java.util.Map<SupportedComponent,java.util.Map<java.lang.String,ComponentStyle>> stylesCache)
          Sets skin styles cache map.
 void setSupportedSystems(java.util.List<java.lang.String> supportedSystems)
          Sets supported systems.
 void setSupportedSystems(java.lang.String supportedSystems)
          Sets supported systems.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkinInfo

public SkinInfo()
Constructs new skin information.

Method Detail

getId

public java.lang.String getId()
Returns skin ID.

Returns:
skin ID

setId

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

Parameters:
id - new skin ID

getName

public java.lang.String getName()
Returns skin name.

Returns:
skin name

setName

public void setName(java.lang.String name)
Sets skin name.

Parameters:
name - new skin name

getDescription

public java.lang.String getDescription()
Returns skin description.

Returns:
skin description

setDescription

public void setDescription(java.lang.String description)
Sets skin description.

Parameters:
description - new skin description

getAuthor

public java.lang.String getAuthor()
Returns skin author.

Returns:
skin author

setAuthor

public void setAuthor(java.lang.String author)
Sets skin author.

Parameters:
author - new skin author

getSupportedSystems

public java.lang.String getSupportedSystems()
Returns supported systems.

Returns:
supported systems

getSupportedSystemsList

public java.util.List<java.lang.String> getSupportedSystemsList()
Returns supported systems list.

Returns:
supported systems list

setSupportedSystems

public void setSupportedSystems(java.lang.String supportedSystems)
Sets supported systems.

Parameters:
supportedSystems - supported systems

setSupportedSystems

public void setSupportedSystems(java.util.List<java.lang.String> supportedSystems)
Sets supported systems.

Parameters:
supportedSystems - supported systems

getSkinClass

public java.lang.String getSkinClass()
Returns skin class canonical name.

Returns:
skin class canonical name

setSkinClass

public void setSkinClass(java.lang.String skinClass)
Sets skin class canonical name.

Parameters:
skinClass - new skin class canonical name

getStyles

public java.util.List<ComponentStyle> getStyles()
Returns skin styles.

Returns:
skin styles

setStyles

public void setStyles(java.util.List<ComponentStyle> styles)
Sets skin styles.

Parameters:
styles - new skin styles

getStylesCache

public java.util.Map<SupportedComponent,java.util.Map<java.lang.String,ComponentStyle>> getStylesCache()
Returns skin styles cache map.

Returns:
skin styles cache map

setStylesCache

public void setStylesCache(java.util.Map<SupportedComponent,java.util.Map<java.lang.String,ComponentStyle>> stylesCache)
Sets skin styles cache map.

Parameters:
stylesCache - new skin styles cache map

getStyle

public ComponentStyle getStyle(javax.swing.JComponent component,
                               SupportedComponent type)
Returns style for the specified supported component type. Custom style ID can be specified in any Web-component or Web-UI to override default component style. If style for such custom ID is not found in skin descriptor then default style for that component is used.

Parameters:
component - component we are looking style for
type - supported component type
Returns:
component style