com.sas.servlet.tbeans.models
Class JDBCToTreeViewModelAdapter

com.sas.servlet.tbeans.models.JDBCToTreeViewModelAdapter
All Implemented Interfaces:
LevelDataInterface, TreeViewStyleKeysInterface, com.sas.table.StaticColumnInfoInterface, com.sas.util.transforms.DisplayTransformInterface, com.sas.util.transforms.TransformInterface, java.io.Serializable, javax.swing.tree.TreeModel

public class JDBCToTreeViewModelAdapter
implements com.sas.util.transforms.TransformInterface, TreeViewStyleKeysInterface

The JDBCToTreeViewModelAdapter is a JDBCToTreeModelAdapter which is specialized for the TreeView. Data is read from a database table and each row represents a node. Columns may be configured to correspond to the properties of the TreeNode and determine the hierarchy of the nodes.

See Also:
TreeView, JDBCToTreeModelAdapter, TreeNode, Serialized Form

Nested Class Summary
 class JDBCToTreeViewModelAdapter.LevelTreeNode
           
 
Field Summary
 
Fields inherited from class com.sas.storage.jdbc.JDBCToTreeModelAdapter
indexColumnName, inInit, initialLevelsRead, levelColumnName, listenerList, nodeTransform, RB_KEY, treeModel, whereClause
 
Fields inherited from class com.sas.storage.jdbc.JDBCColumnValuesAdapter
columnValuesTransform, retrieveAllColumnValues
 
Fields inherited from class com.sas.storage.jdbc.JDBCAdapter
autoCommit, CLASS_NAME, columnInfoUsed, conn, designTime, displayTransform, forwardOnly, initialized, isRowCountKnown, LABEL, meta, NAME, printWarnings, queryRowCountDisabled, queryStatement, readOnly, result, resultSetRequeryUsed, resultSetType, resultSetUsed, retrieveNumericTypesAsDouble, rowCount, rowCountQueryString, rowNumber, spcs, stmt, trimUsed
 
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()
           
 
Method Summary
protected  JDBCToTreeViewModelAdapter.LevelTreeNode createNode(java.lang.String name, java.lang.String text)
           
 java.lang.String getAccessKeyColumnName()
          Returns the accessKeyColumnName.
 java.lang.String getDefaultImageAltTextColumnName()
          Returns the defaultImageAltTextColumnName.
 java.lang.String getDefaultImageColumnName()
          Returns the defaultImageColumnName.
 java.lang.String getDescriptionColumnName()
          Returns the descriptionColumnName.
 java.lang.String getDescriptionStyleClassColumnName()
          Returns the descriptionStyleClassColumnName.
 java.lang.String getDisabledImageAltTextColumnName()
          Returns the disabledImageAltTextColumnName.
 java.lang.String getDisabledImageColumnName()
          Returns the disabledImageColumnName.
 java.lang.String getDisabledStyleClassColumnName()
          Returns the disabledStyleClassColumnName.
 java.lang.String getEnabledColumnName()
          Returns the enabledColumnName.
 java.lang.String getExpandedColumnName()
          Returns the expandedColumnName.
 java.lang.String getExpandedImageAltTextColumnName()
          Returns the expandedImageAltTextColumnName.
 java.lang.String getExpandedImageColumnName()
          Returns the expandedImageColumnName.
 java.lang.String getImageLocationColumnName()
          Returns the imageLocationColumnName.
 java.lang.String getImageStyleClassColumnName()
          Returns the imageStyleClassColumnName.
 java.lang.String getLinkActiveStyleClassColumnName()
          Returns the linkActiveStyleClassColumnName.
 java.lang.String getLinkStyleClassColumnName()
          Returns the linkStyleClassColumnName.
 java.lang.String getNameColumnName()
          Returns the nameColumnName.
 java.lang.String getSelectedStyleClassColumnName()
          Returns the selectedStyleClassColumnName.
 java.lang.String getStyleClassPrefixColumnName()
          Returns the styleClassPrefixColumnName.
 java.lang.String getTabIndexColumnName()
          Returns the tabIndexColumnName.
 java.lang.String getTargetColumnName()
          Returns the targetColumnName.
 java.lang.String getTextColumnName()
          Returns the textColumnName.
 java.lang.String getTextStyleClassColumnName()
          Returns the textStyleClassColumnName.
 java.lang.String getTitleColumnName()
          Returns the titleColumnName.
 java.lang.String getURLColumnName()
          Returns the uRLColumnName.
 void setAccessKeyColumnName(java.lang.String accessKeyColumnName)
          Sets the accessKeyColumnName.
 void setDefaultImageAltTextColumnName(java.lang.String defaultImageAltTextColumnName)
          Sets the defaultImageAltTextColumnName.
 void setDefaultImageColumnName(java.lang.String defaultImageColumnName)
          Sets the defaultImageColumnName.
 void setDescriptionColumnName(java.lang.String descriptionColumnName)
          Sets the descriptionColumnName.
 void setDescriptionStyleClassColumnName(java.lang.String descriptionStyleClassColumnName)
          Sets the descriptionStyleClassColumnName.
 void setDisabledImageAltTextColumnName(java.lang.String disabledImageAltTextColumnName)
          Sets the disabledImageAltTextColumnName.
 void setDisabledImageColumnName(java.lang.String disabledImageColumnName)
          Sets the disabledImageColumnName.
 void setDisabledStyleClassColumnName(java.lang.String disabledStyleClassColumnName)
          Sets the disabledStyleClassColumnName.
 void setEnabledColumnName(java.lang.String enabledColumnName)
          Sets the enabledColumnName.
 void setExpandedColumnName(java.lang.String expandedColumnName)
          Sets the expandedColumnName.
 void setExpandedImageAltTextColumnName(java.lang.String expandedImageAltTextColumnName)
          Sets the expandedImageAltTextColumnName.
 void setExpandedImageColumnName(java.lang.String expandedImageColumnName)
          Sets the expandedImageColumnName.
 void setImageLocationColumnName(java.lang.String imageLocationColumnName)
          Sets the imageLocationColumnName.
 void setImageStyleClassColumnName(java.lang.String imageStyleClassColumnName)
          Sets the imageStyleClassColumnName.
 void setLinkActiveStyleClassColumnName(java.lang.String linkActiveStyleClassColumnName)
          Sets the linkActiveStyleClassColumnName.
 void setLinkStyleClassColumnName(java.lang.String linkStyleClassColumnName)
          Sets the linkStyleClassColumnName.
 void setNameColumnName(java.lang.String nameColumnName)
          Sets the nameColumnName.
 void setSelectedStyleClassColumnName(java.lang.String selectedStyleClassColumnName)
          Sets the selectedStyleClassColumnName.
 void setStyleClassPrefixColumnName(java.lang.String styleClassPrefixColumnName)
          Sets the styleClassPrefixColumnName.
 void setTabIndexColumnName(java.lang.String tabIndexColumnName)
          Sets the tabIndexColumnName.
 void setTargetColumnName(java.lang.String targetColumnName)
          Sets the targetColumnName.
 void setTextColumnName(java.lang.String textColumnName)
          Sets the textColumnName.
 void setTextStyleClassColumnName(java.lang.String textStyleClassColumnName)
          Sets the textStyleClassColumnName.
 void setTitleColumnName(java.lang.String titleColumnName)
          Sets the titleColumnName.
 void setURLColumnName(java.lang.String uRLColumnName)
          Sets the uRLColumnName.
 java.lang.Object transform(java.lang.Object obj)
           
 
Methods inherited from class com.sas.storage.jdbc.JDBCToTreeModelAdapter
addChildren, addTreeModelListener, fireCellEvent, fireModelEvent, fireModelEvent, getChild, getChildCount, getExtendedBeanInfo, getIndexColumnName, getIndexOfChild, getInitialLevelsRead, getLevelColumnName, getNodeTransform, getRoot, init, isLeaf, readChildren, removeTreeModelListener, setIndexColumnName, setInitialLevelsRead, setLevelColumnName, setNodeTransform, valueForPathChanged
 
