|
||||||||||
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.table.EditableTableComponent
a component that combines a table and its property form in a single component. The user may switch between them via the edit button.
Field Summary |
Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable |
EXTENSIONAL, INTENSIONAL |
Constructor Summary | |
EditableTableComponent(java.lang.String id,
Component parent,
TableComponent tableComp,
TablePropertiesFormComponent formComp)
creates an editable table component. |
Method Summary | |
void |
destroy(javax.servlet.http.HttpSession session)
finalizes the component. |
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 |
TableComponent |
getTableComp()
|
void |
initialize(RequestContext context)
initializes the component. |
static EditableTableComponent |
instance(RequestContext context,
java.lang.String id,
TableComponent table)
|
boolean |
isClosable()
shall this table have a close button? |
boolean |
isEditable()
|
boolean |
isEditFormVisible()
|
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 |
boolean |
isVisible()
true, if this component should be rendered |
org.w3c.dom.Document |
render(RequestContext context)
renders the component |
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 |
setCurrentPage(int newCurrentPage)
|
void |
setEditable(boolean b)
|
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 |
setVisible(boolean b)
true, if this component should be rendered |
Methods inherited from class com.tonbeller.wcf.component.ComponentSupport |
addFormListener, getBookmarkState, getDispatcher, getForm, getId, getLocale, getNextView, getParent, getRoleExpr, isAutoValidate, isListeningTo, removeFormListener, request, revert, setAutoValidate, setBookmarkState, setId, setNextView, setParent, setRoleExpr, 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.FormListener |
revert, validate |
Constructor Detail |
public EditableTableComponent(java.lang.String id, Component parent, TableComponent tableComp, TablePropertiesFormComponent formComp)
id
- tableComp
- formComp
- - form for editing the table propertiesMethod Detail |
public static EditableTableComponent instance(RequestContext context, java.lang.String id, TableComponent table)
public void initialize(RequestContext context) throws java.lang.Exception
LifeCycle
initialize
in interface LifeCycle
initialize
in class ComponentSupport
java.lang.Exception
ComponentSupport.destroy(javax.servlet.http.HttpSession)
,
ComponentSupport.valueBound(javax.servlet.http.HttpSessionBindingEvent)
,
ComponentTag.doEndTag()
public void destroy(javax.servlet.http.HttpSession session) throws java.lang.Exception
LifeCycle
destroy
in interface LifeCycle
destroy
in class ComponentSupport
java.lang.Exception
ComponentSupport.initialize(com.tonbeller.wcf.controller.RequestContext)
,
ComponentSupport.valueUnbound(javax.servlet.http.HttpSessionBindingEvent)
public org.w3c.dom.Document render(RequestContext context) throws java.lang.Exception
Renderable
render
in interface Renderable
java.lang.Exception
public boolean isVisible()
ComponentSupport
isVisible
in interface Visible
isVisible
in class ComponentSupport
public void setVisible(boolean b)
ComponentSupport
setVisible
in interface Visible
setVisible
in class ComponentSupport
b
- public boolean isEditable()
public void setEditable(boolean b)
public boolean isEditFormVisible()
public java.lang.String getBorder()
ITableComponent
getBorder
in interface ITableComponent
public int getCurrentPage()
getCurrentPage
in interface ITableComponent
public TableModel getModel()
ITableComponent
getModel
in interface ITableComponent
public int getPageCount()
getPageCount
in interface ITableComponent
public int getPageSize()
getPageSize
in interface ITableComponent
public java.lang.String getRenderId()
ITableComponent
getRenderId
in interface ITableComponent
public com.tonbeller.wcf.table.RowComparator getRowComparator()
getRowComparator
in interface ITableComponent
public SelectionModel getSelectionModel()
ITableComponent
getSelectionModel
in interface ITableComponent
public boolean isClosable()
ITableComponent
isClosable
in interface ITableComponent
public boolean isPageable()
ITableComponent
isPageable
in interface ITableComponent
public boolean isSortable()
ITableComponent
isSortable
in interface ITableComponent
public void setBorder(java.lang.String border)
ITableComponent
setBorder
in interface ITableComponent
border
- public void setClosable(boolean b)
ITableComponent
setClosable
in interface ITableComponent
b
- public void setCurrentPage(int newCurrentPage)
setCurrentPage
in interface ITableComponent
newCurrentPage
- public void setError(java.lang.String message)
ITableComponent
setError
in interface ITableComponent
message
- public void setModel(TableModel newModel)
ITableComponent
setModel
in interface ITableComponent
newModel
- public void setPageable(boolean newPageable)
ITableComponent
setPageable
in interface ITableComponent
newPageable
- public void setPageSize(int newPageSize)
setPageSize
in interface ITableComponent
newPageSize
- public void setRenderId(java.lang.String renderId)
ITableComponent
setRenderId
in interface ITableComponent
renderId
- public void setSelectionModel(SelectionModel selectionModel)
ITableComponent
setSelectionModel
in interface ITableComponent
selectionModel
- public void setSortable(boolean newSortable)
ITableComponent
setSortable
in interface ITableComponent
newSortable
- public void setSortColumnIndex(int index)
ITableComponent
setSortColumnIndex
in interface ITableComponent
index
- public TableComponent getTableComp()
public boolean isReadOnly()
ITableComponent
isReadOnly
in interface ITableComponent
public 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 |