Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

medi.swing.util
Class MediTreeNode  view MediTreeNode download MediTreeNode.java

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byjavatools.swing.tree.ExpansionRecordingTreeNode
          extended bymedi.swing.util.MediTreeNode
All Implemented Interfaces:
javatools.util.Clippable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class MediTreeNode
extends javatools.swing.tree.ExpansionRecordingTreeNode
implements javatools.util.Clippable

It's a tree node specifically designed for Medi.

Version:
0.1.0

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
private static java.lang.String[] allTypes
           
private  boolean beingCut
           
private static java.lang.String[][] compatStrings
           
private static java.lang.String[] copyableTypes
           
private static java.lang.String[] cuttableTypes
           
private  java.lang.Object[] ID
           
private static java.util.HashMap pasteCompatibility
           
private  java.lang.String type
           
private static java.util.HashSet type2copy
           
private static java.util.HashSet type2cut
           
 
Fields inherited from class javatools.swing.tree.ExpansionRecordingTreeNode
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
MediTreeNode()
          Creates new MediTreeNode
MediTreeNode(java.lang.Object userObject)
          Creates a new node with the given object.
MediTreeNode(java.lang.Object userObject, boolean allowsChildren)
          Creates a new node with the given object.
 
Method Summary
 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.
 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.
 java.lang.Object[] getID()
          Returns the ID.
 java.lang.String getType()
          Returns the type of the node.
 java.lang.Object getValue()
          Returns the value of this object.
static void init()
          Initializes some generic lists.
 void paste(javatools.util.Clippable newFather)
          Pastes this object into another.
 void setID(java.lang.Object[] pID)
          Sets the ID for the node.
 void setType(java.lang.String pType)
          Sets the type of node.
 void unclip()
          Resets the status of this object.
 
Methods inherited from class javatools.swing.tree.ExpansionRecordingTreeNode
isExpanded, setExpanded
 
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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javatools.util.Clippable
getPlace, setPlace
 

Field Detail

ID

private java.lang.Object[] ID

type

private java.lang.String type

beingCut

private boolean beingCut

cuttableTypes

private static java.lang.String[] cuttableTypes

copyableTypes

private static java.lang.String[] copyableTypes

allTypes

private static java.lang.String[] allTypes

compatStrings

private static java.lang.String[][] compatStrings

type2cut

private static java.util.HashSet type2cut

type2copy

private static java.util.HashSet type2copy

pasteCompatibility

private static java.util.HashMap pasteCompatibility
Constructor Detail

MediTreeNode

public MediTreeNode()
Creates new MediTreeNode


MediTreeNode

public MediTreeNode(java.lang.Object userObject)
Creates a new node with the given object.


MediTreeNode

public MediTreeNode(java.lang.Object userObject,
                    boolean allowsChildren)
Creates a new node with the given object.

Method Detail

init

public static void init()
Initializes some generic lists. It must be called at the start of the program.


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:
getType in interface javatools.util.Clippable

attach

public void attach(javatools.util.Clippable newSon)
Attaches an object to this one.

Specified by:
attach in interface javatools.util.Clippable

copy

public javatools.util.Clippable copy()
Copies this object into the clipboard.

Specified by:
copy in interface javatools.util.Clippable

cut

public javatools.util.Clippable cut()
Cuts this object into the clipboard.

Specified by:
cut in interface javatools.util.Clippable

getValue

public java.lang.Object getValue()
Returns the value of this object.

Specified by:
getValue in interface javatools.util.Clippable

paste

public void paste(javatools.util.Clippable newFather)
Pastes this object into another.

Specified by:
paste in interface javatools.util.Clippable

canBeAttached

public boolean canBeAttached(javatools.util.Clippable newSon)
Checks whether an object can be attached to this one.

Specified by:
canBeAttached in interface javatools.util.Clippable

duplicate

public javatools.util.Clippable duplicate()
Duplicates (clones) this object.

Specified by:
duplicate in interface javatools.util.Clippable

unclip

public void unclip()
Resets the status of this object.

Specified by:
unclip in interface javatools.util.Clippable

canBeCut

public boolean canBeCut()
Checks whether this object can be cut or not.

Specified by:
canBeCut in interface javatools.util.Clippable

canBeCopied

public boolean canBeCopied()
Checks whether this object can be copied or not.

Specified by:
canBeCopied in interface javatools.util.Clippable