com.arsdigita.formbuilder
Class PersistentSelect

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.domain.ObservableDomainObject
          extended bycom.arsdigita.kernel.ACSObject
              extended bycom.arsdigita.auditing.AuditedACSObject
                  extended bycom.arsdigita.formbuilder.PersistentComponent
                      extended bycom.arsdigita.formbuilder.PersistentWidget
                          extended bycom.arsdigita.formbuilder.PersistentOptionGroup
                              extended bycom.arsdigita.formbuilder.PersistentSelect
All Implemented Interfaces:
AttributeMetaDataProvider, Audited, PersistentComponentFactory
Direct Known Subclasses:
PersistentMultipleSelect, PersistentSingleSelect

public abstract class PersistentSelect
extends PersistentOptionGroup

This class is responsible for persisting Bebop Selects. The Select is saved with the save() method. To resurrect the Select, use the constructor taking the id of the saved Select and then invoke createComponent().

Version:
$Id: //core-platform/dev/src/com/arsdigita/formbuilder/PersistentSelect.java#9 $
Author:
Peter Marklund

Field Summary
static String BASE_DATA_OBJECT_TYPE
          BASE_DATA_OBJECT_TYPE represents the full name of the underlying DataObject of this class.
static String versionId
           
 
Fields inherited from class com.arsdigita.formbuilder.PersistentWidget
DEFAULT_VALUE
 
Fields inherited from class com.arsdigita.formbuilder.PersistentComponent
ATTRIBUTE_STRING
 
Fields inherited from class com.arsdigita.kernel.ACSObject
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE
 
Constructor Summary
PersistentSelect(DataObject obj)
           
PersistentSelect(ObjectType type)
           
PersistentSelect(OID oID)
          Extending classes can use this constructor to set the sub class id and object type.
PersistentSelect(String objectType)
          Constructor that creates a new Select domain object that can be saved to the database later on.
 
Method Summary
protected  void addDataToComponent(Component component)
           
abstract  Component createComponent()
          Create a sub class of Select.
 int getSize()
          The HTML Size attribute of this widget
 void setSize(int size)
          The HTML Size attribute of this widget
 
Methods inherited from class com.arsdigita.formbuilder.PersistentOptionGroup
addOption, addOption, addOption, addOption, clearOptions, delete, getAttributeMetaData, getOptions, getSelectedOptions, isMultiple, removeOption, setOptionSelected
 
Methods inherited from class com.arsdigita.formbuilder.PersistentWidget
addValidationListener, clearValidationListeners, copyValuesToWidget, deserializeDefaultValue, getDefaultValue, getParameterModel, getParameterName, getValidationListeners, getValueClass, instantiateParameterModel, setDefaultValue, setParameterModel, setParameterName, setup
 
Methods inherited from class com.arsdigita.formbuilder.PersistentComponent
beforeSave, getAdminName, getComponentAttribute, getDescription, setAdminName, setComponentAttribute, setDescription, setDomainClass
 
Methods inherited from class com.arsdigita.auditing.AuditedACSObject
getCreationDate, getCreationIP, getCreationUser, getLastModifiedDate, getLastModifiedIP, getLastModifiedUser, initialize
 
Methods inherited from class com.arsdigita.kernel.ACSObject
assertPrivilege, checkPrivilege, doCreateCheck, doWriteCheck, getBaseDataObjectType, getContainer, getDefaultDomainClass, getDisplayName, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, isContainerModified, setID, setID
 
Methods inherited from class com.arsdigita.domain.ObservableDomainObject
addObserver, getObservers
 
Methods inherited from class com.arsdigita.domain.DomainObject
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, clear, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.arsdigita.formbuilder.PersistentComponentFactory
getID, isNew, save
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
BASE_DATA_OBJECT_TYPE represents the full name of the underlying DataObject of this class.

See Also:
Constant Field Values
Constructor Detail

PersistentSelect

public PersistentSelect(String objectType)
Constructor that creates a new Select domain object that can be saved to the database later on.


PersistentSelect

public PersistentSelect(ObjectType type)

PersistentSelect

public PersistentSelect(DataObject obj)

PersistentSelect

public PersistentSelect(OID oID)
                 throws DataObjectNotFoundException
Extending classes can use this constructor to set the sub class id and object type.

Method Detail

createComponent

public abstract Component createComponent()
Create a sub class of Select. This method must be implemented by sub clases.

Specified by:
createComponent in interface PersistentComponentFactory
Specified by:
createComponent in class PersistentOptionGroup

addDataToComponent

protected void addDataToComponent(Component component)
Overrides:
addDataToComponent in class PersistentOptionGroup

setSize

public void setSize(int size)
The HTML Size attribute of this widget


getSize

public int getSize()
The HTML Size attribute of this widget



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