public class TreeTableExplorer extends TreeExplorer implements TablePropertyHolder
| Constructor and Description |
|---|
TreeTableExplorer()
create an TreeTableExplorer with the default view and model.
|
TreeTableExplorer(java.lang.Class viewableBeanClass)
create a TreeTableExplorer and specify the class of the bean from which the Table rows
shall be inferred.
|
TreeTableExplorer(java.lang.Class[] viewableBeanClasses)
create a TreeTableExplorer and specify which beans shall be visible in the Table part of the
TreeTable.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getRowHeight() |
TreeTableViewTableAccess |
getTreeTableAccess()
Getter Method
|
void |
setPreferredSize(java.awt.Dimension dim)
set the preferred size of the whole explorer + table
|
void |
setProperties(Node.Property[] props,
boolean[] sortable) |
void |
setRowHeigth(int rowHeight)
set the height of the rows as in
JTree.setRowHeight(int) or JTable.setRowHeight(int) |
void |
setTableColumnPreferredWidth(int colIndex,
int width)
set the width of a column
|
void |
setTableColumns(java.lang.Class beanClass)
Deprecated.
|
void |
setTableColumns(java.lang.Class[] propTypes,
java.lang.String[] propNames) |
void |
setTableColumns(java.lang.Class beanClass,
java.lang.String[] propNames)
Deprecated.
|
void |
setTableColumns(GPNode node,
java.lang.String[] propNames) |
void |
setTableColumns(java.lang.Object bean) |
void |
setTableColumns(java.lang.Object bean,
java.lang.String[] propNames) |
void |
setTreePreferredWidth(int width)
set the width of the Tree part of the TreeTableExplorer
|
getRootNode, getTreeAccess, setRootNodepublic TreeTableExplorer()
public TreeTableExplorer(java.lang.Class viewableBeanClass)
viewableBeanClass - the bean class whose properties shall be displayed in the Tablepublic TreeTableExplorer(java.lang.Class[] viewableBeanClasses)
viewableBeanClass - the bean classes whose properties shall be displayed in the Tablepublic TreeTableViewTableAccess getTreeTableAccess()
public void setPreferredSize(java.awt.Dimension dim)
JComponent.setPreferredSize(Dimension)public void setTreePreferredWidth(int width)
width - the preferred widthpublic void setTableColumnPreferredWidth(int colIndex,
int width)
colIndex - the index of the column (starting from left with index 0)width - the width of this columnpublic void setTableColumns(java.lang.Class beanClass)
throws java.beans.IntrospectionException
java.beans.IntrospectionExceptionpublic void setTableColumns(java.lang.Class beanClass,
java.lang.String[] propNames)
throws java.beans.IntrospectionException
java.beans.IntrospectionExceptionpublic void setTableColumns(java.lang.Class[] propTypes,
java.lang.String[] propNames)
public void setTableColumns(java.lang.Object bean,
java.lang.String[] propNames)
throws java.beans.IntrospectionException
java.beans.IntrospectionExceptionpublic void setTableColumns(java.lang.Object bean)
throws java.beans.IntrospectionException
java.beans.IntrospectionExceptionpublic void setTableColumns(GPNode node, java.lang.String[] propNames)
public void setProperties(Node.Property[] props,
boolean[] sortable)
setProperties in interface TablePropertyHolderpublic void setRowHeigth(int rowHeight)
TreeExplorerJTree.setRowHeight(int) or JTable.setRowHeight(int)setRowHeigth in class TreeExplorerpublic int getRowHeight()
getRowHeight in class TreeExplorer#setRowHeight(int)