|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jopendocument.dom.StyleDesc<S>
S - type of stylepublic abstract class StyleDesc<S extends Style>
Describe a family of style.
| Constructor Summary | |
|---|---|
protected |
StyleDesc(Class<S> clazz,
XMLVersion version,
String elemName,
String baseName)
|
protected |
StyleDesc(Class<S> clazz,
XMLVersion version,
String elemName,
String baseName,
String ns,
List<String> refQNames)
|
| Method Summary | ||
|---|---|---|
static
|
copy(StyleDesc<C> toClone,
XMLVersion version)
|
|
abstract S |
create(ODPackage pkg,
org.jdom.Element e)
|
|
S |
createAutoStyle(ODPackage pkg)
|
|
S |
createAutoStyle(ODPackage pkg,
String baseName)
Create a new automatic style in the content of pkg. |
|
S |
createCommonStyle(ODPackage pkg,
String styleName)
|
|
protected org.jdom.Element |
createElement(String styleName)
|
|
protected org.jdom.Element |
evaluateConditions(StyledNode<S,?> styledNode,
List<org.jdom.Element> styleMaps)
|
|
S |
findStyleForNode(ODPackage pkg,
org.jdom.Document doc,
StyledNode<S,?> styledNode,
String name)
|
|
S |
findStyleForNode(StyledNode<S,?> styledNode,
String name)
Find the style for the passed node. |
|
S |
findStyleWithName(ODPackage pkg,
org.jdom.Document doc,
String name)
Resolve the passed style name. |
|
String |
getBaseName()
|
|
String |
getElementName()
The name of the XML element for this type of style. |
|
org.jdom.Namespace |
getElementNS()
|
|
protected CollectionMap<String,String> |
getMultiRefElementsMap()
|
|
protected Collection<String> |
getRefElements()
The list of elements that can point to this family of style. |
|
protected CollectionMap<String,String> |
getRefElementsMap()
|
|
XMLVersion |
getVersion()
|
|
protected void |
initStyle(org.jdom.Element elem)
|
|
protected void |
setElementNS(org.jdom.Namespace elemNS)
|
|
protected boolean |
supportConditions()
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected StyleDesc(Class<S> clazz,
XMLVersion version,
String elemName,
String baseName,
String ns,
List<String> refQNames)
protected StyleDesc(Class<S> clazz,
XMLVersion version,
String elemName,
String baseName)
| Method Detail |
|---|
public static <C extends Style> StyleDesc<C> copy(StyleDesc<C> toClone,
XMLVersion version)
public abstract S create(ODPackage pkg,
org.jdom.Element e)
public final XMLVersion getVersion()
protected final void setElementNS(org.jdom.Namespace elemNS)
public final org.jdom.Namespace getElementNS()
public final String getElementName()
public final String getBaseName()
protected final Collection<String> getRefElements()
protected final CollectionMap<String,String> getRefElementsMap()
protected final CollectionMap<String,String> getMultiRefElementsMap()
public final S findStyleWithName(ODPackage pkg,
org.jdom.Document doc,
String name)
name,
possibly ignoring conditions.
pkg - the package of the searched for style.doc - the document of the searched for style.name - the name of the style.
null if not found.findStyleForNode(StyledNode, String)
public final S findStyleForNode(StyledNode<S,?> styledNode,
String name)
name.
styledNode - needed to evaluate conditions, not null.name - the name of the style.
null if not found.findStyleWithName(ODPackage, Document, String)
public final S findStyleForNode(ODPackage pkg,
org.jdom.Document doc,
StyledNode<S,?> styledNode,
String name)
protected boolean supportConditions()
protected org.jdom.Element evaluateConditions(StyledNode<S,?> styledNode,
List<org.jdom.Element> styleMaps)
public final S createAutoStyle(ODPackage pkg)
public final S createAutoStyle(ODPackage pkg,
String baseName)
pkg.
pkg - where to add the new style.baseName - the base name for the new style, eg "ce".
public final S createCommonStyle(ODPackage pkg,
String styleName)
protected final org.jdom.Element createElement(String styleName)
protected void initStyle(org.jdom.Element elem)
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||