|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteServerNodeInterface
RemoteServerNodeInterface defines the SCL level interface of a remote ServerNodeInterface. This interface is used primarily for direct, internal communication with the remote SCL object. ServerNodeDelegate, which acts as the Adapter between the more public ServerNodeInterface and the remote SCL object, is the princical user of this interface. Most users of a remote server node/tree will use the public methods in com.sas.models.TreeInterface, com.sas.models.NodeInterface,
The RemoteServerNodeInterface is designed to provide more and com.sas.models.NodeIconInterface
To do: implement
void _addNodeChild( ??? child, int index);
TreeInterface
,
NodeInterface
,
NodeIconInterface
Field Summary | |
---|---|
static java.lang.String |
CHILDREN_KEY
Key for the item which contains a possibly empty list of sublists. |
static java.lang.String |
CLASS_KEY
Key for the String item which names the SCL class that should be instantiated should the cached node list not provide enough information. |
static java.lang.String |
contextClasspath
Name of the default SAS/AF class which implements the remote tree. |
static java.lang.String |
EXPICON_KEY
Key for the String item which names the icon to use for the node when the node is expanded or "open". |
static java.lang.String |
EXPSELICON_KEY
Key for the String item which names the icon to use for the node when the node is selected and expanded. |
static java.lang.String |
EXPTEXT_KEY
Key for the String item which names the text to used for the node when expanded in a tree. |
static java.lang.String |
ICON_KEY
Key for the String item which names the icon to use for the node. |
static java.lang.String |
ID_KEY
Key for the numeric item which names the object identifer of a remote SCL node object. |
static java.lang.String |
LEAF_KEY
Key for the numeric item which is non zero if the node represented by this list is a leaf node, and 0 if the node represents a tree. |
static java.lang.String |
OTHERICONS_KEY
Key for the String item which names the icon to use if the expanded, expandedSelected, or selected icons are null. |
static java.lang.String |
PARENTID_KEY
|
static java.lang.String |
SELICON_KEY
Key for the String item which names the icon to use for the node when the node is selected but not expanded. |
static java.lang.String |
TEXT_KEY
Key for the String item which contains the node's text. |
static java.lang.String |
TYPE_KEY
Key for the String item which defines the node type. |
Method Summary | |
---|---|
int |
_countNodeChildren(int max)
Count the node's children, but stop if a maximum is reached. |
int |
_getDefaultIcon()
Retrieve this node's default icon, which is used to display the unexpanded node in a tree view. |
int |
_getExpandedIcon()
Retrieve this node's expanded icon, which is used to display the expanded node in a tree view. |
int |
_getExpandedSelectedIcon()
Retrieve this node's icon to be used when displaying the selected expanded node in a tree view. |
int |
_getNodeChildCount()
Returns the number of children. |
com.sas.collection.hlist.HListInterface |
_getNodeChildren(int nodeIndex,
int count)
Obtain a list that describes the specified children of the current node. |
java.lang.String |
_getNodeExpandedText()
Retrieve the text to display when this node is expanded. |
java.lang.String |
_getNodeText()
Retrieve the text to display when this node is not expanded. |
java.lang.String |
_getNodeType()
Retrieve this node's type, which is used to determine the node's icon if none is specified explicitly. |
int |
_getSelectedIcon()
Retrieve this node's selected icon, which is used to display the selected unexpanded node in a tree view. |
void |
_initialize(com.sas.collection.hlist.HListInterface initList,
int parentId,
int descListId)
Initialize the remote object based on the items in the initList. |
boolean |
_isLeafNode()
Tell if the node is a leaf node. |
void |
_removeNodeChild(int index)
Remove a child node. |
void |
_setDefaultIcon(int icon)
Set this node's default icon, which is used to display the unexpanded node in a tree view. |
void |
_setExpandedIcon(int icon)
Set this node's expanded icon, which is used to display the expanded node in a tree view. |
void |
_setExpandedSelectedIcon(int icon)
Set this node's type, which is used when displaying the selected expanded node in a tree view. |
void |
_setNodeExpandedText(java.lang.String text)
Set the text to display when this node is expanded. |
void |
_setNodeText(java.lang.String text)
Set the text to display when this node is not expanded. |
void |
_setNodeType(java.lang.String type)
Set this node's type, which is used to determine the node's icon if none is specified explicitly. |
void |
_setSelectedIcon(int icon)
Set this node's selected icon, which is used to display the selected unexpanded node in a tree view. |
Field Detail |
---|
static final java.lang.String contextClasspath
static final java.lang.String CLASS_KEY
Items with names matching ID_KEY and CLASS_KEY are mutually exclusive
_getNodeChildren(int, int)
,
_initialize(com.sas.collection.hlist.HListInterface, int, int)
,
Constant Field Valuesstatic final java.lang.String ID_KEY
Items with names matching ID_KEY and CLASS_KEY are mutually exclusive
_getNodeChildren(int, int)
,
Constant Field Valuesstatic final java.lang.String TEXT_KEY
_getNodeChildren(int, int)
,
Constant Field Valuesstatic final java.lang.String TYPE_KEY
_getNodeChildren(int, int)
,
TreeView.setIcon(java.lang.String, com.sas.visuals.IconInterface)
,
Constant Field Valuesstatic final java.lang.String EXPTEXT_KEY
_getNodeChildren(int, int)
,
Constant Field Valuesstatic final java.lang.String ICON_KEY
_getNodeChildren(int, int)
,
Constant Field Valuesstatic final java.lang.String EXPICON_KEY
_getNodeChildren(int, int)
,
Constant Field Valuesstatic final java.lang.String SELICON_KEY
_getNodeChildren(int, int)
,
Constant Field Valuesstatic final java.lang.String EXPSELICON_KEY
_getNodeChildren(int, int)
,
Constant Field Valuesstatic final java.lang.String OTHERICONS_KEY
_getNodeChildren(int, int)
,
Constant Field Valuesstatic final java.lang.String LEAF_KEY
_getNodeChildren(int, int)
,
Constant Field Valuesstatic final java.lang.String PARENTID_KEY
static final java.lang.String CHILDREN_KEY
_getNodeChildren(int, int)
,
CLASS_KEY
,
ID_KEY
,
TEXT_KEY
,
TYPE_KEY
,
EXPTEXT_KEY
,
ICON_KEY
,
EXPICON_KEY
,
SELICON_KEY
,
EXPSELICON_KEY
,
LEAF_KEY
,
Constant Field ValuesMethod Detail |
---|
com.sas.collection.hlist.HListInterface _getNodeChildren(int nodeIndex, int count)
nodeIndex
- the index of the first subnode to return
(the first child is at index 0)count
- how many children to return. The returned array
will have length equal to count. If there
are not this many chldren starting at nodeIndex,
the remaining items are left null
.
CLASS_KEY
,
ID_KEY
,
TEXT_KEY
,
TYPE_KEY
,
EXPTEXT_KEY
,
ICON_KEY
,
EXPICON_KEY
,
SELICON_KEY
,
EXPSELICON_KEY
,
LEAF_KEY
void _initialize(com.sas.collection.hlist.HListInterface initList, int parentId, int descListId)
initList
- a list of node properties.parentId
- the object id of the parent nodedescListId
- the list id of the original list
used to create the node. The new node should
replace this obsolete list on the parent
with the new initList and new node object id.java.lang.String _getNodeExpandedText()
NodeInterface.getNodeExpandedText()
void _setNodeExpandedText(java.lang.String text)
text
- the expanded textjava.lang.String _getNodeText()
NodeInterface.getNodeExpandedText()
void _setNodeText(java.lang.String text)
text
- the unexpanded textjava.lang.String _getNodeType()
NodeInterface.getNodeType()
void _setNodeType(java.lang.String type)
type
- this node typeNodeInterface.getNodeType()
int _getDefaultIcon()
NodeIconInterface.getDefaultIcon()
void _setDefaultIcon(int icon)
icon
- this node typeint _getExpandedIcon()
NodeIconInterface.getDefaultIcon()
void _setExpandedIcon(int icon)
icon
- this node typeNodeIconInterface.getExpandedIcon()
int _getSelectedIcon()
NodeIconInterface.getDefaultIcon()
void _setSelectedIcon(int icon)
icon
- this node typeNodeIconInterface.getSelectedIcon()
int _getExpandedSelectedIcon()
NodeIconInterface.getExpandedSelectedIcon()
void _setExpandedSelectedIcon(int icon)
icon
- this node typeboolean _isLeafNode()
SimpleNodeInterface.isLeafNode()
int _countNodeChildren(int max)
SimpleNodeInterface.countNodeChildren(int)
int _getNodeChildCount()
_countNodeChildren(int)
void _removeNodeChild(int index)
the
- index of the child node to remove.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |