|
org.netbeans.spi.viewmodel/2 1.9.31 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.spi.viewmodel.ColumnModel
Defines model for one table view column. Can be used together with
TreeModel for tree table view representation.
| Constructor Summary | |
|---|---|
ColumnModel()
|
|
| Method Summary | |
|---|---|
int |
getColumnWidth()
Return column width of this column. |
int |
getCurrentOrderNumber()
Should return current order number of this column. |
abstract String |
getDisplayName()
Returns display name of this column. |
abstract String |
getID()
Returns unique ID of this column. |
String |
getNextColumnID()
Returns ID of column this column should be installed after or null. |
String |
getPreviuosColumnID()
Returns ID of column this column should be installed before or null. |
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 should be sorted by default. |
boolean |
isSortedDescending()
True if column should be sorted by default in descending order. |
boolean |
isVisible()
True if column should be visible by default. |
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 should be sorted by default. |
void |
setSortedDescending(boolean sortedDescending)
Set true if column should be sorted by default in descending order. |
void |
setVisible(boolean visible)
Set true if column is visible. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnModel()
| Method Detail |
|---|
public abstract String getID()
public abstract String getDisplayName()
public abstract Class getType()
public String getPreviuosColumnID()
null. Defines default order of columns only.
This default order can be changed by user, and
getCurrentOrderNumber() and setCurrentOrderNumber(int) are
used for sorting after that.
nullpublic String getNextColumnID()
null. Defines default order of columns only.
This default order can be changed by user, and
getCurrentOrderNumber() and setCurrentOrderNumber(int) are
used for sorting after that.
nullpublic String getShortDescription()
null - do not use tooltip.
nullpublic boolean isSortable()
true.
public boolean isVisible()
true.
true if column should be visible by defaultpublic void setVisible(boolean visible)
visible - set true if column is visiblepublic boolean isSorted()
false.
true if column should be sorted by defaultpublic void setSorted(boolean sorted)
sorted - set true if column should be sorted by defaultpublic boolean isSortedDescending()
false.
true if column should be sorted by default
in descending orderpublic void setSortedDescending(boolean sortedDescending)
sortedDescending - set true if column should be sorted by default
in descending orderpublic int getCurrentOrderNumber()
-1. Current order number is used when the default order
defined by getPreviuosColumnID() and getNextColumnID()
is changed by user. So getCurrentOrderNumber () method should return
-1, till the setCurrentOrderNumber(int) is called.
And it should return newOrderNumber value after that.
-1public 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
|
org.netbeans.spi.viewmodel/2 1.9.31 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||