com.arsdigita.formbuilder.ui
Class QuestionPropertiesForm

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.bebop.MetaForm
                      extended bycom.arsdigita.formbuilder.ui.QuestionPropertiesForm
All Implemented Interfaces:
BebopConstants, Cloneable, Component, Container, Lockable

public class QuestionPropertiesForm
extends MetaForm

A dynamic form that lets the admin add or edit a persistent component.

Version:
$Id: //core-platform/dev/src/com/arsdigita/formbuilder/ui/QuestionPropertiesForm.java#12 $
Author:
Peter Marklund

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.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
QuestionPropertiesForm(String name)
           
 
Method Summary
 Form buildForm(PageState pageState)
          Builds the dynamic form.
 String getNumberOfOptions(PageState pageState)
           
 AttributeMetaData getParameterMetaData(PageState pageState)
           
 PersistentWidget getPersistentWidget(PageState pageState)
           
 boolean hasParameterType(PageState pageState)
           
 
Methods inherited from class com.arsdigita.bebop.MetaForm
add, addMagicTag, generateXMLSansState, getDynamicForm, getFormData, getPanel, process, rebuildForm
 
Methods inherited from class com.arsdigita.bebop.Form
excludeParameterFromExport, generateErrors, generateXML, getAction, getName, getProcessInvisible, isRedirecting, register, respond, setAction, setEncType, setFormData, setMethod, setName, setOnReset, setOnSubmit, setProcessInvisible, setRedirecting, toString, traverse
 
Methods inherited from class com.arsdigita.bebop.FormSection
add, addCancelListener, addInitListener, addProcessListener, addSubmissionListener, addValidationListener, children, contains, createInitListener, createProcessListener, createSubmissionListener, createValidationListener, fireCancel, fireInit, fireProcess, fireSubmitted, fireValidate, forwardInit, forwardProcess, forwardSubmission, forwardValidation, get, getModel, 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

QuestionPropertiesForm

public QuestionPropertiesForm(String name)
Method Detail

buildForm

public Form buildForm(PageState pageState)
Description copied from class: MetaForm
Builds the dynamic form. Subclasses should override this method to build the form based on the request represented by state.

Specified by:
buildForm in class MetaForm
Parameters:
pageState - describes the current request
Returns:
the form to be used for this request.

getPersistentWidget

public PersistentWidget getPersistentWidget(PageState pageState)

getNumberOfOptions

public String getNumberOfOptions(PageState pageState)

getParameterMetaData

public AttributeMetaData getParameterMetaData(PageState pageState)

hasParameterType

public boolean hasParameterType(PageState pageState)


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