com.arsdigita.formbuilder.ui
Class FormBuildingPage

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.formbuilder.ui.TemplatePage
                          extended bycom.arsdigita.formbuilder.ui.FormBuildingPage
All Implemented Interfaces:
Cloneable, Component, Container, Lockable

public class FormBuildingPage
extends TemplatePage

On this page the admin may add widgets to the persistent form. The admin comes to this page after the FormPropertiesPage.

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

Field Summary
 BigDecimalParameter m_formID
           
 StringParameter m_pageMode
           
 StringParameter m_parameterName
           
 IntegerParameter m_questionPosition
           
 BigDecimalParameter m_widgetID
           
static String versionId
           
 
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
 
Method Summary
protected  void buildPage()
          This method builds the Component structure specific to a certain Page in the Form Builder service.
 Form getDeleteForm()
           
 BigDecimal getFormID(PageState pageState)
           
 Link getIndexLink()
           
 Form getMoveForm()
           
 String getPageMode(PageState pageState)
          Returns add mode per default
 String getParameterName(PageState pageState)
           
 MetaForm getPreviewForm()
           
 QuestionPropertiesForm getQuestionForm()
           
 SimpleQuestionnaire getQuestionnaire(PageState pageState)
           
 String getQuestionName(PageState pageState)
           
 ColumnPanel getQuestionPanel()
           
 Integer getQuestionPosition(PageState pageState)
           
 String getRelativeURL()
           
static String getStaticTitle()
           
 BigDecimal getWidgetID(PageState pageState)
           
 List getWidgetList()
           
 ColumnPanel getWidgetListPanel()
           
 String getWidgetSelection(PageState pageState)
          Return the class name of the currently selected Widget
 String getWidgetSelectionName(PageState pageState)
           
static FormBuildingPage instance()
          Provide access to the single instance of this page.
 boolean isSuccessfulSubmission(PageState pageState)
           
 
Methods inherited from class com.arsdigita.bebop.Page
add, add, addActionListener, addClientStylesheet, addComponent, addComponentStateParam, addGlobalStateParam, addRequestListener, buildDocument, children, contains, fireActionEvent, fireRequestEvent, generateXML, generateXML, generateXMLHelper, 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

m_formID

public BigDecimalParameter m_formID

m_pageMode

public StringParameter m_pageMode

m_questionPosition

public IntegerParameter m_questionPosition

m_widgetID

public BigDecimalParameter m_widgetID

m_parameterName

public StringParameter m_parameterName
Method Detail

instance

public static FormBuildingPage instance()
Provide access to the single instance of this page.


getStaticTitle

public static String getStaticTitle()

getRelativeURL

public String getRelativeURL()
Specified by:
getRelativeURL in class TemplatePage

buildPage

protected void buildPage()
Description copied from class: TemplatePage
This method builds the Component structure specific to a certain Page in the Form Builder service.

Specified by:
buildPage in class TemplatePage

getIndexLink

public Link getIndexLink()

getQuestionPanel

public ColumnPanel getQuestionPanel()

getWidgetListPanel

public ColumnPanel getWidgetListPanel()

getWidgetList

public List getWidgetList()

getQuestionForm

public QuestionPropertiesForm getQuestionForm()

getPreviewForm

public MetaForm getPreviewForm()

getMoveForm

public Form getMoveForm()

getDeleteForm

public Form getDeleteForm()

getFormID

public BigDecimal getFormID(PageState pageState)

getPageMode

public String getPageMode(PageState pageState)
Returns add mode per default


getQuestionPosition

public Integer getQuestionPosition(PageState pageState)

getQuestionName

public String getQuestionName(PageState pageState)

getWidgetID

public BigDecimal getWidgetID(PageState pageState)

getParameterName

public String getParameterName(PageState pageState)

getWidgetSelection

public String getWidgetSelection(PageState pageState)
Return the class name of the currently selected Widget


getWidgetSelectionName

public String getWidgetSelectionName(PageState pageState)

getQuestionnaire

public SimpleQuestionnaire getQuestionnaire(PageState pageState)

isSuccessfulSubmission

public boolean isSuccessfulSubmission(PageState pageState)


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