public class DefaultDataSourceNode
extends javax.swing.tree.DefaultMutableTreeNode
public class myDSMListener extends DataSourceManagerListener { public JTree modifyDataSourceTree(JTree tree) { DefaultDataSourceNode databaseNode = tree.getModel().getRoot().getFirstChild(); databaseNode.setAddAllowed(false); } }
Constructor and Description |
---|
DefaultDataSourceNode()
For internal use only
|
DefaultDataSourceNode(java.lang.Object userObject)
For internal use only
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
java.lang.String |
getID()
For internal use only
|
java.lang.String |
getLastID()
For internal use only
|
java.lang.String |
getRegistryID()
For internal use only
|
boolean |
isAddEnabled()
Determine if the 'Add' button is enabled when this node is selected.
|
boolean |
isCopyEnabled()
Determine if the 'Copy' button is enabled when this node is selected.
|
boolean |
isEditEnabled()
Determine if the 'Edit' button is enabled when this node is selected.
|
boolean |
isNextEnabled()
Determine if the 'Next' button is enabled when this node is selected.
|
boolean |
isRemoveEnabled()
Determine if the 'Remove' button is enabled when this node is selected.
|
boolean |
isUpdateEnabled()
Determine if the 'Update' button is enabled when this node is selected.
|
void |
setAddEnabled(boolean state)
Specify if the 'Add' button is enabled when this node is selected.
|
void |
setCopyEnabled(boolean state)
Specify if the 'Copy' button is enabled when this node is selected.
|
void |
setDescription(java.lang.String description) |
void |
setEditEnabled(boolean state)
Specify if the 'Edit' button is enabled when this node is selected.
|
void |
setID(java.lang.String id)
For internal use only
|
void |
setLastID(java.lang.String lastID)
For internal use only
|
void |
setNextEnabled(boolean state)
Specify if the 'Next' button is enabled when this node is selected.
|
void |
setRegistryID(java.lang.String registryID)
For internal use only
|
void |
setRemoveEnabled(boolean state)
Specify if the 'Remove' button is enabled when this node is selected.
|
void |
setUpdateEnabled(boolean state)
Specify if the 'Update' button is enabled when this node is selected.
|
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
public DefaultDataSourceNode()
public DefaultDataSourceNode(java.lang.Object userObject)
public boolean isEditEnabled()
public boolean isCopyEnabled()
public boolean isUpdateEnabled()
public boolean isAddEnabled()
public boolean isRemoveEnabled()
public boolean isNextEnabled()
public void setEditEnabled(boolean state)
isEditEnabled()
public void setCopyEnabled(boolean state)
isCopyEnabled()
public void setUpdateEnabled(boolean state)
isCopyEnabled()
public void setAddEnabled(boolean state)
isAddEnabled()
public void setRemoveEnabled(boolean state)
isRemoveEnabled()
public void setNextEnabled(boolean state)
isNextEnabled()
public java.lang.String getID()
public void setID(java.lang.String id)
public java.lang.String getLastID()
public void setLastID(java.lang.String lastID)
public java.lang.String getRegistryID()
public void setRegistryID(java.lang.String registryID)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description to set