|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.jgraph.graph.DefaultGraphCell
tico.board.components.TComponent
public abstract class TComponent
Defines a TComponent
and its attributes. Only subclasses
of TComponent
can be part of a TBoard
.
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
EMPTY_ENUMERATION |
Constructor Summary | |
---|---|
TComponent()
Creates a new TComponent . |
|
TComponent(java.lang.String id)
Creates a new TComponent with the specified initial
id . |
|
TComponent(java.lang.String id,
TComponent[] childs)
Creates a new TComponent with the specified initial
id and childs . |
|
TComponent(TComponent[] childs)
Creates a new TComponent with the specified initial
childs . |
Method Summary | |
---|---|
java.lang.String |
getId()
Returns the component id . |
abstract java.lang.String |
newId()
Generates a new id for this component. |
java.lang.String |
toString()
|
static TComponent |
XMLDecodeType(org.w3c.dom.Element element)
Returns a TComponent object from the data contained in
the XML Element . |
abstract org.w3c.dom.Node |
XMLEncode(org.w3c.dom.Document doc)
Generates an XML Element that contains the component information. |
Methods inherited from class org.jgraph.graph.DefaultGraphCell |
---|
changeAttributes, clone, getAttributes, getChildren, setAttributes |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
add, breadthFirstEnumeration, children, 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, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TComponent()
TComponent
.
public TComponent(java.lang.String id)
TComponent
with the specified initial
id
.
id
- The specified initial id
public TComponent(TComponent[] childs)
TComponent
with the specified initial
childs
.
childs
- The specified initial childs
public TComponent(java.lang.String id, TComponent[] childs)
TComponent
with the specified initial
id
and childs
.
id
- The specified initial id
childs
- The specified initial childs
Method Detail |
---|
public abstract java.lang.String newId()
public java.lang.String getId()
id
.
id
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public abstract org.w3c.dom.Node XMLEncode(org.w3c.dom.Document doc)
Element
that contains the component information.
doc
- The Document
represents that represents the
entire XML document
Element
generatedpublic static TComponent XMLDecodeType(org.w3c.dom.Element element) throws InvalidFormatException
TComponent
object from the data contained in
the XML Element
.
element
- The XML Element
that contains the component data
TComponent
InvalidFormatException
- If Element
has an invalid format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |