|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.dataselectors.dataitems.DataItemTreeNodeInfo
public class DataItemTreeNodeInfo
The DataItemTreeNodeInfo is a user object for tree nodes used by the DataItem selectors. It is used to hold additional information about the tree nodes that pertain to the selector user interface.
Field Summary | |
---|---|
protected java.lang.String |
category
Used to display the nodes grouped by a category value |
protected java.lang.String |
defaultImage
The default image to display with the node |
protected java.lang.String |
disabledImage
The image to display with the node when the node is disabled |
protected boolean |
enabled
Indicates that the node should be enabled for user selection |
protected boolean |
expanded
Indicates that the node should be expanded to display all of its leaf nodes |
protected java.lang.String |
imagePath
The path prefix to use for the defaultImage and disabledImage properties. |
protected java.lang.String |
itemDescription
A long description of the DataItem represented by the tree node |
protected java.lang.String |
itemId
The id of the DataItem represented by the tree node |
protected java.lang.String |
itemText
The label of the DataItem represented by the tree node |
protected java.lang.String |
itemURL
The url to navigate to when the node is clicked on |
protected java.lang.String |
nodeFunction
A javascript function name to execute when the node is clicked on |
Constructor Summary | |
---|---|
DataItemTreeNodeInfo(java.lang.String id,
java.lang.String text,
java.lang.String url)
|
|
DataItemTreeNodeInfo(java.lang.String id,
java.lang.String text,
java.lang.String url,
boolean enabled,
boolean expanded)
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object nodeinfo)
Compares 2 DataItemTreeNodeInfo objects. |
java.lang.String |
getCategory()
Returns the category value that is used to group the node |
java.lang.String |
getDefaultImage()
Returns the default image to display with the node |
java.lang.String |
getDisabledImage()
Returns the image to display with the node when the node is disabled |
boolean |
getEnabled()
Returns the enabled status of the node |
boolean |
getExpanded()
Returns the expanded status of the node |
java.lang.String |
getImagePath()
Returns the path to use for the default and disabled images |
java.lang.String |
getItemDescription()
Returns the item long description |
java.lang.String |
getItemId()
Returns the item id |
java.lang.String |
getItemText()
Returns the item label |
java.lang.String |
getItemURL()
Returns the url to navigate to when the node is clicked on |
java.lang.String |
getNodeFunction()
Returns the javascript function to execute when the node is clicked on |
void |
setCategory(java.lang.String value)
Sets the category value that is used to group the node |
void |
setDefaultImage(java.lang.String image)
Sets the default image to display with the node |
void |
setDisabledImage(java.lang.String image)
Sets the image to display with the node when the node is disabled |
void |
setEnabled(boolean value)
Sets the enabled status of the node |
void |
setExpanded(boolean value)
Sets the expanded status of the node |
void |
setImagePath(java.lang.String path)
Sets the path to use for the default and disabled images |
void |
setItemDescription(java.lang.String description)
Sets the item long description |
void |
setItemId(java.lang.String id)
Sets the unique id of the item |
void |
setItemText(java.lang.String text)
Sets the item label |
void |
setItemURL(java.lang.String url)
Sets the url to navigate to when the node is clicked on |
void |
setNodeFunction(java.lang.String functionName)
Sets the javascript function to execute when the node is clicked on |
java.lang.String |
toString()
Returns the text of the node |
Field Detail |
---|
protected java.lang.String itemId
protected java.lang.String itemText
protected java.lang.String itemURL
protected java.lang.String itemDescription
protected java.lang.String nodeFunction
protected java.lang.String defaultImage
protected java.lang.String disabledImage
protected java.lang.String imagePath
protected java.lang.String category
protected boolean enabled
protected boolean expanded
Constructor Detail |
---|
public DataItemTreeNodeInfo(java.lang.String id, java.lang.String text, java.lang.String url)
public DataItemTreeNodeInfo(java.lang.String id, java.lang.String text, java.lang.String url, boolean enabled, boolean expanded)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void setItemId(java.lang.String id)
id
- - the item idpublic java.lang.String getItemId()
public void setItemText(java.lang.String text)
text
- - the item labelpublic java.lang.String getItemText()
public void setItemDescription(java.lang.String description)
description
- - the item descriptionpublic java.lang.String getItemDescription()
public void setItemURL(java.lang.String url)
url
- - the url to navigate topublic java.lang.String getItemURL()
public void setNodeFunction(java.lang.String functionName)
functionName
- - the javascript function namepublic java.lang.String getNodeFunction()
public void setDefaultImage(java.lang.String image)
image
- - the name of the imagepublic java.lang.String getDefaultImage()
public void setDisabledImage(java.lang.String image)
image
- - the disabled image namepublic java.lang.String getDisabledImage()
public void setImagePath(java.lang.String path)
path
- - the name of the pathpublic java.lang.String getImagePath()
public void setCategory(java.lang.String value)
value
- - the category valuepublic java.lang.String getCategory()
public void setEnabled(boolean value)
value
- - true if enabled, otherwise falsepublic boolean getEnabled()
public void setExpanded(boolean value)
value
- - true if the node is expanded, otherwise falsepublic boolean getExpanded()
public int compareTo(java.lang.Object nodeinfo)
compareTo
in interface java.lang.Comparable
nodeinfo
- - the object to compare toSASStringComparator
,
SASCollatorFactory.createCollator()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |