public class TWebTableColumn
extends java.lang.Object
Constructor and Description |
---|
TWebTableColumn(java.lang.String name) |
TWebTableColumn(java.lang.String name,
java.lang.String displayName) |
TWebTableColumn(java.lang.String name,
java.lang.String displayName,
java.util.Comparator sortComparator,
boolean visible,
java.lang.Class javaClass,
java.lang.reflect.Method readMethod,
java.lang.reflect.Method writeMethod) |
TWebTableColumn(java.lang.String name,
java.lang.String displayName,
java.util.Comparator sortComparator,
java.lang.Class javaClass) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayName()
Get display name for this column.
|
ElementAttribute |
getElementAttribute()
Gets the
ElementAttribute object connected with this
column. |
java.lang.Class |
getJavaClass()
Get class type for the column bound property.
|
java.lang.String |
getName()
Get column name.
|
TPropertyDescriptor |
getPropertyDescriptor()
Gets the
TPropertyDescriptor object connected with this
column. |
java.lang.reflect.Method |
getReadMethod()
Get read method used to get the bound property's value
|
java.util.Comparator |
getSortComparator()
Get column sort comparator.
|
int |
getSortMode()
Get column sort mode.
|
java.lang.reflect.Method |
getWriteMethod()
Get the write method used to set column bound property value.
|
boolean |
isSortable()
Checks whether this column can be sorted.
|
boolean |
isVisible()
Check whether this table column is visible on table.
|
TWebTableColumn |
setDisplayName(java.lang.String displayName)
Set display name for this column.
|
TWebTableColumn |
setJavaClass(java.lang.Class javaClass)
Set class type for the column bound property.
|
TWebTableColumn |
setName(java.lang.String name)
Set column name
|
void |
setPropertyDescriptor(TPropertyDescriptor propertyDescriptor)
Sets the
TPropertyDescriptor object connected with this
column. |
TWebTableColumn |
setReadMethod(java.lang.reflect.Method readMethod)
Set read method for this column which is used to get the column bound
property's value
|
TWebTableColumn |
setSortable(boolean sortable)
Sets whether this column can be sorted.
|
TWebTableColumn |
setSortComparator(java.util.Comparator sortComparator)
Set the column sort comparator.
|
protected void |
setSortMode(int sortMode)
Set column sort mode.
|
TWebTableColumn |
setVisible(boolean visible)
Determine whether this table column is visible on table.
|
TWebTableColumn |
setWriteMethod(java.lang.reflect.Method writeMethod)
Set the write method used to set column bound property value.
|
java.lang.String |
toString()
Override this method to return column display name as the "toString".
|
public TWebTableColumn(java.lang.String name)
public TWebTableColumn(java.lang.String name, java.lang.String displayName)
public TWebTableColumn(java.lang.String name, java.lang.String displayName, java.util.Comparator sortComparator, java.lang.Class javaClass)
public TWebTableColumn(java.lang.String name, java.lang.String displayName, java.util.Comparator sortComparator, boolean visible, java.lang.Class javaClass, java.lang.reflect.Method readMethod, java.lang.reflect.Method writeMethod)
public java.lang.String getDisplayName()
setDisplayName(java.lang.String)
public TWebTableColumn setDisplayName(java.lang.String displayName)
displayName
- String the display name to be used.getDisplayName()
public java.lang.String getName()
setName(java.lang.String)
public TWebTableColumn setName(java.lang.String name)
name
- String new column name to be setgetName()
public boolean isVisible()
setVisible(boolean)
public TWebTableColumn setVisible(boolean visible)
visible
- boolean true if visible, false otherwise.isVisible()
public java.util.Comparator getSortComparator()
setSortComparator(java.util.Comparator)
public TWebTableColumn setSortComparator(java.util.Comparator sortComparator)
sortComparator
- Comparator the column sort comparator.getSortComparator()
public int getSortMode()
setSortMode(int)
protected void setSortMode(int sortMode)
sortMode
- int sort mode. Legal values are:
getSortMode()
public java.lang.Class getJavaClass()
setJavaClass(java.lang.Class)
public TWebTableColumn setJavaClass(java.lang.Class javaClass)
javaClass
- Class class type for the column bound property.getJavaClass()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.reflect.Method getReadMethod()
setReadMethod(java.lang.reflect.Method)
,
getWriteMethod()
public TWebTableColumn setReadMethod(java.lang.reflect.Method readMethod)
readMethod
- Method reader method used to get property valuegetReadMethod()
,
setWriteMethod(java.lang.reflect.Method)
public java.lang.reflect.Method getWriteMethod()
setWriteMethod(java.lang.reflect.Method)
,
getReadMethod()
public TWebTableColumn setWriteMethod(java.lang.reflect.Method writeMethod)
writeMethod
- Method the write method used to set column bound property
value.setReadMethod(java.lang.reflect.Method)
public boolean isSortable()
public TWebTableColumn setSortable(boolean sortable)
sortable
- True to can be sorted, false otherwise.public TPropertyDescriptor getPropertyDescriptor()
TPropertyDescriptor
object connected with this
column.TPropertyDescriptor
object connected with this
column.public void setPropertyDescriptor(TPropertyDescriptor propertyDescriptor)
TPropertyDescriptor
object connected with this
column.propertyDescriptor
- the TPropertyDescriptor
object connected with
this column.public ElementAttribute getElementAttribute()
ElementAttribute
object connected with this
column.ElementAttribute
object connected with this
column.Copyright © 2002 - 2010 Serva Software. All Rights Reserved.