| java.lang.Object javax.swing.table.AbstractTableModel org.openide.explorer.view.NodeTableModel
All known Subclasses: org.openide.explorer.view.TreeTableModelAdapter,
NodeTableModel | public class NodeTableModel extends AbstractTableModel (Code) | | Table model with properties (Node.Property ) as columns and nodes (Node ) as rows.
It is used as model for displaying node properties in table. Each column is represented by
Node.Property object. Each row is represented by Node object.
Each cell contains Node.Property property which equals with column object
and should be in property sets of row representant (Node ).
author: Jan Rojcek since: 1.7 |
Inner Class :static class ArrayColumn | |
ATTR_COMPARABLE_COLUMN | final static String ATTR_COMPARABLE_COLUMN(Code) | | |
ATTR_DESCENDING_ORDER | final static String ATTR_DESCENDING_ORDER(Code) | | |
ATTR_SORTING_COLUMN | final static String ATTR_SORTING_COLUMN(Code) | | |
allPropertyColumns | ArrayColumn[] allPropertyColumns(Code) | | all columns of model
|
existsComparableColumn | boolean existsComparableColumn()(Code) | | |
getArrayColumnWidth | int getArrayColumnWidth(int column)(Code) | | Get width of column from whole property set
Parameters: column - number column width |
getArrayIndex | int getArrayIndex(int visibleIndex)(Code) | | Get index of visible column
Parameters: column - number from whole property set column index |
getColumnClass | public Class getColumnClass(int column)(Code) | | Getter for column class.
Parameters: column - table column index Node.Property.class |
getColumnCount | public int getColumnCount()(Code) | | Getter for column count.
column count |
getColumnCountEx | int getColumnCountEx()(Code) | | The count of all properties (includes invisible columns) |
getColumnName | public String getColumnName(int column)(Code) | | Getter for column name
Parameters: column - table column index display name of property which represents column |
getColumnNameEx | String getColumnNameEx(int column)(Code) | | Getter for column name
Parameters: column - table column index display name of property which represents column |
getDisplayNameWithMnemonic | String getDisplayNameWithMnemonic(Property p)(Code) | | |
getPropertyFor | protected Property getPropertyFor(Node node, Property prop)(Code) | | Returns node property if found in nodes property sets. Could be overriden to
return property which is not in nodes property sets.
Parameters: node - represents single row Parameters: prop - represents column nodes property |
getRowCount | public int getRowCount()(Code) | | Getter for row count.
row count |
getSortingColumn | int getSortingColumn()(Code) | | |
getValueAt | public Object getValueAt(int row, int column)(Code) | | Getter for property.
Parameters: row - table row index Parameters: column - table column index property at (row, column) |
getVisibleColumnWidth | int getVisibleColumnWidth(int column)(Code) | | Get width of visible column.
Parameters: column - number column width |
getVisibleIndex | int getVisibleIndex(int arrayIndex)(Code) | | Get index of visible column
Parameters: column - number from whole property set column index |
getVisibleSortingColumn | int getVisibleSortingColumn()(Code) | | |
isCellEditable | public boolean isCellEditable(int row, int column)(Code) | | Cell is editable only if it has non null value.
Parameters: row - table row index Parameters: column - table column index true if cell contains non null value |
isComparableColumn | boolean isComparableColumn(int column)(Code) | | If true, column property should be comparable - allows sorting
Parameters: column - Index of a visible column |
isComparableColumnEx | boolean isComparableColumnEx(int column)(Code) | | If true, column property should be comparable - allows sorting
Parameters: column - Index to the array of all properties |
isSortOrderDescending | boolean isSortOrderDescending()(Code) | | |
isSortingColumnEx | boolean isSortingColumnEx(int column)(Code) | | If true, column is currently used for sorting
Parameters: Index - to the array of all properties (the column may not be visible) |
isVisibleColumnEx | boolean isVisibleColumnEx(int column)(Code) | | Parameters: column - Index to the array of all properties True if the property at the given index is visible |
makeAccessibleCheckBox | void makeAccessibleCheckBox(JCheckBox box, Property p)(Code) | | |
moveColumn | void moveColumn(int from, int to)(Code) | | |
nodeForRow | Node nodeForRow(int row)(Code) | | Helper method to ask for a node representant of row.
|
propertyForColumn | Property propertyForColumn(int column)(Code) | | Helper method to ask for a property representant of column.
Parameters: Index - of a visible column |
propertyForColumnEx | Property propertyForColumnEx(int column)(Code) | | Helper method to ask for a property representant of column.
Parameters: Index - to the array of all properties. |
setArrayColumnWidth | void setArrayColumnWidth(int column, int width)(Code) | | Set width of column from whole property set
Parameters: column - number Parameters: column - width |
setNodes | public void setNodes(Node[] nodes)(Code) | | Set rows.
Parameters: nodes - the rows |
setProperties | public void setProperties(Property[] props)(Code) | | Set columns.
Parameters: props - the columns |
setSortOrderDescending | void setSortOrderDescending(boolean descending)(Code) | | |
setSortingColumnEx | void setSortingColumnEx(int column)(Code) | | Sets column to be currently used for sorting
Parameters: Index - to the array of all properties (the column may not by visible) |
setVisibleColumnWidth | void setVisibleColumnWidth(int column, int width)(Code) | | Set width of visible column.
Parameters: column - number Parameters: column - width |
translateVisibleColumnIndex | int translateVisibleColumnIndex(int index)(Code) | | |
|
|