public class TreeTableNodeType
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected java.util.List | actionsThe supported popup actions. | 
| protected java.lang.String[] | columnnamesThe display names of the columns. | 
| protected java.lang.String[] | columnsThe columns (internal names of properties). | 
| protected boolean[] | editableThe editability of the columns. | 
| protected boolean[] | excludesThe excluded columns of this type. | 
| protected javax.swing.Icon[] | iconsThe icon. | 
| protected java.lang.String | nameThe type name. | 
| protected TreeTableNodeType | supertypeThe supertype (if any). | 
| Constructor and Description | 
|---|
| TreeTableNodeType(java.lang.String name,
                 javax.swing.Icon[] icons,
                 java.lang.String[] columns,
                 java.lang.String[] columnnames)Create a treetable node type. | 
| TreeTableNodeType(java.lang.String name,
                 javax.swing.Icon[] icons,
                 TreeTableNodeType supertype)Create a treetable node type inheriting from some other type. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addExclude(java.lang.String column)Exclude a column. | 
| void | addIcon(javax.swing.Icon icon)Add an icon. | 
| void | addPopupAction(javax.swing.Action action)Add a popup action. | 
| java.lang.String[] | getColumnNames()Get the column names (display names). | 
| java.lang.String[] | getColumns()Get the columns (internal property names). | 
| javax.swing.Icon | getIcon(java.lang.Object value)Get the icon. | 
| java.lang.String | getName()Get the type name. | 
| javax.swing.Action[] | getPopupActions()Get all popup actions (also from supertypes). | 
| TreeTableNodeType | getSupertype()Get the supertype. | 
| boolean | isColumnEditable(int column)Get the editability of the column. | 
| boolean | isColumnExcluded(int column)Check if nodes of this type should have a value for the given column. | 
| javax.swing.Icon | selectIcon(java.lang.Object value)Select an icon. | 
| void | setEditable(java.lang.String column)Make a column editable. | 
protected TreeTableNodeType supertype
protected java.lang.String name
protected javax.swing.Icon[] icons
protected java.lang.String[] columns
protected java.lang.String[] columnnames
protected boolean[] editable
protected boolean[] excludes
protected java.util.List actions
public TreeTableNodeType(java.lang.String name,
                         javax.swing.Icon[] icons,
                         TreeTableNodeType supertype)
name - The type name.icons - The icons.supertype - The supertype.public TreeTableNodeType(java.lang.String name,
                         javax.swing.Icon[] icons,
                         java.lang.String[] columns,
                         java.lang.String[] columnnames)
public TreeTableNodeType getSupertype()
public java.lang.String getName()
public void addIcon(javax.swing.Icon icon)
icon - The icon for the node.public javax.swing.Icon getIcon(java.lang.Object value)
public javax.swing.Icon selectIcon(java.lang.Object value)
value - The selection criterium.public java.lang.String[] getColumns()
public java.lang.String[] getColumnNames()
public boolean isColumnEditable(int column)
column - The column to check for editability.public boolean isColumnExcluded(int column)
column - The column to check for.public void addExclude(java.lang.String column)
column - The column to exclude.public void setEditable(java.lang.String column)
column - The column to be editable.public void addPopupAction(javax.swing.Action action)
action - The action.name - The (display) name of the action.public javax.swing.Action[] getPopupActions()