|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.TextStylable
com.arsdigita.bebop.BlockStylable
com.arsdigita.bebop.Table
com.arsdigita.toolbox.ui.DataTable
com.arsdigita.cms.ui.templates.TemplatesListing
com.arsdigita.cms.ui.templates.CategoryTemplates.AvailableTemplatesListing
Displays a list of templates for the given content item in the given context, along with a link to select a template
Nested Class Summary | |
protected class |
CategoryTemplates.AvailableTemplatesListing.AssignCellRenderer
Render the "assign" link |
protected static class |
TemplatesListing.AbstractQueryBuilder
Builds up a DataQuery from the collection |
protected static class |
TemplatesListing.TemplateNameCellRenderer
Renders the name of the template as a link |
Nested classes inherited from class com.arsdigita.toolbox.ui.DataTable |
com.arsdigita.toolbox.ui.DataTable.DataBuilderAdapter, com.arsdigita.toolbox.ui.DataTable.DataQueryTableModel, com.arsdigita.toolbox.ui.DataTable.DataTableColumnModel, com.arsdigita.toolbox.ui.DataTable.GlobalizedHeaderCellRenderer, com.arsdigita.toolbox.ui.DataTable.SortableTableColumn |
Nested classes inherited from class com.arsdigita.bebop.Table |
com.arsdigita.bebop.Table.MatrixTableModelBuilder |
Field Summary |
Fields inherited from class com.arsdigita.toolbox.ui.DataTable |
ASCENDING, DESCENDING, DIRECTION, ORDER, versionId |
Fields inherited from class com.arsdigita.bebop.Table |
CELL_EVENT, EMPTY_MODEL, SEP |
Fields inherited from class com.arsdigita.bebop.BlockStylable |
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP |
Fields inherited from class com.arsdigita.bebop.SimpleComponent |
m_attr |
Fields inherited from interface com.arsdigita.bebop.util.BebopConstants |
BEBOP_BORDER, BEBOP_BOXPANEL, BEBOP_CELL, BEBOP_CHECKBOX, BEBOP_CHECKBOXGROUP, BEBOP_COLUMNPANEL, BEBOP_DATE, BEBOP_DATETIME, BEBOP_DHTMLEDITOR, BEBOP_FORMERRORS, BEBOP_FORMWIDGET, BEBOP_GRIDPANEL, BEBOP_LIST, BEBOP_MULTISELECT, BEBOP_OPTION, BEBOP_PAD, BEBOP_PADFRAME, BEBOP_PANELROW, BEBOP_PORTAL, BEBOP_PORTLET, BEBOP_RADIO, BEBOP_RADIOGROUP, BEBOP_SEG_BODY, BEBOP_SEG_HEADER, BEBOP_SEG_PANEL, BEBOP_SEGMENT, BEBOP_SELECT, BEBOP_TABLE, BEBOP_TABLEBODY, BEBOP_TABLEROW, BEBOP_TEXTAREA |
Fields inherited from interface com.arsdigita.bebop.Component |
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE |
Constructor Summary | |
CategoryTemplates.AvailableTemplatesListing(CategoryRequestLocal category,
com.arsdigita.kernel.ui.ACSObjectSelectionModel type,
com.arsdigita.bebop.SingleSelectionModel context)
Construct a new AvailableTemplatesListing |
Method Summary | |
protected void |
addRemoveColumn()
Append a "remove" column to this table. |
void |
assignTemplate(com.arsdigita.bebop.PageState s,
Template t)
Assign a template to the current item |
protected ContentType |
getContentType(com.arsdigita.bebop.PageState s)
Get the currently selected use context |
protected com.arsdigita.kernel.ui.ACSObjectSelectionModel |
getMappingModel()
Return the ACSObjectSelectionModel used to select the
current mapping |
com.arsdigita.bebop.table.TableColumn |
getRemoveColumn()
Return the TableColumn which will contain the
"remove" link. |
protected TemplateCollection |
getTemplateCollection(com.arsdigita.bebop.PageState s)
Get all the templates for the given type in the current section |
protected void |
removeTemplate(com.arsdigita.bebop.PageState s,
TemplateMapping mapping)
Child classes should override this method in order to handle the "Remove" link |
Methods inherited from class com.arsdigita.toolbox.ui.DataTable |
addColumn, addColumn, addColumn, addColumn, addColumn, addQueryListener, fireQueryPending, generateExtraXMLAttributes, getDataQuery, getDataQueryBuilder, getDefaultOrder, getOrder, getOrderDirection, getOrderSelectionModel, getPaginator, getQuerySizeLocal, getResourceBundle, getTotalSize, globalize, lock, register, removeQueryListener, setDataQueryBuilder, setDefaultOrder, setOrder, setOrderDirection, setOrderSelectionModel, setPaginator, setResourceBundle, toggleOrderDirection |
Methods inherited from class com.arsdigita.bebop.Table |
addTableActionListener, children, clearSelection, createTableActionListener, fireCellSelected, fireHeadSelected, generateXML, getBorder, getCellPadding, getCellSpacing, getColumn, getColumnModel, getColumnSelectionModel, getControler, getDefaultCellRenderer, getEmptyView, getHeader, getModelBuilder, getRowSelectionModel, getStriped, getTableModel, getWidth, isSelectedCell, isSelectedColumn, isSelectedRow, removeTableActionListener, respond, setBorder, setCellPadding, setCellSpacing, setColumn, setColumnModel, setColumnSelectionModel, setDefaultCellRenderer, setEmptyView, setHeader, setModelBuilder, setRowSelectionModel, setStriped, setWidth |
Methods inherited from class com.arsdigita.bebop.BlockStylable |
setBorder, setBorder, setBorderColor, setHorizontalAlignment, setMargin, setMargin, setPadding, setPadding, setVerticalAlignment |
Methods inherited from class com.arsdigita.bebop.TextStylable |
setBackgroundColor, setColor |
Methods inherited from class com.arsdigita.bebop.SimpleComponent |
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, register, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible |
Methods inherited from class com.arsdigita.bebop.Completable |
addCompletionListener, fireCompletionEvent |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.arsdigita.bebop.PaginationModelBuilder |
isVisible |
Constructor Detail |
public CategoryTemplates.AvailableTemplatesListing(CategoryRequestLocal category, com.arsdigita.kernel.ui.ACSObjectSelectionModel type, com.arsdigita.bebop.SingleSelectionModel context)
Method Detail |
protected TemplateCollection getTemplateCollection(com.arsdigita.bebop.PageState s)
protected ContentType getContentType(com.arsdigita.bebop.PageState s)
public void assignTemplate(com.arsdigita.bebop.PageState s, Template t)
protected void removeTemplate(com.arsdigita.bebop.PageState s, TemplateMapping mapping)
mapping
- the template mapping to be removeds
- the current page stateTemplatesListing.addRemoveColumn()
protected final com.arsdigita.kernel.ui.ACSObjectSelectionModel getMappingModel()
ACSObjectSelectionModel
used to select the
current mapping
public final com.arsdigita.bebop.table.TableColumn getRemoveColumn()
TableColumn
which will contain the
"remove" link.
TemplatesListing.addRemoveColumn()
has not been called yetTemplatesListing.addRemoveColumn()
protected final void addRemoveColumn()
The "remove" column will contain the current template as the value.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |