| java.lang.Object net.xoetrope.xui.style.XStyleManager net.xoetrope.builder.editor.XEditorStyleManager
XEditorStyleManager | public class XEditorStyleManager extends XStyleManager (Code) | | A subclass of the XStyleManager intended to allow saving of styles on behalf
of the editor-ide
Copyright (c) Xoetrope Ltd., 1998-2003
version: $Revision: 1.22 $ |
Method Summary | |
protected void | addChildStyles(XmlElement eleRoot, String[] styleNames, int start) | protected void | addColorElement(XmlElement ele, XStyle xstyle, String styleEleName, int index, XStyle parent) | protected void | addFontStyles(XmlElement ele, XStyle xstyle, XStyle parent) | protected void | addIntElement(XmlElement ele, XStyle xstyle, String styleEleName, int index, XStyle parent) | protected XmlElement | addStyle(XmlElement eleRoot, String fullName, String newName, XStyle parent) | protected String | formatColor(int portion) | public static XStyleManager | getInstance() Create the instance. | public String[] | getStylesArray() | public void | load(String file) | public void | removeAll() | public void | removeStyle(String name) | public void | saveStyles(String filename) |
XEditorStyleManager | protected XEditorStyleManager(int styleCount)(Code) | | |
addChildStyles | protected void addChildStyles(XmlElement eleRoot, String[] styleNames, int start)(Code) | | Add/derive a refinement of a style
Parameters: eleRoot - Parameters: styleNames - Parameters: start - |
addColorElement | protected void addColorElement(XmlElement ele, XStyle xstyle, String styleEleName, int index, XStyle parent)(Code) | | Add an element that represents a colour to the style hierarchy
Parameters: ele - the source element Parameters: xstyle - the style Parameters: styleEleName - Parameters: index - Parameters: parent - |
getInstance | public static XStyleManager getInstance()(Code) | | Create the instance. This class now delegates to the project manager.
|
getStylesArray | public String[] getStylesArray()(Code) | | Get an array of style names
|
load | public void load(String file)(Code) | | Load the styles from the specified file
Parameters: file - the file name of the file to load |
removeAll | public void removeAll()(Code) | | |
saveStyles | public void saveStyles(String filename)(Code) | | Save the styles to the specified file
Parameters: filename - |
|
|