|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.extentech.ExtenBean.DataObjectImpl
com.extentech.ExtenBean.swing.ExtenBeanTreeNode
public class ExtenBeanTreeNode
An ExtenDataObject which is also a MutableTreeNode
| Field Summary |
|---|
| Fields inherited from class com.extentech.ExtenBean.DataObjectImpl |
|---|
dataObjectActionListeners, doparent, EXTENBEAN_LOADER_NAME, props |
| Constructor Summary | |
|---|---|
ExtenBeanTreeNode()
|
|
ExtenBeanTreeNode(DataObject dobj)
init with an alternate DataObject type |
|
ExtenBeanTreeNode(DataObject dobj,
String nodetype)
init with an alternate DataObject type |
|
ExtenBeanTreeNode(ExtenBeanTreeNode dobj)
init with an alternate DataObject type |
|
ExtenBeanTreeNode(String text)
|
|
| Method Summary | |
|---|---|
void |
activate()
load the data from the underlying persistence layer |
void |
add(ExtenBeanTreeNode node)
|
Enumeration |
children()
|
boolean |
getAllowsChildren()
|
static com.extentech.toolkit.ResourceLoader |
getBeanLoader()
|
ExtenBeanTreeNode |
getCategoryNode(PersistenceEngine factory,
String nodetype)
pass a factory and a node type this method will look up node values in properties file and populate TreeNode particulars such as icons etc. |
TreeNode |
getChildAt(int childIndex)
|
int |
getChildCount()
|
String |
getChildNodeType()
|
Icon |
getCollapsedIcon()
|
Color |
getColor()
Returns the color used to draw the text. |
SimpleDataObject |
getDataObject(int x)
get a new DataObject from this collection of Data. |
com.symantec.itools.javax.swing.icons.ImageIcon |
getDefaultIcon()
|
String |
getDefaultURL()
Display a default web page or other URL for this DataObject. |
String[] |
getEditCols()
get the fields to display in the console determines which fields are editable through the interface |
Icon |
getExpandedIcon()
|
ExtenBeanTreeNode |
getExtenBeanTreeNode(int idx)
|
Font |
getFont()
Returns the Font used to represent this object. |
int |
getIndex(TreeNode node)
|
int |
getLevel()
|
String |
getName()
|
ExtenBeanTreeNode |
getNewChildNode(ExtenBeanTreeNode newnode,
String nodetype)
|
ExtenBeanTreeNode |
getNewChildNode(String nodetype)
create a new child node which conforms to the type of node contained by this node. |
ExtenBeanTreeNode |
getNewDefaultChildNode()
|
static void |
getNodeFromResources(ExtenBeanTreeNode node,
String nodetype)
fills node with info from resources/extenbean given nodetype looks up do_ |
String |
getNodeLookupString()
|
String |
getNodeName()
|
String |
getNodeName(String looky)
|
String |
getNodeType()
|
TreeNode |
getParent()
|
TreePath |
getPath()
new TreePath(Object[])Constructs a path from an array of Objects, uniquely identifying the path from the root of the tree to a specific node, as returned by the tree's data model. |
Hashtable |
getRecord(int index)
|
boolean |
getSelected()
|
Icon |
getSelectedIcon()
|
String |
getToolTipText()
|
JTree |
getTree()
|
void |
getTreeElements(Vector connections,
Vector ranges,
Hashtable queries,
DocumentHandle bk)
|
Object |
getUserObject()
|
void |
init()
Post-data initialization tasks. |
void |
initChildDefinitions()
init the child node definition for now, limit to one child node type... |
void |
initNode(int idx,
ExtenBeanTreeNode dobj)
more or less clone this node, except as a singleton |
void |
insert(MutableTreeNode child,
int index)
|
boolean |
isDeleted()
|
boolean |
isLeaf()
|
void |
load()
A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database. |
void |
remove(int index)
|
void |
remove(MutableTreeNode node)
|
void |
removeAllChildren()
blow out the child nodes |
void |
removeFromParent()
|
void |
setCollapsedIcon(com.symantec.itools.javax.swing.icons.ImageIcon i)
|
void |
setColor(Color newColor)
Sets the color used to draw the text. |
void |
setDefaultIcon(com.symantec.itools.javax.swing.icons.ImageIcon i)
|
void |
setExpandedIcon(com.symantec.itools.javax.swing.icons.ImageIcon i)
|
void |
setFont(Font newFont)
Sets the font that is used to represent this object. |
void |
setIsDeleted(boolean bIsDeleted)
more than a flag! |
void |
setName(String name)
|
void |
setNodeLookupString(String lustr)
|
void |
setNodeName(String n)
|
void |
setNodeType(String n)
|
void |
setParent(MutableTreeNode newParent)
|
void |
setSelected(boolean sel)
|
void |
setTree(JTree n)
|
void |
setUserObject(Object object)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExtenBeanTreeNode(String text)
public ExtenBeanTreeNode()
public ExtenBeanTreeNode(DataObject dobj)
public ExtenBeanTreeNode(DataObject dobj,
String nodetype)
public ExtenBeanTreeNode(ExtenBeanTreeNode dobj)
| Method Detail |
|---|
public static void getNodeFromResources(ExtenBeanTreeNode node,
String nodetype)
public static com.extentech.toolkit.ResourceLoader getBeanLoader()
public void setTree(JTree n)
public JTree getTree()
public void load()
DataObjectImpl
load in interface DataObjectload in interface SimpleDataObjectload in class DataObjectImplpublic void init()
DataObject
init in interface DataObjectpublic SimpleDataObject getDataObject(int x)
getDataObject in interface SimpleDataObjectpublic void activate()
DataObject
activate in interface DataObjectpublic int getLevel()
getLevel in interface RelationalObjectgetLevel in class DataObjectImplpublic TreePath getPath()
public boolean getSelected()
public void setSelected(boolean sel)
public void setNodeName(String n)
public ExtenBeanTreeNode getCategoryNode(PersistenceEngine factory,
String nodetype)
public Enumeration children()
children in interface TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodepublic TreeNode getChildAt(int childIndex)
getChildAt in interface TreeNodepublic int getChildCount()
getChildCount in interface TreeNodepublic int getIndex(TreeNode node)
getIndex in interface TreeNodepublic TreeNode getParent()
getParent in interface TreeNode
public void insert(MutableTreeNode child,
int index)
insert in interface MutableTreeNodepublic boolean isLeaf()
isLeaf in interface TreeNodepublic boolean isDeleted()
public void setIsDeleted(boolean bIsDeleted)
bIsDeleted - public void remove(int index)
remove in interface MutableTreeNodepublic void remove(MutableTreeNode node)
remove in interface MutableTreeNodepublic void removeFromParent()
removeFromParent in interface MutableTreeNodepublic void setParent(MutableTreeNode newParent)
setParent in interface MutableTreeNodepublic void setUserObject(Object object)
setUserObject in interface MutableTreeNodepublic Object getUserObject()
public Icon getExpandedIcon()
public Icon getSelectedIcon()
public Icon getCollapsedIcon()
public com.symantec.itools.javax.swing.icons.ImageIcon getDefaultIcon()
public void setDefaultIcon(com.symantec.itools.javax.swing.icons.ImageIcon i)
public void setCollapsedIcon(com.symantec.itools.javax.swing.icons.ImageIcon i)
public void setExpandedIcon(com.symantec.itools.javax.swing.icons.ImageIcon i)
public void setFont(Font newFont)
public Font getFont()
public void setColor(Color newColor)
public Color getColor()
public void add(ExtenBeanTreeNode node)
public String[] getEditCols()
public void removeAllChildren()
public ExtenBeanTreeNode getNewDefaultChildNode()
public String getChildNodeType()
public ExtenBeanTreeNode getNewChildNode(String nodetype)
public ExtenBeanTreeNode getNewChildNode(ExtenBeanTreeNode newnode,
String nodetype)
public void initChildDefinitions()
public String getDefaultURL()
public ExtenBeanTreeNode getExtenBeanTreeNode(int idx)
public void initNode(int idx,
ExtenBeanTreeNode dobj)
public void setNodeLookupString(String lustr)
public String getNodeLookupString()
public String getNodeName(String looky)
public String getNodeName()
public void setNodeType(String n)
public String getToolTipText()
public String getNodeType()
public String toString()
toString in class DataObjectImplpublic Hashtable getRecord(int index)
public void getTreeElements(Vector connections,
Vector ranges,
Hashtable queries,
DocumentHandle bk)
public String getName()
public void setName(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||