com.arsdigita.web.ui
Class ApplicationConfigFormSection
java.lang.Object
com.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.FormSection
com.arsdigita.kernel.ui.ResourceConfigFormSection
com.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.
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 interface com.arsdigita.bebop.Component |
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible |
ApplicationConfigFormSection
public ApplicationConfigFormSection(ResourceType resType,
RequestLocal parentAppRL)
ApplicationConfigFormSection
public ApplicationConfigFormSection(RequestLocal application)
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