com.arsdigita.kernel.ui
Class ResourceConfigComponent
java.lang.Object
com.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.TextStylable
com.arsdigita.bebop.BlockStylable
com.arsdigita.bebop.SimpleContainer
com.arsdigita.kernel.ui.ResourceConfigComponent
- All Implemented Interfaces:
- Cloneable, Component, Container, Lockable
- public class ResourceConfigComponent
- extends SimpleContainer
A base class used to implement the UI callbacks on ResourceTypeConfig
.
A component for advanced configuration of a resource.
The subclass should take whatever steps are required to
accumulate configuration info, and then fire a completion
event. Upon receiving the completion event, the container
of this component will then invoke the createResource
or modifyResource methods to persist the changes.
- Author:
- Daniel Berrange <berrange@redhat.com>
- See Also:
ResourceTypeConfig
,
ApplicationType
,
Application
Fields inherited from class com.arsdigita.bebop.BlockStylable |
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP |
Method Summary |
Resource |
createResource(PageState ps)
This method is only called on ResourceConfigFormSections
that have been retrieved through the getCreateFormSection
method on ResourceTypeConfig. |
void |
modifyResource(PageState ps)
This method is only called on ResourceConfigFormSections
that have been retrieved through the getModifyFormSection
method on ResourceTypeConfig. |
Methods inherited from class com.arsdigita.bebop.SimpleContainer |
add, add, children, contains, generateChildrenXML, generateParent, generateXML, get, getNamespace, getTag, indexOf, isEmpty, setNamespace, setTag, size |
Methods inherited from class com.arsdigita.bebop.SimpleComponent |
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, register, respond, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible |
Methods inherited from interface com.arsdigita.bebop.Component |
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible |
versionId
public static final String versionId
- See Also:
- Constant Field Values
ResourceConfigComponent
public ResourceConfigComponent()
ResourceConfigComponent
public ResourceConfigComponent(String name,
String xmlns)
createResource
public Resource createResource(PageState ps)
- 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.
modifyResource
public void modifyResource(PageState ps)
- 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.
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC