|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.westofj.wui.table.WTableColumn
Specifies a column within a column model.
Constructor Summary | |
WTableColumn(int columnIndex)
Constructs a column specification with the specified index. |
Method Summary | |
int |
getColumnIndex()
Returns the index into the WTableModel . |
WDisplayable |
getHeader()
Returns the header of the column. |
String |
getHeader(WRunner runner)
Returns the header of the column. |
Object |
getIdentifier()
Returns the user assigned identifier of the column specification. |
WTableCellRenderer |
getRenderer()
Returns the renderer that will render the data for this column. |
int |
getWidth()
|
boolean |
isSelectable()
Returns true if this column is selectable,false otherwise. |
void |
setHeader(String header)
Sets the text of the column header. |
void |
setHeader(WDisplayable header)
Sets the text of the column header. |
void |
setIdentifier(Object identifier)
Sets the user assigned identifier of the column. |
void |
setRenderer(WTableCellRenderer renderer)
Sets the renderer for the column data. |
void |
setSelectable(boolean isSelectable)
Sets if the column is selectable. |
void |
setWidth(int i)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WTableColumn(int columnIndex)
WTableModel
which contains the tables data.
columnIndex
- the index of the data.Method Detail |
public int getColumnIndex()
WTableModel
.
WTableModel
.public WDisplayable getHeader()
public String getHeader(WRunner runner)
runner
- the current runner context.
public Object getIdentifier()
public WTableCellRenderer getRenderer()
public boolean isSelectable()
public void setSelectable(boolean isSelectable)
isSelectable
- true indicates the column is selectable, false otherwise.public void setHeader(String header)
header
- the text of the column header.public void setHeader(WDisplayable header)
header
- the text of the column header.public void setIdentifier(Object identifier)
identifier
- the user assigned identifier of the column.public void setRenderer(WTableCellRenderer renderer)
renderer
- the renderer for the column data.public int getWidth()
public void setWidth(int i)
i
-
|
Copyright (c) 2003 West of J - All rights reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |