|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
wxtpages.unit
wxtpages.unitTemplate
An instance of unitTemplate holds a template that are used to build pages. Each unitTemplate instance match a template element in the script.
Field Summary |
Fields inherited from class wxtpages.unit |
CONTENT_TYPE, DBCONTENT_TYPE, GROUP_TYPE, m_absoluteUri, m_description, m_Doc, m_GroupMaster, m_lastTimeUsed, m_myElement, m_name, m_optionMap, m_originalUri, m_parameterMap, m_propertyMap, m_txtContent, m_type, PAGE_TYPE, TEMPLATE_TYPE, TEXTCONTENT_TYPE, TRANSFORMATION_TYPE, UNIT_TYPE |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
unitTemplate(unitGroup master,
org.w3c.dom.Element elt)
Creates a new instance of unitTemplate |
|
unitTemplate(unitGroup master,
java.lang.String loc,
java.lang.String id)
Creates a new instance of unitTemplate |
Method Summary | |
boolean |
build()
Build has no meaning for templates. |
protected boolean |
establishDom()
Attempt to establish the DOM for this template Try to figure out the encoding. |
java.lang.String |
getTemplateID()
Get the ID for this tempalte |
boolean |
prepare(unit p,
java.lang.String theCommonName,
java.lang.String theCommonValue)
Prepare this unitTemplate with imports from non-content files. |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public unitTemplate(unitGroup master, java.lang.String loc, java.lang.String id) throws java.lang.Exception
master
- The unitGroup object that owns the page that will use this templateloc
- The location of the templateid
- The id that identifies the template when used in a page-element in the script.
java.lang.Exception
- When the object cannot be establishedpublic unitTemplate(unitGroup master, org.w3c.dom.Element elt) throws java.lang.Exception
master
- The unitGroup object that owns the page that will use this templateelt
- The element in the script that defines this template
java.lang.Exception
- When the object cannot be establishedMethod Detail |
public java.lang.String getTemplateID()
protected boolean establishDom()
establishDom
in class unit
public boolean build()
build
in class unit
public boolean prepare(unit p, java.lang.String theCommonName, java.lang.String theCommonValue)
prepare
in class unit
p
- The unit that will use this unit as content, may not be nulltheCommonName
- The name used for common resources in the materialtheCommonValue
- The value that we will use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |