com.arsdigita.kernel.ui
Class ResourceConfigComponent

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.SimpleContainer
                      extended bycom.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

Field Summary
static String versionId
           
 
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
 
Constructor Summary
ResourceConfigComponent()
           
ResourceConfigComponent(String name, String xmlns)
           
 
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.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, lock, register, register, respond, 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, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked, lock
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

ResourceConfigComponent

public ResourceConfigComponent()

ResourceConfigComponent

public ResourceConfigComponent(String name,
                               String xmlns)
Method Detail

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