|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.BaseComponent
org.trails.component.TrailsComponent
org.trails.component.ClassDescriptorComponent
org.trails.component.ObjectTable
@ComponentClass(allowBody=true,
allowInformalParameters=true)
public abstract class ObjectTableProduces a table for the list of instances
| Field Summary | |
|---|---|
protected java.util.List<org.apache.tapestry.contrib.table.model.ITableColumn> |
columns
|
static java.lang.String |
LINK_COLUMN
|
| Fields inherited from class org.trails.component.TrailsComponent |
|---|
DEFAULT |
| Fields inherited from class org.apache.tapestry.AbstractComponent |
|---|
_body, _bodyCount |
| Constructor Summary | |
|---|---|
ObjectTable()
|
|
| Method Summary | |
|---|---|
protected void |
alterTableColumn(IPropertyDescriptor descriptor,
TrailsTableColumn tableColumn)
Hook method to allow subclasses to modify the tableColumn, |
protected org.apache.tapestry.contrib.table.model.ITableColumnModel |
generateTableColumnModel(java.lang.String strDesc)
Generate a table column model out of the description string provided. |
abstract org.apache.tapestry.IAsset |
getArrowDownAsset()
The image to use to describe a column sorted in a descending order. |
abstract org.apache.tapestry.IAsset |
getArrowUpAsset()
The image to use to describe a column sorted in an ascending order. |
abstract org.apache.tapestry.contrib.table.model.ITableColumn |
getColumn()
The object representing the current column being rendered. |
java.util.List<org.apache.tapestry.contrib.table.model.ITableColumn> |
getColumns()
|
abstract java.util.List<org.apache.tapestry.contrib.table.model.ITableColumn> |
getColumnsCache()
|
abstract java.lang.String |
getColumnsClass()
The CSS class of the table columns. |
abstract org.apache.tapestry.services.ExpressionEvaluator |
getEvaluator()
|
abstract java.lang.Object |
getExtraColumns()
This parameter provides a new set of columns to be displayed after the ones provided by the IClassDescriptor or EditProperties parameters. |
protected IPropertyDescriptor |
getFirstDisplayableProperty()
Returns the first displayable property. |
java.lang.String |
getIdentifierProperty()
|
protected IPropertyDescriptor |
getIdentifierPropertyDescriptor()
|
abstract int |
getIndex()
If provided, the parameter is updated with the index of the loop on each iteration. |
abstract java.lang.String |
getInitialSortColumn()
The id of the column to initially sort the table by. |
abstract boolean |
getInitialSortOrder()
The order of the initial sorting. |
abstract java.util.List |
getInstances()
The data to be displayed by the component. |
java.lang.String |
getLinkProperty()
Returns the name of the property to be used as link to the editor. |
abstract java.lang.Object |
getObject()
If provided, the parameter is updated with the current row being rendered. |
abstract java.lang.Object |
getObjectParameter()
Returns the currently rendered table row. |
abstract int |
getPageSize()
The number of records displayed per page. |
abstract java.lang.String |
getPersist()
Defines how the table state (paging and sorting) will be persisted if no tableSessionStoreManager is defined. |
abstract PersistenceService |
getPersistenceService()
|
abstract java.lang.String |
getRowsClass()
The CSS class of the table rows. |
java.lang.Object |
getSource()
It provides the source parameter to the inner [table ] |
protected org.apache.tapestry.contrib.table.model.ITableColumnModel |
getTableColumnModel()
Returns the table column model as specified by the 'columns' binding. |
protected org.apache.tapestry.contrib.table.components.TableView |
getTableViewComponent()
|
abstract boolean |
isCacheDisabled()
|
abstract boolean |
isShowCollections()
|
void |
pageBeginRender(org.apache.tapestry.event.PageEvent event)
|
protected void |
prepareForRender(org.apache.tapestry.IRequestCycle cycle)
|
abstract void |
setColumnsCache(java.util.List<org.apache.tapestry.contrib.table.model.ITableColumn> columns)
|
abstract void |
setExtraColumns(java.lang.Object o)
|
abstract void |
setInstances(java.util.List instances)
|
abstract void |
setObjectParameter(java.lang.Object object)
|
abstract void |
setShowCollections(boolean ShowCollections)
|
protected boolean |
shouldDisplay(IPropertyDescriptor descriptor)
Hook method to allow subclasses to modify when an IPropertyDescriptor should be displayed. |
| Methods inherited from class org.trails.component.ClassDescriptorComponent |
|---|
getBlock, getClassDescriptor, getPropertyDescriptors, getPropertyNames, hasBlock |
| Methods inherited from class org.trails.component.TrailsComponent |
|---|
getMessage, getResourceBundleMessageSource |
| Methods inherited from class org.apache.tapestry.BaseComponent |
|---|
addOuter, finishLoad, getContainedRenderers, getInnerRenderers, renderComponent |
| Methods inherited from class org.apache.tapestry.AbstractComponent |
|---|
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, peekClientId, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent |
| Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
|---|
getLocation, setLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.tapestry.IComponent |
|---|
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName |
| Methods inherited from interface org.apache.tapestry.IRender |
|---|
render |
| Methods inherited from interface org.apache.hivemind.LocationHolder |
|---|
setLocation |
| Methods inherited from interface org.apache.hivemind.Locatable |
|---|
getLocation |
| Field Detail |
|---|
public static final java.lang.String LINK_COLUMN
protected java.util.List<org.apache.tapestry.contrib.table.model.ITableColumn> columns
| Constructor Detail |
|---|
public ObjectTable()
| Method Detail |
|---|
@Parameter(defaultValue="ognl:@java.lang.System@getProperty(\'org.apache.tapestry.disable-caching\')") public abstract boolean isCacheDisabled()
@Parameter(required=false,
defaultValue="false",
cache=true)
public abstract boolean isShowCollections()
public abstract void setShowCollections(boolean ShowCollections)
@InjectObject(value="service:trails.core.PersistenceService") public abstract PersistenceService getPersistenceService()
@Parameter public abstract java.util.List getInstances()
public abstract void setInstances(java.util.List instances)
@Parameter(cache=false,
defaultValue="objectParameter")
public abstract java.lang.Object getObject()
public abstract java.lang.Object getObjectParameter()
public abstract void setObjectParameter(java.lang.Object object)
@Parameter(cache=false) public abstract org.apache.tapestry.contrib.table.model.ITableColumn getColumn()
@Parameter(cache=false) public abstract java.lang.String getRowsClass()
@Parameter(cache=false) public abstract java.lang.String getColumnsClass()
@Parameter(cache=false,
defaultValue="10")
public abstract int getPageSize()
@Parameter public abstract int getIndex()
@Parameter public abstract java.lang.String getInitialSortColumn()
@Parameter(defaultValue="false") public abstract boolean getInitialSortOrder()
@Parameter(defaultValue="literal:session") public abstract java.lang.String getPersist()
@Parameter public abstract org.apache.tapestry.IAsset getArrowDownAsset()
@Parameter public abstract org.apache.tapestry.IAsset getArrowUpAsset()
public java.util.List<org.apache.tapestry.contrib.table.model.ITableColumn> getColumns()
@Persist public abstract java.util.List<org.apache.tapestry.contrib.table.model.ITableColumn> getColumnsCache()
public abstract void setColumnsCache(java.util.List<org.apache.tapestry.contrib.table.model.ITableColumn> columns)
@Parameter public abstract java.lang.Object getExtraColumns()
public abstract void setExtraColumns(java.lang.Object o)
@InjectObject(value="service:tapestry.ognl.ExpressionEvaluator") public abstract org.apache.tapestry.services.ExpressionEvaluator getEvaluator()
protected void prepareForRender(org.apache.tapestry.IRequestCycle cycle)
prepareForRender in class org.apache.tapestry.AbstractComponentpublic void pageBeginRender(org.apache.tapestry.event.PageEvent event)
pageBeginRender in interface org.apache.tapestry.event.PageBeginRenderListener
protected void alterTableColumn(IPropertyDescriptor descriptor,
TrailsTableColumn tableColumn)
descriptor - tableColumn - protected boolean shouldDisplay(IPropertyDescriptor descriptor)
ClassDescriptorComponent
shouldDisplay in class ClassDescriptorComponentpublic java.lang.String getIdentifierProperty()
public java.lang.String getLinkProperty()
protected IPropertyDescriptor getFirstDisplayableProperty()
protected IPropertyDescriptor getIdentifierPropertyDescriptor()
public java.lang.Object getSource()
protected org.apache.tapestry.contrib.table.model.ITableColumnModel getTableColumnModel()
protected org.apache.tapestry.contrib.table.model.ITableColumnModel generateTableColumnModel(java.lang.String strDesc)
strDesc - the description of the column model to be generated
protected org.apache.tapestry.contrib.table.components.TableView getTableViewComponent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||