Constructor and Description |
---|
ColumnModel() |
Modifier and Type | Method and Description |
---|---|
int |
getColumnWidth()
Return column width of this column.
|
int |
getCurrentOrderNumber()
Should return current order number of this column.
|
Character |
getDisplayedMnemonic()
Deprecated.
Use ampersand in
ColumnModel.getDisplayName() . |
abstract String |
getDisplayName()
Returns display name of this column.
|
abstract String |
getID()
Returns unique ID of this column.
|
String |
getNextColumnID()
Deprecated.
Not used. See
ColumnModel.getCurrentOrderNumber() . |
String |
getPreviuosColumnID()
Deprecated.
Not used. See
ColumnModel.getCurrentOrderNumber() . |
PropertyEditor |
getPropertyEditor()
Returns
PropertyEditor to be used for
this column. |
String |
getShortDescription()
Returns tooltip for given column.
|
abstract Class |
getType()
Returns type of column items.
|
boolean |
isSortable()
True if column can be sorted.
|
boolean |
isSorted()
True if column is sorted.
|
boolean |
isSortedDescending()
True if column should be sorted in descending order.
|
boolean |
isVisible()
True if column should be visible.
|
void |
setColumnWidth(int newColumnWidth)
Is called when column width of this column is changed.
|
void |
setCurrentOrderNumber(int newOrderNumber)
Is called when current order number of this column is changed.
|
void |
setSorted(boolean sorted)
Set true if column is to be sorted.
|
void |
setSortedDescending(boolean sortedDescending)
Set true if column is to be sorted in descending order.
|
void |
setVisible(boolean visible)
Set true if column is to be visible.
|
public abstract String getID()
public abstract String getDisplayName()
@Deprecated public Character getDisplayedMnemonic()
ColumnModel.getDisplayName()
.null
.null
.public abstract Class getType()
@Deprecated public String getPreviuosColumnID()
ColumnModel.getCurrentOrderNumber()
.null
. Defines default order of columns only.
This default order can be changed by user, and
ColumnModel.getCurrentOrderNumber()
and ColumnModel.setCurrentOrderNumber(int)
are
used for sorting after that.null
@Deprecated public String getNextColumnID()
ColumnModel.getCurrentOrderNumber()
.null
. Defines default order of columns only.
This default order can be changed by user, and
ColumnModel.getCurrentOrderNumber()
and ColumnModel.setCurrentOrderNumber(int)
are
used for sorting after that.null
public String getShortDescription()
null
- do not use tooltip.null
public boolean isSortable()
true
.public boolean isVisible()
true
.true
if column should be visiblepublic void setVisible(boolean visible)
visible
- set true if column is to be visiblepublic boolean isSorted()
false
.true
if column is sorted.public void setSorted(boolean sorted)
sorted
- set true if column is to be sortedpublic boolean isSortedDescending()
false
.true
if column should be sorted
in descending orderpublic void setSortedDescending(boolean sortedDescending)
sortedDescending
- set true if column is to be sorted
in descending orderpublic int getCurrentOrderNumber()
-1
.-1
public void setCurrentOrderNumber(int newOrderNumber)
newOrderNumber
- new order numberpublic int getColumnWidth()
public void setColumnWidth(int newColumnWidth)
newColumnWidth
- a new column widthpublic PropertyEditor getPropertyEditor()
PropertyEditor
to be used for
this column. Default implementation returns null
-
means use default PropertyEditor.PropertyEditor
to be used for
this column