|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.platform.AbstractDepictor<C>
com.guiseframework.platform.AbstractComponentDepictor<C>
com.guiseframework.platform.web.AbstractWebComponentDepictor<C>
com.guiseframework.platform.web.WebTableDepictor<C>
C - The type of component being depicted.public class WebTableDepictor<C extends Table>
Strategy for rendering a table component as an XHTML <table> element.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.guiseframework.platform.AbstractComponentDepictor |
|---|
AbstractComponentDepictor.DepictedCompositeComponentListener |
| Nested classes/interfaces inherited from class com.guiseframework.platform.AbstractDepictor |
|---|
AbstractDepictor.DepictedPropertyChangeListener |
| Field Summary |
|---|
| Fields inherited from class com.guiseframework.platform.web.AbstractWebComponentDepictor |
|---|
BODY_END_PATTERN, BODY_START_PATTERN |
| Fields inherited from class com.guiseframework.platform.AbstractComponentDepictor |
|---|
childPropertyChangeListener |
| Fields inherited from interface com.guiseframework.platform.Depictor |
|---|
GENERAL_PROPERTY |
| Constructor Summary | |
|---|---|
WebTableDepictor()
Default constructor using the XHTML <table> element. |
|
| Method Summary | ||
|---|---|---|
protected void |
depictBegin()
Begins the rendering process. |
|
protected void |
depictBody()
Renders the body of the component. |
|
protected void |
depictChildren()
Updates the views of any children. |
|
protected void |
depictEnd()
Ends the rendering process. |
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getLabelStyles(LabelModel labelModel,
PresentationModel uiModel)
Retrieves the styles for the label of the component. |
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getOuterStyles()
Retrieves the styles for the outer element of the component. |
|
protected
|
updateCellView(TableModel tableModel,
int rowIndex,
TableColumnModel<T> column)
Updates the view of a column. |
|
protected
|
updateHeaderView(TableModel tableModel,
TableColumnModel<T> column)
Updates the view of a column header. |
|
| Methods inherited from class com.guiseframework.platform.AbstractComponentDepictor |
|---|
depictChild, depictedObjectPropertyChange, getDepictedCompositeComponentListener, getErrorMessage, installed, processEvent, uninstalled |
| Methods inherited from class com.guiseframework.platform.AbstractDepictor |
|---|
getDepictedObject, getDepictedPropertyChangeListener, getIgnoredProperties, getModifiedProperties, getSession, isDepicted, setDepicted, setPropertyModified |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.guiseframework.platform.Depictor |
|---|
getDepictedObject, getSession, installed, isDepicted, processEvent, setDepicted, uninstalled |
| Constructor Detail |
|---|
public WebTableDepictor()
<table> element.
| Method Detail |
|---|
protected java.util.Map<java.lang.String,java.lang.Object> getOuterStyles()
getOuterStyles in class AbstractWebComponentDepictor<C extends Table>AbstractWebComponentDepictor.getBodyStyles()
protected void depictBegin()
throws java.io.IOException
depictBegin in class AbstractWebComponentDepictor<C extends Table>java.io.IOException - if there is an error rendering the component.
protected void depictBody()
throws java.io.IOException
depictBody in class AbstractWebComponentDepictor<C extends Table>java.io.IOException - if there is an error rendering the component.AbstractComponentDepictor.depictChildren()
protected void depictChildren()
throws java.io.IOException
depictChildren in class AbstractComponentDepictor<C extends Table>java.io.IOException - if there is an error updating the child views.DepictContext.State#UPDATE_VIEW
protected <T> void updateHeaderView(TableModel tableModel,
TableColumnModel<T> column)
throws java.io.IOException
T - The type of value contained in the cells of the column.tableModel - The component model.column - The cell column.
java.io.IOException - if there is an error updating the cell view.
protected java.util.Map<java.lang.String,java.lang.Object> getLabelStyles(LabelModel labelModel,
PresentationModel uiModel)
getLabelStyles in class AbstractWebComponentDepictor<C extends Table>labelModel - The label model containing the label content.uiModel - The model containing the label style information.
protected <T> void updateCellView(TableModel tableModel,
int rowIndex,
TableColumnModel<T> column)
throws java.io.IOException
T - The type of value contained in the cells of the column.tableModel - The component model.rowIndex - The zero-based cell row index.column - The cell column.
java.io.IOException - if there is an error updating the cell view.
protected void depictEnd()
throws java.io.IOException
depictEnd in class AbstractWebComponentDepictor<C extends Table>java.io.IOException - if there is an error rendering the component.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||