|
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.TableColumn
org.netbeans.swing.etable.ETableColumn
public class ETableColumn
Special type of TableColumn object used by ETable.
| Nested Class Summary | |
|---|---|
class |
ETableColumn.RowComparator
Comparator used for sorting the rows according to value in a given column. |
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.TableColumn |
|---|
CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, COLUMN_WIDTH_PROPERTY, HEADER_RENDERER_PROPERTY, HEADER_VALUE_PROPERTY, headerRenderer, headerValue, identifier, isResizable, maxWidth, minWidth, modelIndex, resizedPostingDisableCount, width |
| Constructor Summary | |
|---|---|
ETableColumn(ETable table)
Creates a new instance of ETableColumn |
|
ETableColumn(int modelIndex,
ETable table)
Creates a new instance of ETableColumn |
|
ETableColumn(int modelIndex,
int width,
ETable table)
Creates a new instance of ETableColumn |
|
ETableColumn(int modelIndex,
int width,
TableCellRenderer cellRenderer,
TableCellEditor cellEditor,
ETable table)
Creates a new instance of ETableColumn |
|
| Method Summary | |
|---|---|
int |
compareTo(ETableColumn obj)
|
protected TableCellRenderer |
createDefaultHeaderRenderer()
Overridden to return our special header renderer. |
Comparator |
getNestedComparator()
Returns comparator for sorting the rows belonging to same parent in tree-like part of table. |
protected Comparator<ETable.RowMapping> |
getRowComparator(int column,
boolean ascending)
Allow subclasses to supply special row comparator object. |
int |
getSortRank()
Rank value 1 means that this is the most important column (with respect to the table sort), value 2 means second etc. |
boolean |
isAscending()
Checks whether the sort order is ascending (true means ascending, false means descending). |
boolean |
isHidingAllowed()
The column can be hidden if this method returns true. |
boolean |
isSorted()
Returns true if the table is sorted using this column. |
boolean |
isSortingAllowed()
The column can be sorted if this method returns true. |
void |
readSettings(Properties p,
int index,
String propertyPrefix)
Method allowing to read stored values. |
void |
setAscending(boolean ascending)
Sets the sort order. |
void |
setCustomIcon(Icon i)
Allows setting a custom icon for this column. |
void |
setHeaderRenderer(TableCellRenderer tcr)
Allows to set the header renderer. |
void |
setNestedComparator(Comparator c)
Method allowing to set custom comparator for sorting the rows belonging to same parent in tree-like part of table. |
void |
setSorted(int rank,
boolean ascending)
Deprecated. This method has no effect if the column was not already sorted before. Use ETableColumnModel.setColumnSorted(org.netbeans.swing.etable.ETableColumn, boolean, int) instead. |
void |
setSortRank(int newRank)
Rank value 1 means that this is the most important column (with respect to the table sort), value 2 means second etc. |
void |
writeSettings(Properties p,
int index,
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 |
| Constructor Detail |
|---|
public ETableColumn(ETable table)
public ETableColumn(int modelIndex,
ETable table)
public ETableColumn(int modelIndex,
int width,
ETable table)
public ETableColumn(int modelIndex,
int width,
TableCellRenderer cellRenderer,
TableCellEditor cellEditor,
ETable table)
| Method Detail |
|---|
@Deprecated
public void setSorted(int rank,
boolean ascending)
ETableColumnModel.setColumnSorted(org.netbeans.swing.etable.ETableColumn, boolean, int) instead.
rank - value 1 means that this is the most important sorted
column, number 2 means second etc.ascending - true means ascendingpublic boolean isSorted()
public void setSortRank(int newRank)
newRank - value 1 means that this is the most important sorted
column, number 2 means second etc.public int getSortRank()
public boolean isAscending()
public void setAscending(boolean ascending)
ascending - true means ascendingpublic void setHeaderRenderer(TableCellRenderer tcr)
setHeaderRenderer in class TableColumnpublic boolean isHidingAllowed()
public boolean isSortingAllowed()
public void setCustomIcon(Icon i)
public void readSettings(Properties p,
int index,
String propertyPrefix)
public void writeSettings(Properties p,
int index,
String propertyPrefix)
public int compareTo(ETableColumn obj)
compareTo in interface Comparable<ETableColumn>
protected Comparator<ETable.RowMapping> getRowComparator(int column,
boolean ascending)
public void setNestedComparator(Comparator c)
c - comparator or null for using the default comparatorpublic Comparator getNestedComparator()
protected TableCellRenderer createDefaultHeaderRenderer()
createDefaultHeaderRenderer in class TableColumnTableColumn.createDefaultHeaderRenderer()
|
org.netbeans.swing.outline 1.20 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||