com.arsdigita.cms.ui
Class ContentPageTable

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.TextStylable
              extended bycom.arsdigita.bebop.BlockStylable
                  extended bycom.arsdigita.bebop.Table
                      extended bycom.arsdigita.toolbox.ui.DataTable
                          extended bycom.arsdigita.cms.ui.ContentPageTable
All Implemented Interfaces:
com.arsdigita.bebop.util.BebopConstants, Cloneable, com.arsdigita.bebop.Component, com.arsdigita.util.Lockable, com.arsdigita.bebop.PaginationModelBuilder

public class ContentPageTable
extends com.arsdigita.toolbox.ui.DataTable

A DataTable that displays ContentPages based on the passed-in query. Displays name, title, and content type; allows sorting.

The DataQuery must possess the following columns:

Further columns may be added with the DataTable.addColumn(String, String) method, as described in DataTable

Version:
$Id: //cms/dev/src/com/arsdigita/cms/ui/ContentPageTable.java#13 $
Author:
Stanislav Freidin (sfreidin@arsdigita.com)

Nested Class Summary
 
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
static String TYPE_LABEL
           
static String versionId
           
 
Fields inherited from class com.arsdigita.toolbox.ui.DataTable
ASCENDING, DESCENDING, DIRECTION, ORDER
 
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
ContentPageTable(String queryName, String context)
          Construct a new ContentPageTable
 
Method Summary
 ContentType getContentType()
           
 String getContext()
           
 String getDataQueryName()
           
 void register(com.arsdigita.bebop.Page p)
           
 void setContentType(ContentType c)
          Set the content type.
 void setContext(String context)
           
 
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, 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
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

TYPE_LABEL

public static final String TYPE_LABEL
See Also:
Constant Field Values
Constructor Detail

ContentPageTable

public ContentPageTable(String queryName,
                        String context)
Construct a new ContentPageTable

Parameters:
context - The context for the retrieved items. Should be ContentItem.LIVE or ContentItem.DRAFT
Method Detail

register

public void register(com.arsdigita.bebop.Page p)

getContext

public String getContext()
Returns:
the current context

setContext

public void setContext(String context)
Parameters:
context - the new context for the items. Should be ContentItem.DRAFT or ContentItem.LIVE

setContentType

public void setContentType(ContentType c)
Set the content type. Only items of the given content type will be shown.

Parameters:
c - the content type of shown items. If null, all items will be shown

getContentType

public ContentType getContentType()
Returns:
the content types of shown items, or null if all items will be shown

getDataQueryName

public String getDataQueryName()
Returns:
the name of the DataQuery that this class will execute


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC