|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jzeno.echo.GenericStyle
public class GenericStyle
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sf.jzeno.echo.StyleManager |
---|
StyleManager.MetaData |
Constructor Summary | |
---|---|
GenericStyle()
|
Method Summary | |
---|---|
java.lang.Class |
getDemoPanelClass(java.lang.String styleName)
Gets the class of the DemoPanel that is visualized when editing a given style. |
java.lang.String |
getDescription(java.lang.String styleName)
Gets the description for a given style. |
java.util.List |
getMetaData(java.lang.String styleName)
Returns a list of StyleManager.MetaData objects, describing all possible properties for the given style. |
Style |
getStyle(java.lang.String styleName)
Gets the Style with the given name. |
java.util.List |
getStyleNames()
Gives a list with all the style names known to this style manager. |
void |
remove(java.lang.String styleName)
Deletes a given style from the style manager. |
void |
save()
Instructs the style manager to persist the current styles. |
void |
setDemoPanelClass(java.lang.String styleName,
java.lang.Class demoPanelClass)
Sets the class of the DemoPanel that is visualized when editing a given style. |
void |
setDescription(java.lang.String styleName,
java.lang.String description)
Sets the description for a given style. |
void |
setMetaData(java.lang.String styleName,
java.util.List metaDataList)
Creates/Replaces a given style. |
void |
setStyle(java.lang.String styleName,
Style style)
Sets the Style with the given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericStyle()
Method Detail |
---|
public Style getStyle(java.lang.String styleName)
StyleManager
Gets the Style with the given name.
getStyle
in interface StyleManager
public void setStyle(java.lang.String styleName, Style style)
StyleManager
Sets the Style with the given name.
setStyle
in interface StyleManager
public java.util.List getStyleNames()
StyleManager
Gives a list with all the style names known to this style manager.
getStyleNames
in interface StyleManager
public void save()
StyleManager
Instructs the style manager to persist the current styles.
save
in interface StyleManager
public java.util.List getMetaData(java.lang.String styleName)
StyleManager
Returns a list of StyleManager.MetaData objects, describing all possible properties for the given style.
getMetaData
in interface StyleManager
public void setMetaData(java.lang.String styleName, java.util.List metaDataList)
StyleManager
Creates/Replaces a given style. You need to supply the style's name, the class of a DemoPanel that needs to be shown when editing this Style (or null if no DemoPanel is available), and a list of StyleManager.MetaData objects, that describe all possible properties that are applicable for this Style.
setMetaData
in interface StyleManager
public java.lang.Class getDemoPanelClass(java.lang.String styleName)
StyleManager
Gets the class of the DemoPanel that is visualized when editing a given style.
getDemoPanelClass
in interface StyleManager
public void setDemoPanelClass(java.lang.String styleName, java.lang.Class demoPanelClass)
StyleManager
Sets the class of the DemoPanel that is visualized when editing a given style.
setDemoPanelClass
in interface StyleManager
public java.lang.String getDescription(java.lang.String styleName)
StyleManager
Gets the description for a given style.
getDescription
in interface StyleManager
public void setDescription(java.lang.String styleName, java.lang.String description)
StyleManager
Sets the description for a given style.
setDescription
in interface StyleManager
public void remove(java.lang.String styleName)
StyleManager
Deletes a given style from the style manager.
remove
in interface StyleManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |