|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.managers.style.skin.WebLafSkin com.alee.managers.style.skin.CustomSkin
public class CustomSkin
This theme is used by StyleManager for cases when theme settings are stored within XML. To use it simply specify XML location relative to your skin class or provide SkinInfo object. All settings and painters will be loaded and applied by this skin automatically when it is used.
StyleManager
,
WebLafSkin
,
SkinInfo
Field Summary | |
---|---|
protected SkinInfo |
skinInfo
Theme information. |
Fields inherited from class com.alee.managers.style.skin.WebLafSkin |
---|
ALL_SYSTEMS_SUPPORTED |
Constructor Summary | |
---|---|
CustomSkin(SkinInfo skinInfo)
Constructs new custom theme. |
|
CustomSkin(java.lang.String location)
Constructs new custom theme. |
Method Summary | |
---|---|
java.lang.String |
getAuthor()
Returns skin author. |
ComponentStyle |
getComponentStyle(javax.swing.JComponent component,
SupportedComponent type)
Returns style for the specified supported component type. |
java.lang.String |
getDescription()
Returns skin description. |
java.lang.String |
getId()
Returns unique skin ID. |
java.lang.String |
getName()
Returns skin name. |
java.lang.String |
getSkinClass()
Returns skin base class name. |
SkinInfo |
getSkinInfo()
Returns theme information. |
java.util.List<java.lang.String> |
getSupportedSystems()
Returns list of supported OS. |
Methods inherited from class com.alee.managers.style.skin.WebLafSkin |
---|
applyProperties, applySkin, applySkin, getComponentStyleImpl, getComponentStyleImpl, getComponentUIImpl, getCustomPainterProperties, getFieldValue, getPainter, getPainterPropertyValue, getPainterPropertyValue, getSupportedComponentTypeImpl, isSupported, removeSkin, setCustomPainterProperty, setCustomPainterProperty, setFieldValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected SkinInfo skinInfo
Constructor Detail |
---|
public CustomSkin(java.lang.String location)
location
- skin info XML location relative to this classpublic CustomSkin(SkinInfo skinInfo)
skinInfo
- theme informationMethod Detail |
---|
public SkinInfo getSkinInfo()
public java.lang.String getId()
getId
in class WebLafSkin
public java.lang.String getName()
getName
in class WebLafSkin
public java.lang.String getDescription()
getDescription
in class WebLafSkin
public java.lang.String getAuthor()
getAuthor
in class WebLafSkin
public java.util.List<java.lang.String> getSupportedSystems()
getSupportedSystems
in class WebLafSkin
public java.lang.String getSkinClass()
getSkinClass
in class WebLafSkin
public ComponentStyle getComponentStyle(javax.swing.JComponent component, SupportedComponent type)
getComponentStyle
in class WebLafSkin
component
- component instancetype
- component type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |