|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.westofj.wui.Widget org.westofj.wui.table.WTable
Constructor Summary | |
WTable(WTableModel dm,
Object[] columnNames)
Constructs a table widget with the specified data model and column names. |
|
WTable(WTableModel dm,
Object[] columnNames,
boolean lineNumbers)
|
|
WTable(WTableModel dm,
WTableColumnModel cm)
|
Method Summary | |
void |
addColumnSelection(int column)
|
void |
addRowSelection(int row)
|
void |
addSelectionListener(WTableSelectionListener l)
Adds a selection listener to the tables list of selection listener. |
void |
clearColumnSelection()
|
void |
clearRowSelection()
|
WTableColumnModel |
getColumnModel()
|
WTableSelectionMode |
getColumnSelectionMode()
|
static String |
getDisplayValue(WRunner runner,
WTableModel tm,
int row,
WTableColumn column)
|
WTableSelectionMode |
getRowSelectionMode()
|
WTableModel |
getTableModel()
|
boolean |
hasSelectionListeners()
Returns true if the list has a change listener, false otherwise. |
boolean |
isSelectedColumn(int column)
Returns true if the specified row is selected, false othewise. |
boolean |
isSelectedRow(int row)
Returns true if the specified row is selected, false othewise. |
void |
removeColumnSelection(int column)
|
void |
removeRowSelection(int row)
|
void |
removeSelectionListener(WTableSelectionListener l)
Removes the specified selection listener from the tables list of selection listeners. |
void |
render(WRunner runner,
WRenderContext context,
PrintWriter pw)
Renders the widget to the display. |
void |
setColumnModel(WTableColumnModel model)
|
void |
setColumnSelectionMode(WTableSelectionMode mode)
|
void |
setLayout(WTableLayout layout)
|
void |
setRowSelection(Set indices)
|
void |
setRowSelectionMode(WTableSelectionMode mode)
|
void |
setTableModel(WTableModel model)
|
Methods inherited from class org.westofj.wui.Widget |
addChangeListener, getRunner, handleNoParams, handleParams, hasChangeListeners, removeChangeListener, stateChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WTable(WTableModel dm, WTableColumnModel cm)
public WTable(WTableModel dm, Object[] columnNames)
dm
- the model containing the data to display.columnNames
- the headers of the columns.public WTable(WTableModel dm, Object[] columnNames, boolean lineNumbers)
Method Detail |
public void render(WRunner runner, WRenderContext context, PrintWriter pw) throws WRenderException
Widget
render
in class Widget
runner
- the current runner context.pw
- the output for the display.
WRenderException
public void setLayout(WTableLayout layout)
public WTableColumnModel getColumnModel()
public WTableModel getTableModel()
public void setColumnModel(WTableColumnModel model)
model
- public void setTableModel(WTableModel model)
model
- public boolean isSelectedColumn(int column)
public boolean isSelectedRow(int row)
row
- the row to check.
public WTableSelectionMode getColumnSelectionMode()
public WTableSelectionMode getRowSelectionMode()
public void setColumnSelectionMode(WTableSelectionMode mode)
mode
- public void setRowSelectionMode(WTableSelectionMode mode)
mode
- public void clearColumnSelection()
public void clearRowSelection()
public void addColumnSelection(int column)
public void addRowSelection(int row)
public void setRowSelection(Set indices)
public void removeColumnSelection(int column)
public void removeRowSelection(int row)
public void addSelectionListener(WTableSelectionListener l)
l
- the selection listener to add.public void removeSelectionListener(WTableSelectionListener l)
l
- the selection listener to remove.public boolean hasSelectionListeners()
public static String getDisplayValue(WRunner runner, WTableModel tm, int row, WTableColumn column)
|
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 |