Methods inherited from class com.sas.storage.jdbc.JDBCColumnValuesAdapter
getColumnValuesMap, getColumnValuesTransform, isRetrieveAllColumnValues, retrieveColumnValueAt, retrieveValueAt, setColumnValuesTransform, setRetrieveAllColumnValues
 
Methods inherited from class com.sas.storage.jdbc.JDBCAdapter
addPropertyChangeListener, addPropertyChangeListener, calculateRowCount, close, doAbsolute, doCountColumns, doUpdateCell, finalize, getAutoCommit, getColumnInfo, getColumnInfoNames, getConnection, getDisplayTransform, getModel, getPrintWarnings, getQueryStatement, getResultSetConcurrency, getResultSetRowCount, getResultSetType, getRowCountByCountFunction, getRowCountQueryString, initializeData, isQueryRowCountDisabled, isReadOnly, isResultSetRequeryUsed, isRetrieveNumericTypesAsDouble, isTrimUsed, printSQLWarning, putColumnInfoUsed, putValueAt, refresh, removePropertyChangeListener, removePropertyChangeListener, retrieveColumnClass, retrieveColumnCount, retrieveColumnIndex, retrieveColumnInfoUsed, retrieveColumnLabel, retrieveRawSASNumericValue, retrieveRawSASNumericValue, retrieveValueAt, setAutoCommit, setConnection, setDisplayTransform, setModel, setPrintWarnings, setQueryRowCountDisabled, setQueryStatement, setReadOnly, setResultSetRequeryUsed, setResultSetType, setRetrieveNumericTypesAsDouble, setRowCountQueryString, setTrimUsed
 

Constructor Detail

JDBCToTreeViewModelAdapter

public JDBCToTreeViewModelAdapter()
Method Detail

transform

public java.lang.Object transform(java.lang.Object obj)
Specified by:
transform in interface com.sas.util.transforms.TransformInterface

createNode

protected JDBCToTreeViewModelAdapter.LevelTreeNode createNode(java.lang.String name,
                                                              java.lang.String text)

getAccessKeyColumnName

public java.lang.String getAccessKeyColumnName()
Returns the accessKeyColumnName.

Returns:
String

getDefaultImageAltTextColumnName

public java.lang.String getDefaultImageAltTextColumnName()
Returns the defaultImageAltTextColumnName.

Returns:
String

getDefaultImageColumnName

public java.lang.String getDefaultImageColumnName()
Returns the defaultImageColumnName.

Returns:
String

getDescriptionColumnName

public java.lang.String getDescriptionColumnName()
Returns the descriptionColumnName.

Returns:
String

getDescriptionStyleClassColumnName

public java.lang.String getDescriptionStyleClassColumnName()
Returns the descriptionStyleClassColumnName.

Returns:
String

getDisabledImageAltTextColumnName

public java.lang.String getDisabledImageAltTextColumnName()
Returns the disabledImageAltTextColumnName.

Returns:
String

getDisabledImageColumnName

public java.lang.String getDisabledImageColumnName()
Returns the disabledImageColumnName.

Returns:
String

getDisabledStyleClassColumnName

public java.lang.String getDisabledStyleClassColumnName()
Returns the disabledStyleClassColumnName.

Returns:
String

getEnabledColumnName

public java.lang.String getEnabledColumnName()
Returns the enabledColumnName.

Returns:
String

getExpandedColumnName

public java.lang.String getExpandedColumnName()
Returns the expandedColumnName.

Returns:
String

getExpandedImageAltTextColumnName

public java.lang.String getExpandedImageAltTextColumnName()
Returns the expandedImageAltTextColumnName.

Returns:
String

getExpandedImageColumnName

