public class ListTableExplorer extends GPListExplorerPanel implements TablePropertyHolder
The implementation enables the developer to create a Explorer that s/he can easily place into a NetBeans Mode. It has methods to easily configure the colums of the Table. It is recommended that the developer uses the NodeFactory to create the Node hierarchy to be explored.
| Modifier | Constructor and Description |
|---|---|
|
ListTableExplorer()
create a ListTableExplorer with the default view and model.
|
|
ListTableExplorer(java.lang.Class viewableBeanClass)
Deprecated.
this method is only used for a real SortableTreeTableExplorer
|
|
ListTableExplorer(java.lang.Class[] viewableBeanClasses)
Deprecated.
this method is only used for a real SortableTreeTableExplorer
|
|
ListTableExplorer(GPNode[] nodes)
create a ListTableExplorer and set the nodes to display
|
protected |
ListTableExplorer(TreeTableViewTableAccess view) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getTableColumnNames()
Accessor method, the counterpart to
setTableColumns(String[]) |
TreeTableViewTableAccess |
getTreeTableAccess()
Getter Method
|
void |
setListNodes(GPNode[] nodes)
set the nodes to be displayed in the table.
|
void |
setPreferredSize(java.awt.Dimension dim)
set the preferred size of the TableExplorer
|
void |
setProperties(Node.Property[] props,
boolean[] sortable) |
void |
setRootNode(GPNode node)
set the parent node of the list of nodes to be explored.
|
void |
setTableColumnPreferredWidth(int index,
int width)
set the preferred width of the specified column
|
void |
setTableColumns(java.lang.Class beanClass)
Deprecated.
use setTableColumns(Object) or setTableColumns(GPBean, String[]) instead
|
void |
setTableColumns(java.lang.Class[] propTypes,
java.lang.String[] propNames)
Sets the colums of the Table.
|
void |
setTableColumns(java.lang.Class[] propTypes,
java.lang.String[] propNames,
boolean[] sortable) |
void |
setTableColumns(java.lang.Class beanClass,
java.lang.String[] propNames)
Deprecated.
use setTableColumns(Object, String[]) or setTableColumns(GPBean, String[]) instead
|
void |
setTableColumns(GPNode node,
java.lang.String[] propNames)
Sets the columns of the Table.
|
void |
setTableColumns(GPNode node,
java.lang.String[] propNames,
boolean[] sortable) |
void |
setTableColumns(java.lang.Object bean)
Sets the columns of the Table.
|
void |
setTableColumns(java.lang.Object bean,
java.lang.String[] propNames)
Sets the columns of the Table.
|
void |
setTableColumns(java.lang.Object bean,
java.lang.String[] propNames,
boolean[] sortable) |
void |
setTableColumns(java.lang.String[] propNames)
set the columns to be displayed.
|
void |
setTreePreferredWidth(int width)
set the preferred width of the whole TableExplorer
|
createRootNode, getListNodes, getRootBean, getRootNode, setName, setRootBeanpublic ListTableExplorer()
public ListTableExplorer(GPNode[] nodes)
nodes - the nodes to displayprotected ListTableExplorer(TreeTableViewTableAccess view)
public ListTableExplorer(java.lang.Class viewableBeanClass)
viewableBeanClass - the bean class whose properties shall be displayed in the Tablepublic ListTableExplorer(java.lang.Class[] viewableBeanClasses)
viewableBeanClass - the bean classes whose properties shall be displayed in the Tablepublic TreeTableViewTableAccess getTreeTableAccess()
public final void setListNodes(GPNode[] nodes)
setListNodes in class GPListExplorerPanelnodes - an array of nodes each associated with a Bean.public void setRootNode(GPNode node)
setListNodes(GPNode[])setRootNode in class GPListExplorerPanelparentNode - the parent of the nodes to be displayed in the Listpublic void setPreferredSize(java.awt.Dimension dim)
public void setTreePreferredWidth(int width)
public void setTableColumnPreferredWidth(int index,
int width)
public void setTableColumns(java.lang.String[] propNames)
throws java.beans.IntrospectionException
setListNodes(GPNode[])java.beans.IntrospectionExceptionpublic java.lang.String[] getTableColumnNames()
setTableColumns(String[])public void setTableColumns(GPNode node, java.lang.String[] propNames)
BeanSupport.getPropertyInfo() method.
Beware: all properties passed in the propNames argument must also be present in the beanClass
represented by this node.
If you don't have a suitable GPNode, please use the {#setTableColumns(Class[], String[])} method.propNames - the properties to be displayed as columns in the tablepublic void setTableColumns(java.lang.Object bean)
throws java.beans.IntrospectionException
BeanSupport.getPropertyInfo()
All non-hidden properties of the bean will be displayed as columns in the Tablejava.beans.IntrospectionExceptionpublic void setTableColumns(java.lang.Object bean,
java.lang.String[] propNames)
throws java.beans.IntrospectionException
BeanSupport.getPropertyInfo().
Beware: all properties passed in the propNames argument must also be present in the beanClass.
If you already have created a GPNode for this bean, you should use
setTableColumns(GPNode, String[]) because this is more efficient.
If you don't have such a bean, please use the {#setTableColumns(Class[], String[])} method.
bean - the bean displayed in the tablepropNames - the properties to be displayed as columns in the tablejava.beans.IntrospectionException - if something goes wrong while introspecting the beanpublic void setTableColumns(java.lang.Class[] propTypes,
java.lang.String[] propNames)
BeanSupport.getPropertyInfo() method to customize settings for
properties. For such beans use {{#setTableColumns(Object, String[])} instead.propTypes - the types of the properties corresponding to the namespropNames - the names of the properties to be displayedpublic void setTableColumns(java.lang.Class[] propTypes,
java.lang.String[] propNames,
boolean[] sortable)
public void setTableColumns(GPNode node, java.lang.String[] propNames, boolean[] sortable)
public void setTableColumns(java.lang.Object bean,
java.lang.String[] propNames,
boolean[] sortable)
throws java.beans.IntrospectionException
java.beans.IntrospectionExceptionpublic 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
beanClass - the class of one of the beans that shall be displayed. It must have all
properties mentioned in the propNames argumentpropNames - the name of the properties to be displayedjava.beans.IntrospectionException - if a property is not found in the beanClasssetTableColumns(Class[], String[])public void setProperties(Node.Property[] props,
boolean[] sortable)
setProperties in interface TablePropertyHolder