|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tirsen.angkor.Component | +--com.tirsen.angkor.widget.Container | +--com.tirsen.angkor.table.Table
The table should support the following features: Implemented ones:
Field Summary |
Fields inherited from class com.tirsen.angkor.widget.Container |
children |
Constructor Summary | |
Table()
|
|
Table(boolean readOnly)
|
Method Summary | |
void |
addTableColumn(int index,
TableColumn column)
Insert a new column at the specified index. |
void |
addTableColumn(TableColumn column)
Add a new column at the end. |
protected TableModel |
createDefaultTableModel()
|
ValueModel |
getCellModel(int row,
int column)
|
View |
getCellView(int row,
int column)
|
java.util.List |
getChildren()
|
int |
getColumnCount()
Returns the number of columns table. |
java.lang.String |
getColumnName(int column)
|
int |
getEndRow()
|
int |
getRowCount()
|
java.util.List |
getRowViews(int row)
|
int |
getStartRow()
|
TableModel |
getTableModel()
|
TableCellViewFactory |
getViewFactory()
|
void |
render(RenderContext context)
Render this view on the given context if the view is visible. |
void |
resetCreatedViews()
Call this method when we have a suspicion that cell-views will need to be recreated. |
void |
scrollBackward()
|
void |
scrollForward()
|
void |
scrollToStart()
|
void |
setColumnCellViewFactory(int column,
TableCellViewFactory columnFactory)
|
void |
setModel(TableModel model)
|
void |
setNumberOfScrollRows(int numberOfRows)
Sets the maximum number of rows for scrolling. |
void |
setRange(int start,
int end)
If any number is set to a negative number it is subtracted from the number of rows. |
void |
setReadOnly(boolean readOnly)
|
void |
setTableCellViewFactory(TableCellViewFactory viewFactory)
|
Methods inherited from class com.tirsen.angkor.widget.Container |
add, add, createChildren, getNumberOfChildren, isChildrenCreated, iterateAllElements, iterateCollection, maybeCreateChildren, parse, remove, renderChildren |
Methods inherited from class com.tirsen.angkor.Component |
allocateUniqueId, getAttribute, getContainer, getId, getRenderContext, getVisibleIndex, isDebugTables, isParsing, isVisible, setAttribute, setContainer, setId, setVisible, uniqueId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Table()
public Table(boolean readOnly)
Method Detail |
public void setModel(TableModel model)
public java.util.List getRowViews(int row)
public void setReadOnly(boolean readOnly)
public View getCellView(int row, int column)
public ValueModel getCellModel(int row, int column)
public void resetCreatedViews()
public java.util.List getChildren()
getChildren
in class Container
public TableCellViewFactory getViewFactory()
public void setTableCellViewFactory(TableCellViewFactory viewFactory)
public int getRowCount()
public int getColumnCount()
public TableModel getTableModel()
protected TableModel createDefaultTableModel()
public java.lang.String getColumnName(int column)
public void setRange(int start, int end)
public void addTableColumn(int index, TableColumn column)
public void addTableColumn(TableColumn column)
public void setColumnCellViewFactory(int column, TableCellViewFactory columnFactory)
public int getStartRow()
public int getEndRow()
public void scrollToStart()
public void scrollForward()
public void scrollBackward()
public void setNumberOfScrollRows(int numberOfRows)
public void render(RenderContext context) throws java.io.IOException
View
java.io.IOException
View.setVisible(boolean)
,
View.isVisible()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |