|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.servlet.tbeans.models.JDBCToTreeViewModelAdapter.LevelTreeNode
public class JDBCToTreeViewModelAdapter.LevelTreeNode
| Field Summary | |
|---|---|
protected java.lang.String |
expandedNodeText
nodeExpandedText property. |
protected boolean |
externalUpdateSupported
externalUpdateSupported property. |
protected java.lang.String |
nodeText
nodeText property. |
protected java.lang.String |
nodeType
nodeType property. |
protected java.lang.Object |
objectData
objectData property. |
static java.lang.String |
RB_KEY
|
| Fields inherited from class com.sas.swing.models.IndexedMutableTreeNode |
|---|
childrenRead, index, nextRelativeIndex |
| Fields inherited from interface com.sas.servlet.tbeans.html.TreeViewStyleKeysInterface |
|---|
TREEVIEW_BACKGROUND_IMAGE, TREEVIEW_BACKGROUND_IMAGE1, TREEVIEW_CURSOR_HAND, TREEVIEW_DESCRIPTION, TREEVIEW_DISABLED, TREEVIEW_DIV_IMAGE_SPACE, TREEVIEW_FLOAT, TREEVIEW_IMAGE, TREEVIEW_IMAGE_SPACE, TREEVIEW_LINK, TREEVIEW_LINKACTIVE, TREEVIEW_PANE, TREEVIEW_SELECTED, TREEVIEW_TABLE, TREEVIEW_TEXT |
| Constructor Summary | |
|---|---|
LevelTreeNode()
|
|
LevelTreeNode(java.lang.String text)
Constructor of LevelTreeNode |
|
LevelTreeNode(java.lang.String name,
java.lang.String text)
Constructor of LevelTreeNode |
|
LevelTreeNode(java.lang.String name,
java.lang.String text,
java.lang.String url)
Constructor of LevelTreeNode |
|
LevelTreeNode(java.lang.String name,
java.lang.String text,
java.lang.String url,
java.lang.String defaultImage,
java.lang.String expandedImage)
Constructor of LevelTreeNode |
|
| Method Summary | |
|---|---|
void |
addItems(java.util.Enumeration items)
Appends the enumeration of SimpleNodeInterface objects to the children of the current node. |
java.lang.String |
getAccessKey()
getAccessKey returns the accesskey for URL accessability. |
java.lang.String |
getDefaultImage()
Returns the name of the default image. |
java.lang.String |
getDefaultImageAltText()
getDefaultImageAltText reutrns the text which is to be used as alternate to an image. |
java.lang.String |
getDescription()
Returns the description of this node. |
java.lang.String |
getDeselectNodeFunctionName()
Gets the name of a javascript function which will be called when a node is deselected. |
java.lang.String |
getDisabledImage()
Returns the name of the image to be displayed when the node is disabled. |
java.lang.String |
getDisabledImageAltText()
getDisabledImageAltText returns the text which is to be used as alternate to an image. |
java.lang.String |
getExpandedImage()
Returns the name of the expanded image. |
java.lang.String |
getExpandedImageAltText()
getExpandedImageAltText returns the alternate text to the expanded image. |
java.lang.String |
getImageLocation()
If present this property overrides the imageLocation property of the TreeView. |
int |
getIndex(javax.swing.tree.MutableTreeNode item,
int startIndex)
Returns the 0-based index associated with the NodeInterface object in the children collection (searches forward) |
java.lang.String |
getName()
Returns the name of the LevelTreeNode object |
java.lang.String |
getNodeCellStyleClass()
getNodeStyleClass |
java.lang.String |
getNodeCellStyleKey()
getNodeStyleKey returns the key to be associated with style values in some viewers. |
java.lang.String |
getNodeExpandedText()
getNodeExpandedText returns the URL used for the node. |
java.lang.String |
getNodeText()
Returns the node Text associated with the node. |
java.lang.String |
getNodeType()
Returns the type of the current node. |
java.lang.String[] |
getNodeTypes()
Returns the complete set of types for a node. |
java.lang.Object |
getObjectData()
Returns user-supplied data for the current node. |
java.lang.String |
getPostSelectNodeFunctionName()
Gets the name of a user-supplied javascript function which will be called when a node is selected after default behavior executes. |
java.lang.String |
getPreSelectNodeFunctionName()
Gets the name of a user-supplied javascript function which will be called when a node is selected prior to default behavior executing. |
java.lang.String |
getRendererFunctionName()
Gets the name of a javascript function which renders a node. |
java.lang.String |
getRootNodeName()
Returns then name of the Root Node |
java.lang.String |
getSelectNodeFunctionName()
Gets the name of a javascript function which will be called when a node is selected. |
TreeNodeInterface |
getSourceParent()
Return the source parent of the node, which is the parent in a source tree where it originally came from if it was moved. |
java.lang.String |
getStyleClassPrefix()
If present this property overrides the styleClassPrefix property of the TreeView. |
java.util.Map |
getStyleMap()
Returns a Map that contains all the Style information for a component |
int |
getTabIndex()
getTabIndex returns the tab order value of the node. |
java.lang.String |
getTarget()
Returns the value of the target= argument used on the anchor tags generated. |
java.lang.String |
getText()
Returns the text displayed for the node |
java.lang.String |
getTitle()
getTitle returns the title to the URL link. |
java.lang.String |
getURL()
Returns the url associated with the node |
boolean |
isEnabled()
Get the enabled state of the node, which determines the icon and style used for the node. |
boolean |
isExpanded()
Returns the expandedState boolean value which is determines if a node is initially set expanded when rendered. |
boolean |
isExternalUpdateSupported()
|
boolean |
isLastNode()
Returns the boolean value lastNode which determines if a node is the last node in a set of children. |
boolean |
isLeaf()
Returns true if this node has no children. |
void |
setAccessKey(java.lang.String accessKey)
setAccessKey sets the accesskey if a URL link is being used. |
void |
setDefaultImage(java.lang.String image)
Sets the name of the default image. |
void |
setDefaultImageAltText(java.lang.String defaultImageAltText)
setDefaultImageAltText sets the text used to describe an image in the viewer. |
void |
setDescription(java.lang.String desc)
Sets the description associated with this node. |
void |
setDeselectNodeFunctionName(java.lang.String deselect)
Sets the name of a javascript function which will be called when a node is deselected. |
void |
setDisabledImage(java.lang.String image)
Sets the name of the image to be displayed when the node is disabled. |
void |
setDisabledImageAltText(java.lang.String disabledImageAltText)
setDisabledImageAltText sets the alternate text to the disabled image in the viewer. |
void |
setEnabled(boolean enabled)
Set the enabled state of the node, which will change the icon and style used for a disabled node. |
void |
setExpanded(boolean state)
sets the expandedState of the node |
void |
setExpandedImage(java.lang.String image)
Sets the name of the expanded image. |
void |
setExpandedImageAltText(java.lang.String expandedImageAltText)
setExpandedImageAltText sets the alternate text to the expanded image in the viewer. |
void |
setExternalUpdateSupported(boolean newValue)
Sets the value of the externalUpdateSupported property. |
void |
setImageLocation(java.lang.String imageLocation)
If present this property overrides the imageLocation property of the TreeView. |
void |
setIndex(int index)
|
void |
setLastNode(boolean lastNode)
Sets the boolean value lastNode to determine if a node is the last node of a set of children. |
void |
setName(java.lang.String name)
Sets the name of the tree node. |
void |
setNodeCellStyleClass(java.lang.String styleClass)
setNodeStyle sets the style Class on the node. |
void |
setNodeCellStyleKey(java.lang.String styleKey)
setNodeStyleKey sets the key for the node which can be used to associate the node with styles in some viewers. |
void |
setNodeExpandedText(java.lang.String newValue)
Sets the expanded text of the current node. |
void |
setNodeText(java.lang.String newValue)
Sets the text of the current node. |
void |
setNodeType(java.lang.String newValue)
Sets the type of the current node. |
void |
setObjectData(java.lang.Object newValue)
Sets the object data for the current node. |
void |
setPostSelectNodeFunctionName(java.lang.String postselect)
Sets the name of a user-supplied javascript function which will be called when a node is selected after default behavior executes. |
void |
setPreSelectNodeFunctionName(java.lang.String preselect)
Sets the name of a javascript function which will be called when a node is selected prior to default behavior executing. |
void |
setRendererFunctionName(java.lang.String renderer)
Sets the name of a javascript function which renders a node. |
void |
setSelectNodeFunctionName(java.lang.String select)
Sets the name of a javascript function which will be called when a node is selected. |
void |
setSourceParent(TreeNodeInterface sourceParent)
Set the source parent of the node, which is the parent in a source tree where it originally came from if it was moved. |
void |
setStyleClassPrefix(java.lang.String styleClassPrefix)
If present this property overrides the styleClassPrefix property of the TreeView. |
void |
setTabIndex(int tabIndex)
setTabIndex sets the tabbing order for access in viewer. |
void |
setTarget(java.lang.String target)
Sets the value of the target= argument used on the anchor tags generated. |
void |
setText(java.lang.String text)
Sets the text displayed for the node. |
void |
setTitle(java.lang.String title)
setTitle sets the title to the URL link in the viewer. |
void |
setURL(java.lang.String url)
Sets the url associated with the node |
java.lang.String |
toString()
Returns the value of the nodeText property. |
| Methods inherited from class com.sas.swing.models.IndexedMutableTreeNode |
|---|
getIndex, getNextRelativeIndex, isChildrenRead, setChildrenRead, setNextRelativeIndex |
| Field Detail |
|---|
public static final java.lang.String RB_KEY
protected java.lang.String expandedNodeText
protected boolean externalUpdateSupported
protected java.lang.String nodeText
protected java.lang.String nodeType
protected java.lang.Object objectData
| Constructor Detail |
|---|
public LevelTreeNode()
public LevelTreeNode(java.lang.String name,
java.lang.String text,
java.lang.String url,
java.lang.String defaultImage,
java.lang.String expandedImage)
name - the name of the LevelTreeNode object that is createdtext - the text to display in treeurl - the url to associate with the nodedefaultImage - the image to display when folder is closedexpandedImage - the image to display when folder is open
public LevelTreeNode(java.lang.String name,
java.lang.String text,
java.lang.String url)
name - the name of the LevelTreeNode object that is createdtext - the text to display in treeurl - the url to associate with the node
public LevelTreeNode(java.lang.String name,
java.lang.String text)
name - the name of the LevelTreeNode object that is createdtext - the text to displayed in treepublic LevelTreeNode(java.lang.String text)
name - the name of the LevelTreeNode object that is createdtext - the text to displayed in tree| Method Detail |
|---|
public void setIndex(int index)
public java.lang.String getName()
getName in interface TreeNodeInterfacepublic void setName(java.lang.String name)
setName in interface TreeNodeInterfacename - the name of the LevelTreeNodepublic void setExpanded(boolean state)
setExpanded in interface TreeNodeInterfacestate - the expanded state of the nodepublic boolean isExpanded()
isExpanded in interface TreeNodeInterfacepublic java.lang.String getText()
getText in interface TreeNodeInterfacepublic java.lang.String getNodeText()
getNodeText in interface NodeInterfacepublic void setText(java.lang.String text)
setText in interface TreeNodeInterfacetext - the text displayed on the nodepublic java.lang.String getURL()
getURL in interface TreeNodeInterfaceTreeNodeInterface.setURL(String),
BaseTreeView.setUsingURLLinks(boolean)public java.lang.String getNodeExpandedText()
getNodeExpandedText in interface NodeInterfacepublic void setURL(java.lang.String url)
setURL in interface TreeNodeInterfaceurl - the url link associated with the nodeTreeNodeInterface.getURL(),
BaseTreeView.setUsingURLLinks(boolean)public java.lang.String getDefaultImage()
getDefaultImage in interface TreeNodeInterfacepublic void setDefaultImage(java.lang.String image)
setDefaultImage in interface TreeNodeInterfaceimage - - the name of the default image.public java.lang.String getExpandedImage()
getExpandedImage in interface TreeNodeInterfacepublic void setExpandedImage(java.lang.String image)
setExpandedImage in interface TreeNodeInterfaceimage - - the name of the expanded image.public java.lang.String getRootNodeName()
public void setLastNode(boolean lastNode)
setLastNode in interface TreeNodeInterfacelastNode - boolean value lastNode, true if node is the lastNode, false otherwise.public boolean isLastNode()
isLastNode in interface TreeNodeInterfacepublic void setNodeCellStyleClass(java.lang.String styleClass)
public java.lang.String getNodeCellStyleClass()
getNodeCellStyleClass in interface StaticNodeCellStyleInterfacepublic void setNodeCellStyleKey(java.lang.String styleKey)
public java.lang.String getNodeCellStyleKey()
getNodeCellStyleKey in interface StaticNodeCellStyleKeyInterfacepublic void setAccessKey(java.lang.String accessKey)
setAccessKey in interface TreeNodeInterfaceaccessKey - key entry used as access key for link.public java.lang.String getAccessKey()
getAccessKey in interface TreeNodeInterfacepublic void setTabIndex(int tabIndex)
TreeView.
setTabIndex in interface TreeNodeInterfacetabIndex - the numeric order in which the tab key is used.public int getTabIndex()
getTabIndex in interface TreeNodeInterfacepublic void setDefaultImageAltText(java.lang.String defaultImageAltText)
setDefaultImageAltText in interface TreeNodeInterfacedefaulImageAltText - alternate text for the image displayed in the viewer.public java.lang.String getDefaultImageAltText()
getDefaultImageAltText in interface TreeNodeInterfacepublic void setExpandedImageAltText(java.lang.String expandedImageAltText)
setExpandedImageAltText in interface TreeNodeInterfaceexpandedImageAltText - public java.lang.String getExpandedImageAltText()
getExpandedImageAltText in interface TreeNodeInterfacepublic void setTitle(java.lang.String title)
setTitle in interface TreeNodeInterfacetitle - descriptive title of the URL link.public java.lang.String getTitle()
getTitle in interface TreeNodeInterfacepublic void setDescription(java.lang.String desc)
setDescription in interface TreeNodeInterfacedesc - The description of the nodepublic java.lang.String getDescription()
getDescription in interface TreeNodeInterfacepublic java.lang.String getTarget()
getTarget in interface TreeNodeInterfacepublic void setTarget(java.lang.String target)
setTarget in interface TreeNodeInterfacepublic void setSourceParent(TreeNodeInterface sourceParent)
setSourceParent in interface TreeNodeInterfacepublic TreeNodeInterface getSourceParent()
getSourceParent in interface TreeNodeInterfacepublic void setEnabled(boolean enabled)
setEnabled in interface TreeNodeInterfacepublic boolean isEnabled()
isEnabled in interface TreeNodeInterfacepublic java.lang.String getDisabledImage()
getDisabledImage in interface TreeNodeInterfaceImage - the URL for defaultImage.public void setDisabledImage(java.lang.String image)
setDisabledImage in interface TreeNodeInterfaceImage - the URL for defaultImage.public java.lang.String getDisabledImageAltText()
getDisabledImageAltText in interface TreeNodeInterfacepublic void setDisabledImageAltText(java.lang.String disabledImageAltText)
setDisabledImageAltText in interface TreeNodeInterfacedisabledImageAltText - public java.lang.String getRendererFunctionName()
getRendererFunctionName in interface TreeNodeInterfaceTreeNodeInterface.setRendererFunctionName(String),
BaseTreeView.getNodeRendererFunctionName()public void setRendererFunctionName(java.lang.String renderer)
setRendererFunctionName in interface TreeNodeInterfaceBaseTreeView.setNodeRendererFunctionName(String)public java.lang.String getSelectNodeFunctionName()
getSelectNodeFunctionName in interface TreeNodeInterfaceTreeNodeInterface.setSelectNodeFunctionName(String),
BaseTreeView.getSelectNodeFunctionName()public void setSelectNodeFunctionName(java.lang.String select)
setSelectNodeFunctionName in interface TreeNodeInterfaceTreeNodeInterface.getSelectNodeFunctionName(),
BaseTreeView.setSelectNodeFunctionName(String)public java.lang.String getDeselectNodeFunctionName()
getDeselectNodeFunctionName in interface TreeNodeInterfaceTreeNodeInterface.setDeselectNodeFunctionName(String),
BaseTreeView.getDeselectNodeFunctionName()public void setDeselectNodeFunctionName(java.lang.String deselect)
setDeselectNodeFunctionName in interface TreeNodeInterfaceBaseTreeView.setDeselectNodeFunctionName(String)public java.lang.String getPreSelectNodeFunctionName()
getPreSelectNodeFunctionName in interface TreeNodeInterfaceTreeNodeInterface.setPreSelectNodeFunctionName(String)public void setPreSelectNodeFunctionName(java.lang.String preselect)
setPreSelectNodeFunctionName in interface TreeNodeInterfaceTreeNodeInterface.getPreSelectNodeFunctionName()public java.lang.String getPostSelectNodeFunctionName()
getPostSelectNodeFunctionName in interface TreeNodeInterfaceTreeNodeInterface.setPreSelectNodeFunctionName(String)public void setPostSelectNodeFunctionName(java.lang.String postselect)
setPostSelectNodeFunctionName in interface TreeNodeInterfaceTreeNodeInterface.getPreSelectNodeFunctionName()public java.lang.String getImageLocation()
getImageLocation in interface TreeNodeInterfaceBaseTreeView.getImageLocation()public void setImageLocation(java.lang.String imageLocation)
setImageLocation in interface TreeNodeInterfaceBaseTreeView.setImageLocation(String)public java.lang.String getStyleClassPrefix()
getStyleClassPrefix in interface TreeNodeInterfaceBaseTreeView.getStyleClassPrefix()public void setStyleClassPrefix(java.lang.String styleClassPrefix)
setStyleClassPrefix in interface TreeNodeInterfaceBaseTreeView.getStyleClassPrefix()public java.util.Map getStyleMap()
getStyleMap in interface ComplexStyleInterfacepublic java.lang.String getNodeType()
getNodeType in interface NodeInterfacesetNodeType(java.lang.String)public boolean isExternalUpdateSupported()
setExternalUpdateSupported(boolean)public java.lang.String[] getNodeTypes()
null, or a string array of all the possible node types.public void addItems(java.util.Enumeration items)
items - the SimpleNodeInterface objects to add as children
public int getIndex(javax.swing.tree.MutableTreeNode item,
int startIndex)
item - NodeInterface to search forstartIndex - the position where the search should start
java.lang.IndexOutOfBoundsException - if the start index
is invalidpublic java.lang.Object getObjectData()
setObjectData(java.lang.Object)public void setExternalUpdateSupported(boolean newValue)
newValue - true to allow external updates, false otherwiseisExternalUpdateSupported()public void setNodeExpandedText(java.lang.String newValue)
newValue - the new value for the nodeExpandedText propertygetNodeExpandedText()public void setNodeType(java.lang.String newValue)
newValue - the new value for the nodeType propertygetNodeType()public void setNodeText(java.lang.String newValue)
newValue - the new value for the nodeText propertygetNodeText()public void setObjectData(java.lang.Object newValue)
newValue - the new value for the objectData propertygetObjectData()public java.lang.String toString()
toString in class javax.swing.tree.DefaultMutableTreeNodepublic boolean isLeaf()
getAllowsChildren
isLeaf in interface javax.swing.tree.TreeNodeisLeaf in class javax.swing.tree.DefaultMutableTreeNode
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||