public java.lang.String getExpandedImageColumnName()
Returns the expandedImageColumnName.

Returns:
String

getImageLocationColumnName

public java.lang.String getImageLocationColumnName()
Returns the imageLocationColumnName.

Returns:
String

getImageStyleClassColumnName

public java.lang.String getImageStyleClassColumnName()
Returns the imageStyleClassColumnName.

Returns:
String

getLinkActiveStyleClassColumnName

public java.lang.String getLinkActiveStyleClassColumnName()
Returns the linkActiveStyleClassColumnName.

Returns:
String

getLinkStyleClassColumnName

public java.lang.String getLinkStyleClassColumnName()
Returns the linkStyleClassColumnName.

Returns:
String

getNameColumnName

public java.lang.String getNameColumnName()
Returns the nameColumnName.

Returns:
String

getSelectedStyleClassColumnName

public java.lang.String getSelectedStyleClassColumnName()
Returns the selectedStyleClassColumnName.

Returns:
String

getStyleClassPrefixColumnName

public java.lang.String getStyleClassPrefixColumnName()
Returns the styleClassPrefixColumnName.

Returns:
String

getTabIndexColumnName

public java.lang.String getTabIndexColumnName()
Returns the tabIndexColumnName.

Returns:
String

getTargetColumnName

public java.lang.String getTargetColumnName()
Returns the targetColumnName.

Returns:
String

getTextColumnName

public java.lang.String getTextColumnName()
Returns the textColumnName.

Specified by:
getTextColumnName in interface LevelDataInterface
Overrides:
getTextColumnName in class JDBCToTreeModelAdapter
Returns:
String

getTextStyleClassColumnName

public java.lang.String getTextStyleClassColumnName()
Returns the textStyleClassColumnName.

Returns:
String

getTitleColumnName

public java.lang.String getTitleColumnName()
Returns the titleColumnName.

Returns:
String

getURLColumnName

public java.lang.String getURLColumnName()
Returns the uRLColumnName.

Returns:
String

setAccessKeyColumnName

public void setAccessKeyColumnName(java.lang.String accessKeyColumnName)
Sets the accessKeyColumnName.

Parameters:
accessKeyColumnName - The accessKeyColumnName to set

setDefaultImageAltTextColumnName

public void setDefaultImageAltTextColumnName(java.lang.String defaultImageAltTextColumnName)
Sets the defaultImageAltTextColumnName.

Parameters:
defaultImageAltTextColumnName - The defaultImageAltTextColumnName to set

setDefaultImageColumnName

public void setDefaultImageColumnName(java.lang.String defaultImageColumnName)
Sets the defaultImageColumnName.

Parameters:
defaultImageColumnName - The defaultImageColumnName to set

setDescriptionColumnName

public void setDescriptionColumnName(java.lang.String descriptionColumnName)
Sets the descriptionColumnName.

Parameters:
descriptionColumnName - The descriptionColumnName to set

setDescriptionStyleClassColumnName

public void setDescriptionStyleClassColumnName(java.lang.String descriptionStyleClassColumnName)
Sets the descriptionStyleClassColumnName.

Parameters:
descriptionStyleClassColumnName - The descriptionStyleClassColumnName to set

setDisabledImageAltTextColumnName

public void setDisabledImageAltTextColumnName(java.lang.String disabledImageAltTextColumnName)
Sets the disabledImageAltTextColumnName.

Parameters:
disabledImageAltTextColumnName - The disabledImageAltTextColumnName to set

setDisabledImageColumnName

public void setDisabledImageColumnName(java.lang.String disabledImageColumnName)
Sets the disabledImageColumnName.

Parameters:
disabledImageColumnName - The disabledImageColumnName to set

setDisabledStyleClassColumnName

public void setDisabledStyleClassColumnName(java.lang.String disabledStyleClassColumnName)
Sets the disabledStyleClassColumnName.

Parameters:
disabledStyleClassColumnName - The disabledStyleClassColumnName to set

setEnabledColumnName

public void setEnabledColumnName(java.lang.String enabledColumnName)
Sets the enabledColumnName.

Parameters:
enabledColumnName - The enabledColumnName to set

setExpandedColumnName

public void setExpandedColumnName(java.lang.String expandedColumnName)
Sets the expandedColumnName.

Parameters:
expandedColumnName - The expandedColumnName to set

setExpandedImageAltTextColumnName

public void setExpandedImageAltTextColumnName(java.lang.String expandedImageAltTextColumnName)
Sets the expandedImageAltTextColumnName.

Parameters:
expandedImageAltTextColumnName - The expandedImageAltTextColumnName to set

setExpandedImageColumnName

public void setExpandedImageColumnName(java.lang.String expandedImageColumnName)
Sets the expandedImageColumnName.

Parameters:
expandedImageColumnName - The expandedImageColumnName to set

setImageLocationColumnName

public void setImageLocationColumnName(java.lang.String imageLocationColumnName)
Sets the imageLocationColumnName.

Parameters:
imageLocationColumnName - The imageLocationColumnName to set

setImageStyleClassColumnName

public void setImageStyleClassColumnName(java.lang.String imageStyleClassColumnName)
Sets the imageStyleClassColumnName.

Parameters:
imageStyleClassColumnName - The imageStyleClassColumnName to set

setLinkActiveStyleClassColumnName

public void setLinkActiveStyleClassColumnName(java.lang.String linkActiveStyleClassColumnName)
Sets the linkActiveStyleClassColumnName.

Parameters:
linkActiveStyleClassColumnName - The linkActiveStyleClassColumnName to set

setLinkStyleClassColumnName

public void setLinkStyleClassColumnName(java.lang.String linkStyleClassColumnName)
Sets the linkStyleClassColumnName.

Parameters:
linkStyleClassColumnName - The linkStyleClassColumnName to set

setNameColumnName

public void setNameColumnName(java.lang.String nameColumnName)
Sets the nameColumnName.

Parameters:
nameColumnName - The nameColumnName to set

setSelectedStyleClassColumnName

public void setSelectedStyleClassColumnName(java.lang.String selectedStyleClassColumnName)
Sets the selectedStyleClassColumnName.

Parameters:
selectedStyleClassColumnName - The selectedStyleClassColumnName to set

setStyleClassPrefixColumnName

public void setStyleClassPrefixColumnName(java.lang.String styleClassPrefixColumnName)
Sets the styleClassPrefixColumnName.

Parameters:
styleClassPrefixColumnName - The styleClassPrefixColumnName to set

setTabIndexColumnName

public void setTabIndexColumnName(java.lang.String tabIndexColumnName)
Sets the tabIndexColumnName.

Parameters:
tabIndexColumnName - The tabIndexColumnName to set

setTargetColumnName

public void setTargetColumnName(java.lang.String targetColumnName)
Sets the targetColumnName.

Parameters:
targetColumnName - The targetColumnName to set

setTextColumnName

public void setTextColumnName(java.lang.String textColumnName)
Sets the textColumnName.

Specified by:
setTextColumnName in interface LevelDataInterface
Overrides:
setTextColumnName in class JDBCToTreeModelAdapter
Parameters:
textColumnName - The textColumnName to set

setTextStyleClassColumnName

public void setTextStyleClassColumnName(java.lang.String textStyleClassColumnName)
Sets the textStyleClassColumnName.

Parameters:
textStyleClassColumnName - The textStyleClassColumnName to set

setTitleColumnName

public void setTitleColumnName(java.lang.String titleColumnName)
Sets the titleColumnName.

Parameters:
titleColumnName - The titleColumnName to set

setURLColumnName

public void setURLColumnName(java.lang.String uRLColumnName)
Sets the uRLColumnName.

Parameters:
uRLColumnName - The uRLColumnName to set



Copyright © 2009 SAS Institute Inc. All Rights Reserved.