com.arsdigita.web.ui
Class ApplicationConfigFormSection

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.FormSection
              extended bycom.arsdigita.kernel.ui.ResourceConfigFormSection
                  extended bycom.arsdigita.web.ui.ApplicationConfigFormSection
All Implemented Interfaces:
Cloneable, Component, Container, Lockable

public class ApplicationConfigFormSection
extends ResourceConfigFormSection

An implementation of ResourceConfigFormSection to be used for creating / editing Application instances. For simple apps, can be used as is. If an app has any custom properties, this can be subclassed to add futher form fields.


Field Summary
 
Fields inherited from class com.arsdigita.kernel.ui.ResourceConfigFormSection
versionId
 
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.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
ApplicationConfigFormSection(RequestLocal application)
           
ApplicationConfigFormSection(ResourceType resType, RequestLocal parentAppRL)
           
 
Method Summary
protected  void addWidgets()
          Adds basic form widgets for URL, title and description properties.
 Resource createResource(PageState state)
          This method is only called on ResourceConfigFormSections that have been retrieved through the getCreateFormSection method on ResourceTypeConfig.
protected  void initWidgets(PageState state, Application application)
          Initialize the form fields
 void modifyResource(PageState state)
          This method is only called on ResourceConfigFormSections that have been retrieved through the getModifyFormSection method on ResourceTypeConfig.
protected  void processWidgets(PageState state, Application application)
          Processes the form submission
protected  void validateWidgets(PageState state, Application application)
          Validates the form fields
 
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, generateXML, get, getModel, getPanel, indexOf, isEmpty, lock, process, register, removeCancelListener, removeInitListener, removeProcessListener, removeSubmissionListener, removeValidationListener, respond, size
 
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.Component
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked
 

Constructor Detail

ApplicationConfigFormSection

public ApplicationConfigFormSection(ResourceType resType,
                                    RequestLocal parentAppRL)

ApplicationConfigFormSection

public ApplicationConfigFormSection(RequestLocal application)
Method Detail

addWidgets

protected void addWidgets()
Adds basic form widgets for URL, title and description properties. Override this method to add further widget.


initWidgets

protected void initWidgets(PageState state,
                           Application application)
                    throws FormProcessException
Initialize the form fields

Parameters:
application - the application being edited, if any
Throws:
FormProcessException

validateWidgets

protected void validateWidgets(PageState state,
                               Application application)
                        throws FormProcessException
Validates the form fields

Parameters:
application - the application being edited
Throws:
FormProcessException

createResource

public Resource createResource(PageState state)
Description copied from class: ResourceConfigFormSection
This method is only called on ResourceConfigFormSections that have been retrieved through the getCreateFormSection method on ResourceTypeConfig. The application should be initialized, but not saved.

Overrides:
createResource in class ResourceConfigFormSection

modifyResource

public void modifyResource(PageState state)
Description copied from class: ResourceConfigFormSection
This method is only called on ResourceConfigFormSections that have been retrieved through the getModifyFormSection method on ResourceTypeConfig. The application modified is the one specified in the RequestLocal argument to the getModifyFormSection method. The application can be modified and saved, but it does not have to be saved.

Overrides:
modifyResource in class ResourceConfigFormSection

processWidgets

protected void processWidgets(PageState state,
                              Application application)
                       throws FormProcessException
Processes the form submission

Parameters:
application - the application being edited, or newly created
Throws:
FormProcessException


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