|
|||||||||
| Home >> All >> javatools >> swing >> [ tree overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javatools.swing.tree
Class IndexedTypedTreeNode

java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
javatools.swing.tree.IndexedTypedTreeNode
- All Implemented Interfaces:
- javatools.util.Clippable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
- public class IndexedTypedTreeNode
- extends javax.swing.tree.DefaultMutableTreeNode
- implements javatools.util.Clippable
- extends javax.swing.tree.DefaultMutableTreeNode
It is a node that is both typed (with a "type") and indexed (with an index).
- Version:
- 0.1.9
| Nested Class Summary |
| Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
| Field Summary | |
protected boolean |
beingCut
true: the node is being cut;
false: otherwise. |
protected boolean |
deleteWhenCut
true: this node deletes itself (removes itself from its parent)
when cut;
false: the opposite. |
protected boolean |
dupWhenClipped
true: the node duplicates itself when clipped (cut or copied);
false: the node returns itself. |
protected boolean |
expanded
true: the node is expanded;
false: the node is not expanded. |
protected java.lang.Object[] |
ID
The ID of this node. |
protected javax.swing.JTree |
tree
The tree in which the node is contained. |
protected java.lang.String |
type
The type of this node. |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
IndexedTypedTreeNode()
Creates a new instance of IndexedTypedTreeNode |
|
IndexedTypedTreeNode(javatools.util.Clippable clip)
|
|
IndexedTypedTreeNode(javatools.util.Clippable clip,
java.lang.Object userObject)
|
|
IndexedTypedTreeNode(javax.swing.JTree pTree,
java.lang.Object userObject)
Creates a new IndexedTypedTreeNode. |
|
IndexedTypedTreeNode(javax.swing.JTree pTree,
java.lang.Object userObject,
boolean allowsChildren)
Creates a new IndexedTypedTreeNode. |
|
IndexedTypedTreeNode(java.lang.Object userObject)
Creates a new instance of IndexedTypedTreeNode |
|
IndexedTypedTreeNode(java.lang.Object userObject,
boolean allowsChildren)
Creates a new IndexedTypedTreeNode. |
|
| Method Summary | |
void |
add(IndexedTypedTreeNode newChild)
Adds a child to the node. |
void |
attach(javatools.util.Clippable newSon)
Attaches an object to this one. |
boolean |
canBeAttached(javatools.util.Clippable newSon)
Checks whether an object can be attached to this one. |
boolean |
canBeCopied()
Checks whether this object can be copied or not. |
boolean |
canBeCut()
Checks whether this object can be cut or not. |
protected void |
conditionalSetPlace(javax.swing.tree.TreeNode node,
java.lang.Object place)
Sets a node's tree if it is really a JTree. |
javatools.util.Clippable |
copy()
Copies this object into the clipboard. |
javatools.util.Clippable |
cut()
Cuts this object into the clipboard. |
javatools.util.Clippable |
duplicate()
Duplicates (clones) this object. |
void |
expand()
Expands the node. |
boolean |
getDeleteWhenCut()
Checks whether the node will be deleted when cut. |
boolean |
getDuplicateWhenClipped()
Checks whether the node will be duplicated when clipped. |
java.lang.Object[] |
getID()
Returns the ID. |
java.lang.Object |
getPlace()
Returns the tree that contains the node. |
java.lang.String |
getType()
Returns the type of the node. |
java.lang.Object |
getValue()
Returns the value of this object. |
void |
insert(IndexedTypedTreeNode newChild,
int childIndex)
Inserts a child to the node. |
boolean |
isExpanded()
Returns the expanded flag. |
void |
paste(javatools.util.Clippable newFather)
Pastes this object into another. |
void |
reload()
Reloads the node. |
void |
remove(IndexedTypedTreeNode aChild)
Removes a specified child. |
void |
remove(int childIndex)
Removes a child. |
void |
removeAllChildren()
Removes all children from this node. |
void |
removeFromParent()
Removes this node from his parent node. |
void |
setDeleteWhenCut(boolean value)
Sets the property for "deleting when cut". |
void |
setDuplicateWhenClipped(boolean value)
Sets the "duplicate when clipped" property. |
void |
setExpanded(boolean value)
Sets the expanded flag. |
void |
setID(java.lang.Object[] pID)
Sets the ID for the node. |
void |
setPlace(java.lang.Object place)
Sets the tree that contains the node (and all of his subnodes). |
protected void |
setPlaceForChildren(java.lang.Object place)
Sets the tree for all children of this node. |
void |
setType(java.lang.String pType)
Sets the type of node. |
void |
unclip()
Resets the status of this object. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
expanded
protected boolean expanded
true: the node is expanded;false: the node is not expanded.
deleteWhenCut
protected boolean deleteWhenCut
true: this node deletes itself (removes itself from its parent) when cut;false: the opposite.
dupWhenClipped
protected boolean dupWhenClipped
true: the node duplicates itself when clipped (cut or copied);false: the node returns itself.
beingCut
protected boolean beingCut
true: the node is being cut;false: otherwise.
ID
protected java.lang.Object[] ID
- The ID of this node.
type
protected java.lang.String type
- The type of this node.
tree
protected javax.swing.JTree tree
- The tree in which the node is contained.
| Constructor Detail |
IndexedTypedTreeNode
public IndexedTypedTreeNode()
- Creates a new instance of IndexedTypedTreeNode
IndexedTypedTreeNode
public IndexedTypedTreeNode(java.lang.Object userObject)
- Creates a new instance of IndexedTypedTreeNode
IndexedTypedTreeNode
public IndexedTypedTreeNode(java.lang.Object userObject, boolean allowsChildren)
- Creates a new IndexedTypedTreeNode.
IndexedTypedTreeNode
public IndexedTypedTreeNode(javax.swing.JTree pTree, java.lang.Object userObject)
- Creates a new IndexedTypedTreeNode.
IndexedTypedTreeNode
public IndexedTypedTreeNode(javatools.util.Clippable clip)
IndexedTypedTreeNode
public IndexedTypedTreeNode(javatools.util.Clippable clip, java.lang.Object userObject)
IndexedTypedTreeNode
public IndexedTypedTreeNode(javax.swing.JTree pTree, java.lang.Object userObject, boolean allowsChildren)
- Creates a new IndexedTypedTreeNode.
| Method Detail |
setExpanded
public void setExpanded(boolean value)
- Sets the expanded flag.
isExpanded
public boolean isExpanded()
- Returns the expanded flag.
setID
public void setID(java.lang.Object[] pID)
- Sets the ID for the node.
getID
public java.lang.Object[] getID()
- Returns the ID.
setType
public void setType(java.lang.String pType)
- Sets the type of node.
getType
public java.lang.String getType()
- Returns the type of the node.
- Specified by:
getTypein interfacejavatools.util.Clippable
attach
public void attach(javatools.util.Clippable newSon)
- Attaches an object to this one.
- Specified by:
attachin interfacejavatools.util.Clippable
copy
public javatools.util.Clippable copy()
- Copies this object into the clipboard.
- Specified by:
copyin interfacejavatools.util.Clippable
cut
public javatools.util.Clippable cut()
- Cuts this object into the clipboard.
- Specified by:
cutin interfacejavatools.util.Clippable
getValue
public java.lang.Object getValue()
- Returns the value of this object.
- Specified by:
getValuein interfacejavatools.util.Clippable
paste
public void paste(javatools.util.Clippable newFather)
- Pastes this object into another.
- Specified by:
pastein interfacejavatools.util.Clippable
canBeAttached
public boolean canBeAttached(javatools.util.Clippable newSon)
- Checks whether an object can be attached to this one.
- Specified by:
canBeAttachedin interfacejavatools.util.Clippable
duplicate
public javatools.util.Clippable duplicate()
- Duplicates (clones) this object.
- Specified by:
duplicatein interfacejavatools.util.Clippable
unclip
public void unclip()
- Resets the status of this object.
- Specified by:
unclipin interfacejavatools.util.Clippable
canBeCut
public boolean canBeCut()
- Checks whether this object can be cut or not.
- Specified by:
canBeCutin interfacejavatools.util.Clippable
canBeCopied
public boolean canBeCopied()
- Checks whether this object can be copied or not.
- Specified by:
canBeCopiedin interfacejavatools.util.Clippable
setDeleteWhenCut
public void setDeleteWhenCut(boolean value)
- Sets the property for "deleting when cut".
getDeleteWhenCut
public boolean getDeleteWhenCut()
- Checks whether the node will be deleted when cut.
setDuplicateWhenClipped
public void setDuplicateWhenClipped(boolean value)
- Sets the "duplicate when clipped" property.
getDuplicateWhenClipped
public boolean getDuplicateWhenClipped()
- Checks whether the node will be duplicated when clipped.
getPlace
public java.lang.Object getPlace()
- Returns the tree that contains the node.
- Specified by:
getPlacein interfacejavatools.util.Clippable
setPlace
public void setPlace(java.lang.Object place)
- Sets the tree that contains the node (and all of his subnodes).
- Specified by:
setPlacein interfacejavatools.util.Clippable
add
public void add(IndexedTypedTreeNode newChild)
- Adds a child to the node.
insert
public void insert(IndexedTypedTreeNode newChild, int childIndex)
- Inserts a child to the node.
remove
public void remove(int childIndex)
- Removes a child.
- Specified by:
removein interfacejavax.swing.tree.MutableTreeNode
remove
public void remove(IndexedTypedTreeNode aChild)
- Removes a specified child.
removeAllChildren
public void removeAllChildren()
- Removes all children from this node.
removeFromParent
public void removeFromParent()
- Removes this node from his parent node.
- Specified by:
removeFromParentin interfacejavax.swing.tree.MutableTreeNode
reload
public void reload()
- Reloads the node.
expand
public void expand()
- Expands the node.
conditionalSetPlace
protected void conditionalSetPlace(javax.swing.tree.TreeNode node, java.lang.Object place)
- Sets a node's tree if it is really a JTree. Otherwise it does nothing.
setPlaceForChildren
protected void setPlaceForChildren(java.lang.Object place)
- Sets the tree for all children of this node.
|
|||||||||
| Home >> All >> javatools >> swing >> [ tree overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC