|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jzeno.echo.AbstractHardCodedStyle
public abstract class AbstractHardCodedStyle
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.sf.jzeno.echo.StyleManager |
|---|
StyleManager.MetaData |
| Field Summary | |
|---|---|
protected java.util.Map |
styleNameToDemoPanelClass
|
protected java.util.Map |
styleNameToDescription
|
protected java.util.Map |
styleNameToMetaDataList
|
protected java.util.Map |
styleNameToStyle
|
| Constructor Summary | |
|---|---|
AbstractHardCodedStyle()
|
|
| 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. |
static java.util.List |
importMetaData(java.lang.Class fromClass)
Helper function that allows you to specify the MetaData for a style by importing all information of a single class through the reflection API. |
protected java.util.List |
importMetaData(Style style)
Helper function that allows you to specify the MetaData for a style by importing all information from an example Style. |
protected abstract void |
init()
|
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 metaData)
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 |
| Field Detail |
|---|
protected java.util.Map styleNameToStyle
protected java.util.Map styleNameToMetaDataList
protected java.util.Map styleNameToDemoPanelClass
protected java.util.Map styleNameToDescription
| Constructor Detail |
|---|
public AbstractHardCodedStyle()
| Method Detail |
|---|
public Style getStyle(java.lang.String styleName)
StyleManagerGets the Style with the given name.
getStyle in interface StyleManagerpublic java.util.List getMetaData(java.lang.String styleName)
StyleManagerReturns a list of StyleManager.MetaData objects, describing all possible properties for the given style.
getMetaData in interface StyleManagerpublic java.lang.Class getDemoPanelClass(java.lang.String styleName)
StyleManagerGets the class of the DemoPanel that is visualized when editing a given style.
getDemoPanelClass in interface StyleManagerpublic java.util.List getStyleNames()
StyleManagerGives a list with all the style names known to this style manager.
getStyleNames in interface StyleManagerpublic java.lang.String getDescription(java.lang.String styleName)
StyleManagerGets the description for a given style.
getDescription in interface StyleManager
public void setDescription(java.lang.String styleName,
java.lang.String description)
StyleManagerSets the description for a given style.
setDescription in interface StyleManager
public void setStyle(java.lang.String styleName,
Style style)
StyleManagerSets the Style with the given name.
setStyle in interface StyleManager
public void setMetaData(java.lang.String styleName,
java.util.List metaData)
StyleManagerCreates/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 StyleManagerpublic void save()
StyleManagerInstructs the style manager to persist the current styles.
save in interface StyleManagerpublic void remove(java.lang.String styleName)
StyleManagerDeletes a given style from the style manager.
remove in interface StyleManager
public void setDemoPanelClass(java.lang.String styleName,
java.lang.Class demoPanelClass)
StyleManagerSets the class of the DemoPanel that is visualized when editing a given style.
setDemoPanelClass in interface StyleManagerpublic static java.util.List importMetaData(java.lang.Class fromClass)
Helper function that allows you to specify the MetaData for a style by importing all information of a single class through the reflection API.
protected java.util.List importMetaData(Style style)
Helper function that allows you to specify the MetaData for a style by importing all information from an example Style.
protected abstract void init()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||