|
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 | |
---|---|
JDBCToTreeViewModelAdapter.LevelTreeNode()
|
|
JDBCToTreeViewModelAdapter.LevelTreeNode(java.lang.String text)
Constructor of LevelTreeNode |
|
JDBCToTreeViewModelAdapter.LevelTreeNode(java.lang.String name,
java.lang.String text)
Constructor of LevelTreeNode |
|
JDBCToTreeViewModelAdapter.LevelTreeNode(java.lang.String name,
java.lang.String text,
java.lang.String url)
Constructor of LevelTreeNode |
|
JDBCToTreeViewModelAdapter.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 JDBCToTreeViewModelAdapter.LevelTreeNode()
public JDBCToTreeViewModelAdapter.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 openpublic JDBCToTreeViewModelAdapter.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 nodepublic JDBCToTreeViewModelAdapter.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 JDBCToTreeViewModelAdapter.LevelTreeNode(java.lang.String text)
name
- the name of the LevelTreeNode object that is createdtext
- the text to displayed in treeMethod Detail |
---|
public void setIndex(int index)
public java.lang.String getName()
getName
in interface TreeNodeInterface
public void setName(java.lang.String name)
setName
in interface TreeNodeInterface
name
- the name of the LevelTreeNodepublic void setExpanded(boolean state)
setExpanded
in interface TreeNodeInterface
state
- the expanded state of the nodepublic boolean isExpanded()
isExpanded
in interface TreeNodeInterface
public java.lang.String getText()
getText
in interface TreeNodeInterface
public java.lang.String getNodeText()
getNodeText
in interface NodeInterface
public void setText(java.lang.String text)
setText
in interface TreeNodeInterface
text
- the text displayed on the nodepublic java.lang.String getURL()
getURL
in interface TreeNodeInterface
TreeNodeInterface.setURL(String)
,
BaseTreeView.setUsingURLLinks(boolean)
public java.lang.String getNodeExpandedText()
getNodeExpandedText
in interface NodeInterface
public void setURL(java.lang.String url)
setURL
in interface TreeNodeInterface
url
- the url link associated with the nodeTreeNodeInterface.getURL()
,
BaseTreeView.setUsingURLLinks(boolean)
public java.lang.String getDefaultImage()
getDefaultImage
in interface TreeNodeInterface
public void setDefaultImage(java.lang.String image)
setDefaultImage
in interface TreeNodeInterface
image
- - the name of the default image.public java.lang.String getExpandedImage()
getExpandedImage
in interface TreeNodeInterface
public void setExpandedImage(java.lang.String image)
setExpandedImage
in interface TreeNodeInterface
image
- - the name of the expanded image.public java.lang.String getRootNodeName()
public void setLastNode(boolean lastNode)
setLastNode
in interface TreeNodeInterface
lastNode
- boolean value lastNode, true if node is the lastNode, false otherwise.public boolean isLastNode()
isLastNode
in interface TreeNodeInterface
public void setNodeCellStyleClass(java.lang.String styleClass)
public java.lang.String getNodeCellStyleClass()
getNodeCellStyleClass
in interface StaticNodeCellStyleInterface
public void setNodeCellStyleKey(java.lang.String styleKey)
public java.lang.String getNodeCellStyleKey()
getNodeCellStyleKey
in interface StaticNodeCellStyleKeyInterface
public void setAccessKey(java.lang.String accessKey)
setAccessKey
in interface TreeNodeInterface
accessKey
- key entry used as access key for link.public java.lang.String getAccessKey()
getAccessKey
in interface TreeNodeInterface
public void setTabIndex(int tabIndex)
TreeView
.
setTabIndex
in interface TreeNodeInterface
tabIndex
- the numeric order in which the tab key is used.public int getTabIndex()
getTabIndex
in interface TreeNodeInterface
public void setDefaultImageAltText(java.lang.String defaultImageAltText)
setDefaultImageAltText
in interface TreeNodeInterface
defaulImageAltText
- alternate text for the image displayed in the viewer.public java.lang.String getDefaultImageAltText()
getDefaultImageAltText
in interface TreeNodeInterface
public void setExpandedImageAltText(java.lang.String expandedImageAltText)
setExpandedImageAltText
in interface TreeNodeInterface
expandedImageAltText
- public java.lang.String getExpandedImageAltText()
getExpandedImageAltText
in interface TreeNodeInterface
public void setTitle(java.lang.String title)
setTitle
in interface TreeNodeInterface
title
- descriptive title of the URL link.public java.lang.String getTitle()
getTitle
in interface TreeNodeInterface
public void setDescription(java.lang.String desc)
setDescription
in interface TreeNodeInterface
desc
- The description of the nodepublic java.lang.String getDescription()
getDescription
in interface TreeNodeInterface
public java.lang.String getTarget()
getTarget
in interface TreeNodeInterface
public void setTarget(java.lang.String target)
setTarget
in interface TreeNodeInterface
public void setSourceParent(TreeNodeInterface sourceParent)
setSourceParent
in interface TreeNodeInterface
public TreeNodeInterface getSourceParent()
getSourceParent
in interface TreeNodeInterface
public void setEnabled(boolean enabled)
setEnabled
in interface TreeNodeInterface
public boolean isEnabled()
isEnabled
in interface TreeNodeInterface
public java.lang.String getDisabledImage()
getDisabledImage
in interface TreeNodeInterface
Image
- the URL for defaultImage.public void setDisabledImage(java.lang.String image)
setDisabledImage
in interface TreeNodeInterface
Image
- the URL for defaultImage.public java.lang.String getDisabledImageAltText()
getDisabledImageAltText
in interface TreeNodeInterface
public void setDisabledImageAltText(java.lang.String disabledImageAltText)
setDisabledImageAltText
in interface TreeNodeInterface
disabledImageAltText
- public java.lang.String getRendererFunctionName()
getRendererFunctionName
in interface TreeNodeInterface
TreeNodeInterface.setRendererFunctionName(String)
,
BaseTreeView.getNodeRendererFunctionName()
public void setRendererFunctionName(java.lang.String renderer)
setRendererFunctionName
in interface TreeNodeInterface
BaseTreeView.setNodeRendererFunctionName(String)
public java.lang.String getSelectNodeFunctionName()
getSelectNodeFunctionName
in interface TreeNodeInterface
TreeNodeInterface.setSelectNodeFunctionName(String)
,
BaseTreeView.getSelectNodeFunctionName()
public void setSelectNodeFunctionName(java.lang.String select)
setSelectNodeFunctionName
in interface TreeNodeInterface
TreeNodeInterface.getSelectNodeFunctionName()
,
BaseTreeView.setSelectNodeFunctionName(String)
public java.lang.String getDeselectNodeFunctionName()
getDeselectNodeFunctionName
in interface TreeNodeInterface
TreeNodeInterface.setDeselectNodeFunctionName(String)
,
BaseTreeView.getDeselectNodeFunctionName()
public void setDeselectNodeFunctionName(java.lang.String deselect)
setDeselectNodeFunctionName
in interface TreeNodeInterface
BaseTreeView.setDeselectNodeFunctionName(String)
public java.lang.String getPreSelectNodeFunctionName()
getPreSelectNodeFunctionName
in interface TreeNodeInterface
TreeNodeInterface.setPreSelectNodeFunctionName(String)
public void setPreSelectNodeFunctionName(java.lang.String preselect)
setPreSelectNodeFunctionName
in interface TreeNodeInterface
TreeNodeInterface.getPreSelectNodeFunctionName()
public java.lang.String getPostSelectNodeFunctionName()
getPostSelectNodeFunctionName
in interface TreeNodeInterface
TreeNodeInterface.setPreSelectNodeFunctionName(String)
public void setPostSelectNodeFunctionName(java.lang.String postselect)
setPostSelectNodeFunctionName
in interface TreeNodeInterface
TreeNodeInterface.getPreSelectNodeFunctionName()
public java.lang.String getImageLocation()
getImageLocation
in interface TreeNodeInterface
BaseTreeView.getImageLocation()
public void setImageLocation(java.lang.String imageLocation)
setImageLocation
in interface TreeNodeInterface
BaseTreeView.setImageLocation(String)
public java.lang.String getStyleClassPrefix()
getStyleClassPrefix
in interface TreeNodeInterface
BaseTreeView.getStyleClassPrefix()
public void setStyleClassPrefix(java.lang.String styleClassPrefix)
setStyleClassPrefix
in interface TreeNodeInterface
BaseTreeView.getStyleClassPrefix()
public java.util.Map getStyleMap()
getStyleMap
in interface ComplexStyleInterface
public java.lang.String getNodeType()
getNodeType
in interface NodeInterface
setNodeType(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 childrenpublic 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.DefaultMutableTreeNode
public boolean isLeaf()
getAllowsChildren
isLeaf
in interface javax.swing.tree.TreeNode
isLeaf
in class javax.swing.tree.DefaultMutableTreeNode
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |