|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LevelTreeInterface
LevelTreeInterface defines an interface that is used to talk to the SAS server to create a LevelTree which can be used to display a SAS level dataset.
The data set must be the structure known as the level data set
structure.
An example of how to create a level data set in SAS can be found here.
Example on using the LeveTreeInterface in jsp:
<html> <body> <% com.sas.rmi.Connection connection = new com.sas.rmi.Connection(); connection.setHost("localhost"); com.sas.rmi.Rocf rocf = new com.sas.rmi.Rocf(); com.sas.sasserver.tree.LevelTreeInterface treeModel = (com.sas.sasserver.tree.LevelTreeInterface) com.sas.servlet.util.Util.newInstance(rocf, connection, com.sas.sasserver.tree.LevelTreeInterface.class); treeModel.setDataSet("sasuser.orgtest"); treeModel.setTextColumnName("Name"); treeModel.setLevelColumnName("Level"); treeModel.setIndexColumnName("Index"); //Use TreeView to display com.sas.servlet.beans.html.TreeView tc = new com.sas.servlet.beans.html.TreeView(); tc.setUseTextAsLink(true); tc.setModelInterface(treeModel); tc.setImagesLocation("images/"); tc.write(out); rocf.stop(); %> </body> </html>
TreeView
,
Rocf
Field Summary | |
---|---|
static java.lang.String |
contextClasspath
|
Method Summary | |
---|---|
void |
close()
Closes the data set if it is open and set the data set to blank |
java.lang.String |
getDataSet()
Returns the name of the level SAS data set. |
java.lang.String |
getDefaultImage()
Returns name Image image to be displayed for all unexpanded nodes. |
java.lang.String |
getDefaultImageColumnName()
Returns name of the column in the level data set that contains the name of the image to be displayed for unexpanded nodes. |
java.lang.String |
getExpandedImage()
Returns name of the image to be displayed for expanded nodes. |
java.lang.String |
getExpandedImageColumnName()
Returns name of the column in the level data set that contains the name of the image to be displayed for expanded nodes. |
java.lang.String[] |
getNameValuePairColumns()
Returns the names of the columns in the level data set that contain values to be used as name value pairs when creating the complete link that is associated with the node in the JavaScript tree. |
java.lang.String |
getURL()
Returns the link associated with all nodes in the tree. |
java.lang.String |
getURLColumnName()
Returns the name of the column in the level data set that contains the link to be associated with the node in the JavaScript tree. |
java.lang.String |
getWhere()
Returns the current where clause applied to the SAS data set. |
void |
setDataSet(java.lang.String ds)
Sets the name of the level SAS data set. |
void |
setDefaultImage(java.lang.String Image)
Sets the name of the image to be displayed for all unexpanded nodes. |
void |
setDefaultImageColumnName(java.lang.String Image)
Sets the name of the column in the level data set that contains the name of the image to be displayed for unexpanded nodes. |
void |
setExpandedImage(java.lang.String Image)
Sets the name of the image to be displayed expanded nodes. |
void |
setExpandedImageColumnName(java.lang.String Image)
Sets the name of the column in the level data set that contains the name of the image to be displayed expanded nodes. |
void |
setNameValuePairColumns(java.lang.String[] cols)
Sets the names of the columns in the level data set that contain values to be used as name value pairs when creating the complete link that is associated with the node in the JavaScript tree. |
void |
setURL(java.lang.String lnk)
Sets the link associated with all nodes in the tree. |
void |
setURLColumnName(java.lang.String col)
Sets the name of the column in the level data set that contains the link to be associated with the node in the JavaScript tree. |
void |
setWhere(java.lang.String wc)
Sets a where clause on the current SAS Data set. |
void |
validate()
Validates the model to make sure all required, properties are set as well as ckecks the validity of current properties. |
Methods inherited from interface com.sas.sasserver.tree.RemoteLevelTreeInterface |
---|
_getDataSet, _getDefaultIcon, _getDefaultIconColumn, _getExpandedIcon, _getExpandedIconColumn, _getIndexColumn, _getLevelColumn, _getLink, _getLinkColumn, _getNameValuePairColumns, _getTextColumn, _getTreeNodes, _getWhere, _isValid, _setDataSet, _setDefaultIcon, _setDefaultIconColumn, _setExpandedIcon, _setExpandedIconColumn, _setIndexColumn, _setLevelColumn, _setLink, _setLinkColumn, _setNameValuePairColumns, _setTextColumn, _setWhere, _validate |
Methods inherited from interface com.sas.sasserver.RemoteSASListInterface |
---|
_getMembers |
Methods inherited from interface com.sas.sasserver.tree.LevelDataInterface |
---|
getIndexColumnName, getLevelColumnName, getTextColumnName, setIndexColumnName, setLevelColumnName, setTextColumnName |
Field Detail |
---|
static final java.lang.String contextClasspath
Method Detail |
---|
java.lang.String getDataSet()
setDataSet(java.lang.String)
void setDataSet(java.lang.String ds)
ds
- - SAS data set namejava.lang.String getWhere()
void setWhere(java.lang.String wc)
wc
- - where clause to be appliedjava.lang.String getDefaultImageColumnName()
void setDefaultImageColumnName(java.lang.String Image)
Image
- - name of column that contains image URL for defaultImage.java.lang.String getDefaultImage()
void setDefaultImage(java.lang.String Image)
Image
- - URL for defaultImage.java.lang.String getExpandedImageColumnName()
void setExpandedImageColumnName(java.lang.String Image)
Image
- - name of column that contains image URL for the expandedImage.java.lang.String getExpandedImage()
void setExpandedImage(java.lang.String Image)
Image
- - image URL for the expandedImage.java.lang.String getURLColumnName()
void setURLColumnName(java.lang.String col)
col
- - name of column that contains the link valuesjava.lang.String getURL()
void setURL(java.lang.String lnk)
lnk
- - the value of the linkjava.lang.String[] getNameValuePairColumns()
void setNameValuePairColumns(java.lang.String[] cols)
cols
- - an array of column names to be used as name value pairs on the linkvoid close()
close
in interface RemoteLevelTreeInterface
close()
void validate() throws com.sas.table.TableException
Thrown
- if the validation of the model fails
com.sas.table.TableException
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |