com.arsdigita.cms.ui
Class BaseForm

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.FormSection
              extended bycom.arsdigita.bebop.Form
                  extended bycom.arsdigita.cms.ui.BaseForm
All Implemented Interfaces:
com.arsdigita.bebop.util.BebopConstants, com.arsdigita.toolbox.ui.Cancellable, Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, com.arsdigita.util.Lockable, SecurityConstants
Direct Known Subclasses:
BaseDeleteForm, BaseRoleForm, com.arsdigita.cms.ui.workflow.CommentAddForm, PartySearchForm

public abstract class BaseForm
extends com.arsdigita.bebop.Form
implements com.arsdigita.toolbox.ui.Cancellable, SecurityConstants

A convenience class for CMS forms.

Version:
$Id: //cms/dev/src/com/arsdigita/cms/ui/BaseForm.java#15 $
Author:
Justin Ross <jross@redhat.com>

Nested Class Summary
protected  class BaseForm.Cancel
           
protected  class BaseForm.Description
           
protected  class BaseForm.Finish
           
protected  class BaseForm.Name
           
 
Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.bebop.Form
GET, POST
 
Fields inherited from class com.arsdigita.bebop.FormSection
m_formModel, m_panel
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.cms.util.SecurityConstants
ADMIN_PAGES, APPLY_ALTERNATE_WORKFLOWS, APPLY_WORKFLOW, CATEGORIZE_ITEMS, CATEGORY_ADMIN, CMS_APPLY_ALTERNATE_WORKFLOWS, CMS_CATEGORIZE_ITEMS, CMS_CATEGORY_ADMIN, CMS_CONTENT_TYPE_ADMIN, CMS_DELETE_ITEM, CMS_EDIT_ITEM, CMS_ITEM_ADMIN, CMS_LIFECYCLE_ADMIN, CMS_NEW_ITEM, CMS_PREVIEW_ITEM, CMS_PUBLISH, CMS_READ_ITEM, CMS_STAFF_ADMIN, CMS_WORKFLOW_ADMIN, CONTENT_TYPE_ADMIN, DELETE_IMAGES, DELETE_ITEM, EDIT_ITEM, LIFECYCLE_ADMIN, NEW_ITEM, PREVIEW_PAGES, PUBLIC_PAGES, PUBLISH, SCHEDULE_PUBLICATION, STAFF_ADMIN, WORKFLOW_ADMIN
 
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
protected BaseForm(String name, com.arsdigita.globalization.GlobalizedMessage heading)
           
protected BaseForm(String name, com.arsdigita.bebop.Label heading)
           
 
Method Summary
protected  void addAction(BaseForm.Cancel button)
           
protected  void addAction(com.arsdigita.bebop.form.Submit button)
           
protected  void addComponent(com.arsdigita.bebop.Component component)
           
protected  void addField(com.arsdigita.globalization.GlobalizedMessage name, com.arsdigita.bebop.Component widget)
           
protected  void addField(com.arsdigita.bebop.Label name, com.arsdigita.bebop.Component widget)
           
protected  void addSecurityListener(String action)
           
protected  void addSecurityListener(String action, ContentItemRequestLocal item)
           
protected static com.arsdigita.globalization.GlobalizedMessage gz(String key)
           
 boolean isCancelled(com.arsdigita.bebop.PageState state)
           
protected static String lz(String key)
           
 
Methods inherited from class com.arsdigita.bebop.Form
addMagicTag, excludeParameterFromExport, generateErrors, generateXML, generateXMLSansState, getAction, getFormData, getName, getProcessInvisible, isRedirecting, process, register, respond, setAction, setEncType, setFormData, setMethod, setName, setOnReset, setOnSubmit, setProcessInvisible, setRedirecting, toString, traverse
 
Methods inherited from class com.arsdigita.bebop.FormSection
add, add, addCancelListener, addInitListener, addProcessListener, addSubmissionListener, addValidationListener, children, contains, createInitListener, createProcessListener, createSubmissionListener, createValidationListener, fireCancel, fireInit, fireProcess, fireSubmitted, fireValidate, forwardInit, forwardProcess, forwardSubmission, forwardValidation, get, getModel, getPanel, indexOf, isEmpty, lock, register, removeCancelListener, removeInitListener, removeProcessListener, removeSubmissionListener, removeValidationListener, size
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, 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, wait, wait, wait
 
Methods inherited from interface com.arsdigita.bebop.Component
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, 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
Constructor Detail

BaseForm

protected BaseForm(String name,
                   com.arsdigita.bebop.Label heading)

BaseForm

protected BaseForm(String name,
                   com.arsdigita.globalization.GlobalizedMessage heading)
Method Detail

addComponent

protected final void addComponent(com.arsdigita.bebop.Component component)

addField

protected final void addField(com.arsdigita.bebop.Label name,
                              com.arsdigita.bebop.Component widget)

addField

protected final void addField(com.arsdigita.globalization.GlobalizedMessage name,
                              com.arsdigita.bebop.Component widget)

addAction

protected final void addAction(com.arsdigita.bebop.form.Submit button)

addAction

protected final void addAction(BaseForm.Cancel button)

addSecurityListener

protected final void addSecurityListener(String action)

addSecurityListener

protected final void addSecurityListener(String action,
                                         ContentItemRequestLocal item)

isCancelled

public boolean isCancelled(com.arsdigita.bebop.PageState state)
Specified by:
isCancelled in interface com.arsdigita.toolbox.ui.Cancellable

gz

protected static final com.arsdigita.globalization.GlobalizedMessage gz(String key)

lz

protected static final String lz(String key)


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