|
|||||||||
| Home >> All >> medi >> swing >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
medi.swing.util
Class MediTreeNode

java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
javatools.swing.tree.ExpansionRecordingTreeNode
medi.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
- extends javatools.swing.tree.ExpansionRecordingTreeNode
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 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:
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
|
|||||||||
| Home >> All >> medi >> swing >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC