daoc.editor.model.nodes
Class TemplateNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended bydaoc.editor.model.nodes.ElementNode
          extended bydaoc.editor.model.nodes.TemplateNode
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
Direct Known Subclasses:
ButtontemplateNode, ChatcontroltemplateNode, CheckboxtemplateNode, ComboboxtemplateNode, CompasscontroltemplateNode, FullresizeimagetemplateNode, HorizontalresizeimagetemplateNode, IconsettemplateNode, IcontemplateNode, ImageareatemplateNode, ListboxtemplateNode, MenutemplateNode, StatusbartemplateNode, StatusicontemplateNode, TextareatemplateNode, TreecontroltemplateNode, VerticalresizeimagetemplateNode, VerticalscrollbartemplateNode, VerticalstatusbartemplateNode

public abstract class TemplateNode
extends ElementNode

Used to group template elements. All template nodes should extend this class rather than ElementNode.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Method Summary
abstract  ControlPanel createDefaultControl(javax.swing.JPanel parent)
          Creates a default control to be displayed in a panel of the given dimension.
 java.lang.String getName()
           
 javax.swing.JPopupMenu getPopup()
           
 void init()
           
 void writeXML(java.io.Writer fout, int indent)
           
 
Methods inherited from class daoc.editor.model.nodes.ElementNode
add, addUpdateListener, compareTo, fireAddedEvent, fireRemoveEvent, fireUpdatedEvent, getEditors, getNodeList, getNodeName, insert, remove, removeUpdateListener, toString
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()

init

public void init()
Specified by:
init in class ElementNode

getPopup

public javax.swing.JPopupMenu getPopup()
Overrides:
getPopup in class ElementNode

writeXML

public void writeXML(java.io.Writer fout,
                     int indent)
              throws java.io.IOException
Specified by:
writeXML in class ElementNode
Throws:
java.io.IOException

createDefaultControl

public abstract ControlPanel createDefaultControl(javax.swing.JPanel parent)
Creates a default control to be displayed in a panel of the given dimension.