| 
org.netbeans.spi.viewmodel/2 1.11 | |||||||||
| 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.  | 
 Character | 
getDisplayedMnemonic()
Returns the character, that indicates a mnemonic key for this column name.  | 
abstract  String | 
getDisplayName()
Returns display name of this column.  | 
abstract  String | 
getID()
Returns unique ID of this column.  | 
 String | 
getNextColumnID()
Deprecated. Not used. See getCurrentOrderNumber(). | 
 String | 
getPreviuosColumnID()
Deprecated. Not used. See 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.  | 
| 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 Character getDisplayedMnemonic()
null.
null.public abstract Class getType()
public String getPreviuosColumnID()
getCurrentOrderNumber().
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()
getCurrentOrderNumber().
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 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.
-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.11 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||