V - the columns value typeT - the row bean typepublic abstract class AbstractTableColumn<V,T> extends Object implements TableColumn<V,T>
This class is not thread safe as it has class level members that are not final. If these need to be updated per user, then a new instance needs to be created per user session.
| Constructor and Description |
|---|
AbstractTableColumn(String label) |
AbstractTableColumn(String label,
Comparator comparator) |
AbstractTableColumn(String columnId,
String label,
com.github.bordertech.wcomponents.WComponent renderer,
Comparator comparator) |
AbstractTableColumn(String label,
com.github.bordertech.wcomponents.WComponent renderer) |
AbstractTableColumn(String label,
com.github.bordertech.wcomponents.WComponent renderer,
Comparator comparator) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkComparator(Comparator comp) |
boolean |
equals(Object obj) |
com.github.bordertech.wcomponents.WTableColumn.Alignment |
getAlignment() |
String |
getColumnId() |
String |
getColumnLabel() |
Comparator |
getComparator() |
com.github.bordertech.wcomponents.WComponent |
getRenderer() |
int |
getWidth() |
int |
hashCode() |
boolean |
isEditable() |
void |
setAlignment(com.github.bordertech.wcomponents.WTableColumn.Alignment align) |
void |
setEditable(boolean editable) |
void |
setValue(T bean,
V value) |
void |
setWidth(int width) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetValuepublic AbstractTableColumn(String label)
label - the column labelpublic AbstractTableColumn(String label, Comparator comparator)
label - the column labelcomparator - the column comparatorpublic AbstractTableColumn(String label, com.github.bordertech.wcomponents.WComponent renderer)
label - the column labelrenderer - the column rendererpublic AbstractTableColumn(String label, com.github.bordertech.wcomponents.WComponent renderer, Comparator comparator)
label - the column labelrenderer - the column renderercomparator - the column comparatorpublic AbstractTableColumn(String columnId, String label, com.github.bordertech.wcomponents.WComponent renderer, Comparator comparator)
columnId - the column idlabel - the column labelrenderer - the column renderercomparator - the column comparatorprotected final void checkComparator(Comparator comp)
comp - the comparator to check is validpublic Comparator getComparator()
getComparator in interface TableColumn<V,T>public String getColumnId()
getColumnId in interface TableColumn<V,T>public String getColumnLabel()
getColumnLabel in interface TableColumn<V,T>public com.github.bordertech.wcomponents.WComponent getRenderer()
getRenderer in interface TableColumn<V,T>public boolean isEditable()
isEditable in interface TableColumn<V,T>public void setEditable(boolean editable)
editable - true if column is editablepublic int getWidth()
getWidth in interface TableColumn<V,T>public void setWidth(int width)
width - the column widthpublic com.github.bordertech.wcomponents.WTableColumn.Alignment getAlignment()
getAlignment in interface TableColumn<V,T>public void setAlignment(com.github.bordertech.wcomponents.WTableColumn.Alignment align)
align - the column alignmentCopyright © 2018. All rights reserved.