Package jadex.commons.gui.jtreetable
Class TreeTableNodeType
- java.lang.Object
- 
- jadex.commons.gui.jtreetable.TreeTableNodeType
 
- 
 public class TreeTableNodeType extends java.lang.ObjectThe node type represents the generic properties of tree table nodes.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.ListactionsThe 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.StringnameThe type name.protected TreeTableNodeTypesupertypeThe supertype (if any).
 - 
Constructor SummaryConstructors Constructor Description TreeTableNodeType(java.lang.String name, javax.swing.Icon[] icons, TreeTableNodeType supertype)Create a treetable node type inheriting from some other type.TreeTableNodeType(java.lang.String name, javax.swing.Icon[] icons, java.lang.String[] columns, java.lang.String[] columnnames)Create a treetable node type.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExclude(java.lang.String column)Exclude a column.voidaddIcon(javax.swing.Icon icon)Add an icon.voidaddPopupAction(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.IcongetIcon(java.lang.Object value)Get the icon.java.lang.StringgetName()Get the type name.javax.swing.Action[]getPopupActions()Get all popup actions (also from supertypes).TreeTableNodeTypegetSupertype()Get the supertype.booleanisColumnEditable(int column)Get the editability of the column.booleanisColumnExcluded(int column)Check if nodes of this type should have a value for the given column.javax.swing.IconselectIcon(java.lang.Object value)Select an icon.voidsetEditable(java.lang.String column)Make a column editable.
 
- 
- 
- 
Field Detail- 
supertypeprotected TreeTableNodeType supertype The supertype (if any).
 - 
nameprotected java.lang.String name The type name.
 - 
iconsprotected javax.swing.Icon[] icons The icon.
 - 
columnsprotected java.lang.String[] columns The columns (internal names of properties).
 - 
columnnamesprotected java.lang.String[] columnnames The display names of the columns.
 - 
editableprotected boolean[] editable The editability of the columns.
 - 
excludesprotected boolean[] excludes The excluded columns of this type.
 - 
actionsprotected java.util.List actions The supported popup actions.
 
- 
 - 
Constructor Detail- 
TreeTableNodeTypepublic TreeTableNodeType(java.lang.String name, javax.swing.Icon[] icons, TreeTableNodeType supertype)Create a treetable node type inheriting from some other type.- Parameters:
- name- The type name.
- icons- The icons.
- supertype- The supertype.
 
 - 
TreeTableNodeTypepublic TreeTableNodeType(java.lang.String name, javax.swing.Icon[] icons, java.lang.String[] columns, java.lang.String[] columnnames)Create a treetable node type.
 
- 
 - 
Method Detail- 
getSupertypepublic TreeTableNodeType getSupertype() Get the supertype.- Returns:
- The supertype.
 
 - 
getNamepublic java.lang.String getName() Get the type name.- Returns:
- The name of the node type.
 
 - 
addIconpublic void addIcon(javax.swing.Icon icon) Add an icon.- Parameters:
- icon- The icon for the node.
 
 - 
getIconpublic javax.swing.Icon getIcon(java.lang.Object value) Get the icon.- Returns:
- The icon for the node.
 
 - 
selectIconpublic javax.swing.Icon selectIcon(java.lang.Object value) Select an icon.- Parameters:
- value- The selection criterium.
- Returns:
- The icon to be used.
 
 - 
getColumnspublic java.lang.String[] getColumns() Get the columns (internal property names).- Returns:
- The columns.
 
 - 
getColumnNamespublic java.lang.String[] getColumnNames() Get the column names (display names).- Returns:
- The column namess.
 
 - 
isColumnEditablepublic boolean isColumnEditable(int column) Get the editability of the column.- Parameters:
- column- The column to check for editability.
- Returns:
- The editablility.
 
 - 
isColumnExcludedpublic boolean isColumnExcluded(int column) Check if nodes of this type should have a value for the given column.- Parameters:
- column- The column to check for.
- Returns:
- True, if there is no value for the given column.
 
 - 
addExcludepublic void addExclude(java.lang.String column) Exclude a column.- Parameters:
- column- The column to exclude.
 
 - 
setEditablepublic void setEditable(java.lang.String column) Make a column editable.- Parameters:
- column- The column to be editable.
 
 - 
addPopupActionpublic void addPopupAction(javax.swing.Action action) Add a popup action.- Parameters:
- action- The action.
- name- The (display) name of the action.
 
 - 
getPopupActionspublic javax.swing.Action[] getPopupActions() Get all popup actions (also from supertypes).- Returns:
- The popup actions.
 
 
- 
 
-