|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tonbeller.wcf.component.ComponentSupport
com.tonbeller.wcf.component.NestableComponentSupport
com.tonbeller.wcf.table.TableComponent
The main class for the table.
| Field Summary |
| Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable |
EXTENSIONAL, INTENSIONAL |
| Constructor Summary | |
TableComponent(java.lang.String id,
Component parent)
creates a Table component that is initially hidden. |
|
TableComponent(java.lang.String id,
Component parent,
TableModel model)
|
|
| Method Summary | |
java.lang.String |
getBorder()
gets the border attribute of the generated table. |
int |
getCurrentPage()
|
TableModel |
getModel()
the underlying data model w/o sort/paging decorators |
int |
getPageCount()
|
int |
getPageSize()
|
java.lang.String |
getRenderId()
gets the renderId attribute of the generated table. |
com.tonbeller.wcf.table.RowComparator |
getRowComparator()
|
SelectionModel |
getSelectionModel()
the current selection |
TableColumn |
getTableColumn(int columnIndex)
column metadata |
TableColumn[] |
getTableColumns()
|
java.lang.String |
getTd()
|
java.lang.String |
getTh()
|
java.lang.String |
getTr()
|
void |
initialize(RequestContext context)
initializes the component. |
boolean |
isClosable()
shall this table have a close button? |
boolean |
isColHeaders()
|
boolean |
isPageable()
allows to enable/disable paging of rows |
boolean |
isReadOnly()
user may view data but not change the selection |
boolean |
isSortable()
allows to enable/disable sorting of columns |
org.w3c.dom.Element |
render(RequestContext context,
org.w3c.dom.Document factory)
returns an Element with ownerDocument == factory. |
void |
setBorder(java.lang.String border)
sets the border attribute of the generated table. |
void |
setClosable(boolean b)
shall this table have a close button? |
void |
setColHeaders(boolean title)
|
void |
setCurrentPage(int newCurrentPage)
|
void |
setError(java.lang.String message)
sets the error message to display |
void |
setModel(TableModel newModel)
set the data model and initializes everything |
void |
setPageable(boolean newPageable)
allows to enable/disable paging of rows |
void |
setPageSize(int newPageSize)
|
void |
setReadOnly(boolean readOnly)
user may view data but not change the selection |
void |
setRenderId(java.lang.String renderId)
sets the renderId attribute of the generated table. |
void |
setSelectionModel(SelectionModel selectionModel)
the current selection |
void |
setSortable(boolean newSortable)
allows to enable/disable sorting of columns |
void |
setSortColumnIndex(int index)
set the current sort column |
void |
setTableColumn(int columnIndex,
TableColumn tableColumn)
column metadata |
void |
setTd(java.lang.String newTd)
|
void |
setTh(java.lang.String newTh)
|
void |
setTr(java.lang.String newTr)
|
void |
setWidth(java.lang.String width)
sets the width attribute of the generated table. |
| Methods inherited from class com.tonbeller.wcf.component.NestableComponentSupport |
render |
| Methods inherited from class com.tonbeller.wcf.component.ComponentSupport |
addFormListener, destroy, getBookmarkState, getDispatcher, getForm, getId, getLocale, getNextView, getParent, getRoleExpr, isAutoValidate, isListeningTo, isVisible, removeFormListener, request, revert, setAutoValidate, setBookmarkState, setId, setNextView, setParent, setRoleExpr, setVisible, validate, valueBound, valueUnbound |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.tonbeller.wcf.component.Component |
getParent, isListeningTo, setNextView |
| Methods inherited from interface com.tonbeller.wcf.controller.RequestListener |
request |
| Methods inherited from interface com.tonbeller.wcf.component.Renderable |
render |
| Methods inherited from interface com.tonbeller.wcf.component.FormListener |
revert, validate |
| Methods inherited from interface com.tonbeller.wcf.component.Visible |
isVisible, setVisible |
| Methods inherited from interface com.tonbeller.wcf.component.LifeCycle |
destroy |
| Constructor Detail |
public TableComponent(java.lang.String id,
Component parent,
TableModel model)
public TableComponent(java.lang.String id,
Component parent)
id - - id of session attributesetModel(com.tonbeller.wcf.table.TableModel)| Method Detail |
public void initialize(RequestContext context)
throws java.lang.Exception
LifeCycle
initialize in interface LifeCycleinitialize in class ComponentSupportjava.lang.ExceptionComponentSupport.destroy(javax.servlet.http.HttpSession),
ComponentSupport.valueBound(javax.servlet.http.HttpSessionBindingEvent),
ComponentTag.doEndTag()public TableColumn getTableColumn(int columnIndex)
public void setTableColumn(int columnIndex,
TableColumn tableColumn)
public void setModel(TableModel newModel)
setModel in interface ITableComponentpublic TableModel getModel()
getModel in interface ITableComponentpublic void setSelectionModel(SelectionModel selectionModel)
setSelectionModel in interface ITableComponentpublic SelectionModel getSelectionModel()
getSelectionModel in interface ITableComponentpublic void setSortable(boolean newSortable)
setSortable in interface ITableComponentpublic boolean isSortable()
isSortable in interface ITableComponentpublic void setPageable(boolean newPageable)
setPageable in interface ITableComponentpublic boolean isPageable()
isPageable in interface ITableComponentpublic void setSortColumnIndex(int index)
setSortColumnIndex in interface ITableComponentpublic com.tonbeller.wcf.table.RowComparator getRowComparator()
getRowComparator in interface ITableComponentpublic int getPageSize()
getPageSize in interface ITableComponentpublic void setPageSize(int newPageSize)
setPageSize in interface ITableComponentpublic int getCurrentPage()
getCurrentPage in interface ITableComponentpublic void setCurrentPage(int newCurrentPage)
setCurrentPage in interface ITableComponentpublic int getPageCount()
getPageCount in interface ITableComponent
public org.w3c.dom.Element render(RequestContext context,
org.w3c.dom.Document factory)
throws java.lang.Exception
NestableComponentfactory.
render in interface NestableComponentjava.lang.Exceptionpublic boolean isClosable()
isClosable in interface ITableComponentpublic void setClosable(boolean b)
setClosable in interface ITableComponentpublic java.lang.String getBorder()
getBorder in interface ITableComponentpublic void setBorder(java.lang.String border)
setBorder in interface ITableComponentborder - the border attribute or null to use the stylesheet parameterpublic void setWidth(java.lang.String width)
public void setRenderId(java.lang.String renderId)
setRenderId in interface ITableComponentrenderId - the renderId attribute or null to use the stylesheet parameterpublic java.lang.String getRenderId()
getRenderId in interface ITableComponentpublic void setTr(java.lang.String newTr)
public java.lang.String getTr()
public void setTd(java.lang.String newTd)
public java.lang.String getTd()
public void setTh(java.lang.String newTh)
public java.lang.String getTh()
public TableColumn[] getTableColumns()
public void setError(java.lang.String message)
setError in interface ITableComponentmessage - the message to display or null to remove a previous error messagepublic boolean isColHeaders()
public void setColHeaders(boolean title)
public boolean isReadOnly()
ITableComponent
isReadOnly in interface ITableComponentpublic void setReadOnly(boolean readOnly)
ITableComponent
setReadOnly in interface ITableComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||