|
IBM DB2 UDB Plugin Interface for Extending the Control Center |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The CCTreeObject interface allows users to define new objects to be inserted into the Control Center tree and Control Center details view.
The getChildren()
method defines
new objects as children of a CCTreeObject.
A CCTreeObject can represent an existing Control Center
object or a new plugin object type (see getType
).
CCObject
Field Summary | |
---|---|
static int |
CLOSED_FOLDER
Folder state is closed |
static int |
OPEN_FOLDER
Folder state is open. |
Method Summary | |
---|---|
CCTableObject[] |
getChildren()
Returns a vector of CCTableObjects that represent the children of this object. |
boolean |
isLeaf()
Returns whether or not this CCTreeObject is a leaf in the Control Center tree. |
Methods inherited from interface com.ibm.db2.tools.cc.navigator.CCTableObject |
---|
getColumns, getData, getIcon, setParentName |
Methods inherited from interface com.ibm.db2.tools.cc.navigator.CCObject |
---|
getMenuActions, getName, getType, isConfigurable, isEditable |
Field Detail |
public static final int CLOSED_FOLDER
CCTableObject.getIcon(int)
,
Constant Field Valuespublic static final int OPEN_FOLDER
CCTableObject.getIcon(int)
,
Constant Field ValuesMethod Detail |
public CCTableObject[] getChildren()
Depending on the value returned by isLeaf()
, these children
are shown in the Control Center tree and/or details view when this object is expanded.
This method is called by the Control Center when one of the following events occur:
Note: Adding a new plugin object as a child of an existing Control Center object which is a tree leaf object is not supported. Also adding a new plugin object as a child of an existing Control Center object which is not in the tree is not supported. For example, you can not add a new plugin object under UDB_TABLE objects because UDB_TABLE objects only appear in the details view and not in the Control Center tree.
In cases where the list of children can change, it is recommended that the children be reconstructed before they are returned by this method in order to reflect refreshed current information in the Control Center. Also the children should be stored to and read from persistent storage, so they will appear on subsequent invocations of the Control Center.
The list of children returned may be dependent on which objects
are the parents of this object.
The Control Center provides the names of the parents of this object
in setParentName
.
public boolean isLeaf()
|
IBM DB2 UDB Plugin Interface for Extending the Control Center |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(C)Copyright IBM Corp. 2002, 2004. All rights reserved.
Links on this page are made available for your convenience and may take you to non-IBM sites. IBM does not warrant any sample code provided on these sites.