|
org.netbeans.swing.outline 1.20 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.DefaultTableColumnModel
org.netbeans.swing.etable.ETableColumnModel
public class ETableColumnModel
Column model implementation for ETable.
| Field Summary | |
|---|---|
protected List<TableColumn> |
hiddenColumns
List |
protected List<TableColumn> |
sortedColumns
List |
| Fields inherited from class javax.swing.table.DefaultTableColumnModel |
|---|
changeEvent, columnMargin, columnSelectionAllowed, listenerList, selectionModel, tableColumns, totalColumnWidth |
| Constructor Summary | |
|---|---|
ETableColumnModel()
Creates a new instance of ETableColumnModel |
|
| Method Summary | |
|---|---|
void |
clean()
Removes all columns, including hidden ones. |
void |
clearSortedColumns()
Makes the whole table unsorted. |
TableColumnSelector.TreeNode |
getColumnHierarchyRoot()
Allows the user to customize the list of the visible columns using a hierarchy in a special TableColumnSelector. |
Comparator<ETable.RowMapping> |
getComparator()
Provides a comparator for sorting the rows of the table. |
boolean |
isColumnHidden(TableColumn tc)
Test if the column is hidden or visible. |
void |
readSettings(Properties p,
String propertyPrefix,
ETable table)
Method allowing to read stored values. |
void |
removeColumn(TableColumn column)
|
void |
setColumnHidden(TableColumn column,
boolean hidden)
Makes the given column hidden or visible according to the parameter hidden. |
void |
setColumnHierarchyRoot(TableColumnSelector.TreeNode columnHierarchyRoot)
Allows the user to customize the list of the visible columns using a hierarchy in a special TableColumnSelector. |
void |
setColumnSorted(ETableColumn etc,
boolean ascending,
int newRank)
This method marks this column as sorted. |
void |
writeSettings(Properties p,
String propertyPrefix)
Method allowing to store customization values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient List<TableColumn> sortedColumns
protected List<TableColumn> hiddenColumns
| Constructor Detail |
|---|
public ETableColumnModel()
| Method Detail |
|---|
public void readSettings(Properties p,
String propertyPrefix,
ETable table)
public void writeSettings(Properties p,
String propertyPrefix)
public Comparator<ETable.RowMapping> getComparator()
public void setColumnSorted(ETableColumn etc,
boolean ascending,
int newRank)
This method does not refresh the table UI.
Use ETable.setColumnSorted(int, boolean, int) instead when the UI
should be changed accordingly.
etc - column in ETable column modelascending - true means ascendingnewRank - value 1 means that this is the most important sorted
column, number 2 means second etc.public void removeColumn(TableColumn column)
removeColumn in interface TableColumnModelremoveColumn in class DefaultTableColumnModel
public void setColumnHidden(TableColumn column,
boolean hidden)
column - The table column to change the visibility.hidden - true to make the column hidden, false to make it visible.public boolean isColumnHidden(TableColumn tc)
tc - The table column to test
true when the column is hidden, false when it's visible.public void clearSortedColumns()
public void clean()
public TableColumnSelector.TreeNode getColumnHierarchyRoot()
public void setColumnHierarchyRoot(TableColumnSelector.TreeNode columnHierarchyRoot)
|
org.netbeans.swing.outline 1.20 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||