public class DefaultTableViewColumn extends AbstractTableViewColumn
TableViewColumn interface.mListenerList| 构造器和说明 |
|---|
DefaultTableViewColumn(String pName)
Constructor declaration.
|
DefaultTableViewColumn(String pName,
Comparator pComparator,
Method pGetter,
Method pSetter)
Constructor declaration
|
DefaultTableViewColumn(String pName,
Comparator pComparator,
Method pGetter,
Method pSetter,
boolean pDefaultVisible)
Constructor declaration
|
DefaultTableViewColumn(String pName,
Comparator pComparator,
Method pGetter,
Method pSetter,
boolean pDefaultVisible,
Format pFormat)
Constructor declaration
column class = String if format not null else return type of getter sortable and searchable = true is getter return type is comparable. |
DefaultTableViewColumn(String pName,
Comparator pComparator,
Method pGetter,
Method pSetter,
boolean pDefaultVisible,
Format pFormat,
boolean pSortable,
boolean pSearchable)
Constructor declaration
|
DefaultTableViewColumn(String pName,
Method pGetter)
Constructor declaration.
|
DefaultTableViewColumn(String pName,
Method pGetter,
Method pSetter)
Constructor declaration
|
DefaultTableViewColumn(String pName,
Method pGetter,
Method pSetter,
boolean pDefaultVisible)
Constructor declaration
|
DefaultTableViewColumn(String pName,
Method pGetter,
Method pSetter,
boolean pDefaultVisible,
Format pFormat)
Constructor declaration
|
| 限定符和类型 | 方法和说明 |
|---|---|
Class |
getColumnClass()
Returns the column class.
|
Comparator |
getComparator()
Returns the column comparator.
|
String |
getName()
Returns the column name.
|
Object |
getValue(Object pRowObject)
Return the cell value.
|
boolean |
isCellEditable(Object pRowObject)
Returns setter not null.
|
boolean |
isDefaultVisible()
Returns the default visibility.
|
boolean |
isSearchable()
The searchable status.
|
boolean |
isSortable()
The sortable status.
|
void |
setValue(Object pRowObject,
Object pValue)
Set the cell value (use formatter).
|
getColumnName, setValueAtpublic DefaultTableViewColumn(String pName)
pName - column namepublic DefaultTableViewColumn(String pName, Method pGetter)
pName - column namepGetter - the getter methodpublic DefaultTableViewColumn(String pName, Method pGetter, Method pSetter)
pName - column namepGetter - the getter methodpSetter - the setter methodpublic DefaultTableViewColumn(String pName, Comparator pComparator, Method pGetter, Method pSetter)
pName - column namepComparator - the comparator of rows Objects for the current columnpGetter - the getter methodpSetter - the setter methodpublic DefaultTableViewColumn(String pName, Comparator pComparator, Method pGetter, Method pSetter, boolean pDefaultVisible)
pName - column namepComparator - the comparator of rows Objects for the current columnpGetter - the getter methodpSetter - the setter methodpDefaultVisible - the default visiblitypublic DefaultTableViewColumn(String pName, Method pGetter, Method pSetter, boolean pDefaultVisible, Format pFormat)
pName - column namepGetter - the getter methodpSetter - the setter methodpDefaultVisible - the default visiblitypFormat - the formaterpublic DefaultTableViewColumn(String pName, Method pGetter, Method pSetter, boolean pDefaultVisible)
pName - column namepGetter - the getter methodpSetter - the setter methodpDefaultVisible - the default visiblitypublic DefaultTableViewColumn(String pName, Comparator pComparator, Method pGetter, Method pSetter, boolean pDefaultVisible, Format pFormat)
pName - column namepComparator - the comparator of rows Objects for the current column (if null create a default - use comparable
interface)pGetter - the getter method (if null the getValue must be redefine)pSetter - the setter method (if null isn't editable)pDefaultVisible - the default visiblitypFormat - the formaterpublic DefaultTableViewColumn(String pName, Comparator pComparator, Method pGetter, Method pSetter, boolean pDefaultVisible, Format pFormat, boolean pSortable, boolean pSearchable)
pName - column namepComparator - the comparator of rows Objects for the current columnpGetter - the getter methodpSetter - the setter methodpDefaultVisible - the default visiblitypFormat - the formaterpSortable - is searchablepSearchable - is sortablepublic String getName()
public Class getColumnClass()
getColumnClass 在接口中 TableViewColumngetColumnClass 在类中 AbstractTableViewColumnpublic Comparator getComparator()
#getRowCountpublic Object getValue(Object pRowObject)
pRowObject - the row Objectpublic void setValue(Object pRowObject, Object pValue)
pRowObject - the row ObjectpValue - the new value#getValueAt,
TableViewColumn.isCellEditable(java.lang.Object)public boolean isDefaultVisible()
public boolean isSortable()
isSortable 在接口中 TableViewColumnisSortable 在类中 AbstractTableViewColumnpublic boolean isSearchable()
isSearchable 在接口中 TableViewColumnisSearchable 在类中 AbstractTableViewColumnpublic boolean isCellEditable(Object pRowObject)
isCellEditable 在接口中 TableViewColumnisCellEditable 在类中 AbstractTableViewColumnpRowObject - the row being queried#setValueAtCopyright © 2023 onecode. All rights reserved.