com.arsdigita.cms.ui
Class WorkspacePage

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.Page
                      extended bycom.arsdigita.cms.dispatcher.CMSPage
                          extended bycom.arsdigita.cms.ui.WorkspacePage
All Implemented Interfaces:
com.arsdigita.bebop.event.ActionListener, Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, com.arsdigita.dispatcher.Dispatcher, EventListener, com.arsdigita.util.Lockable, ResourceHandler

public class WorkspacePage
extends CMSPage
implements com.arsdigita.bebop.event.ActionListener

The Content Center page.

Version:
$Revision: #21 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Jack Chung (flattop@arsdigita.com), Michael Pih (pihman@arsdigita.com)

Field Summary
static String CONTENT_SECTION
           
static String CONTENT_TYPE
           
static String versionId
           
 
Fields inherited from class com.arsdigita.cms.dispatcher.CMSPage
ASSETS, CMS_XML_NS, PAGE_CLASS
 
Fields inherited from class com.arsdigita.bebop.Page
m_invisible, m_panel
 
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.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
WorkspacePage()
          Construct a new WorkspacePage
 
Method Summary
 void actionPerformed(com.arsdigita.bebop.event.ActionEvent event)
          When a new tab is selected, reset the state of the formerly-selected pane.
protected  void addToPane(com.arsdigita.bebop.TabbedPane pane, String tabName, com.arsdigita.bebop.Component comp)
          Adds the specified component, with the specified tab name, to the tabbed pane only if it is not null.
protected  com.arsdigita.bebop.TabbedPane createTabbedPane()
          Created the TabbedPane to use for this page.
protected  ItemSearch getSearchPane()
          Creates, and then caches, the Search pane.
protected  TasksPanel getTasksPane(com.arsdigita.kernel.ui.ACSObjectSelectionModel typeModel, com.arsdigita.kernel.ui.ACSObjectSelectionModel sectionModel)
          Creates, and then caches, the Tasks pane.
 
Methods inherited from class com.arsdigita.cms.dispatcher.CMSPage
buildPage, dispatch, generateXMLHelper, getContentItem, getContentItem, getContentSection, getContentSection, getCurrentUser, getXMLParameter, init, setXMLParameter
 
Methods inherited from class com.arsdigita.bebop.Page
add, add, addActionListener, addClientStylesheet, addComponent, addComponentStateParam, addGlobalStateParam, addRequestListener, buildDocument, children, contains, fireActionEvent, fireRequestEvent, generateXML, generateXML, get, getComponent, getComponentParameters, getErrorDisplay, getPanel, getParameters, getStateModel, getTitle, getTitle, indexOf, isEmpty, isUsingHttpSession, isVisibleDefault, lock, parameterName, parameterName, prepare, process, process, removeActionListener, removeRequestListener, respond, setErrorDisplay, setPanel, setStyleSheet, setTitle, setTitle, setUsingHttpSession, setVisibleDefault, size, stateContains, stateIndex, stateSize
 
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, 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.Component
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, register, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

CONTENT_TYPE

public static final String CONTENT_TYPE
See Also:
Constant Field Values

CONTENT_SECTION

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

WorkspacePage

public WorkspacePage()
Construct a new WorkspacePage

Method Detail

getTasksPane

protected TasksPanel getTasksPane(com.arsdigita.kernel.ui.ACSObjectSelectionModel typeModel,
                                  com.arsdigita.kernel.ui.ACSObjectSelectionModel sectionModel)
Creates, and then caches, the Tasks pane. Overriding this method to return null will prevent this tab from appearing.


getSearchPane

protected ItemSearch getSearchPane()
Creates, and then caches, the Search pane. Overriding this method to return null will prevent this tab from appearing.


createTabbedPane

protected com.arsdigita.bebop.TabbedPane createTabbedPane()
Created the TabbedPane to use for this page. Sets the class attribute for this tabbed pane. The default implementation uses a TabbedPane and sets the class attribute to "CMS Admin." This implementation also adds tasks, content sections, and search panes.

Developers can override this method to add only the tabs they want, or to add additional tabs after the default CMS tabs are added.


addToPane

protected void addToPane(com.arsdigita.bebop.TabbedPane pane,
                         String tabName,
                         com.arsdigita.bebop.Component comp)
Adds the specified component, with the specified tab name, to the tabbed pane only if it is not null.

Parameters:
pane - The pane to which to add the tab
tabName - The name of the tab if it's added
comp - The component to add to the pane

actionPerformed

public void actionPerformed(com.arsdigita.bebop.event.ActionEvent event)
When a new tab is selected, reset the state of the formerly-selected pane.

Specified by:
actionPerformed in interface com.arsdigita.bebop.event.ActionListener
Parameters:
event - The event fired by selecting a tab


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