|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.kernel.ui.ACSObjectSelectionModel
com.arsdigita.cms.ItemSelectionModel
Loads a subclass of a ContentItem from
the database. This model should be used as a parameter to the
constructor of authoring kit components.
It is possible to instantiate this model with a ContentType as a constructor parameter. In this
case, the model will only instantiate items that have are of the
specified content type, or one of it subclasses.
ACSObjectSelectionModel,
SingleSelectionModel| Field Summary | |
static String |
versionId
|
| Constructor Summary | |
ItemSelectionModel(com.arsdigita.bebop.parameters.BigDecimalParameter parameter)
Construct a new ItemSelectionModel. |
|
ItemSelectionModel(ContentType type,
com.arsdigita.bebop.parameters.BigDecimalParameter parameter)
Construct a new ItemSelectionModel |
|
ItemSelectionModel(ContentType type,
com.arsdigita.bebop.SingleSelectionModel model)
Construct a new ItemSelectionModel |
|
ItemSelectionModel(ContentType type,
String parameterName)
Construct a new ItemSelectionModel |
|
ItemSelectionModel(com.arsdigita.bebop.SingleSelectionModel model)
Construct a new ItemSelectionModel. |
|
ItemSelectionModel(String parameterName)
Construct a new ItemSelectionModel. |
|
ItemSelectionModel(String itemClass,
String objectType,
com.arsdigita.bebop.parameters.BigDecimalParameter parameter)
Construct a new ItemSelectionModel |
|
ItemSelectionModel(String itemClass,
String objectType,
com.arsdigita.bebop.SingleSelectionModel model)
Construct a new ItemSelectionModel |
|
ItemSelectionModel(String itemClass,
String objectType,
String parameterName)
Construct a new ItemSelectionModel |
|
| Method Summary | |
com.arsdigita.kernel.ACSObject |
createACSObject()
A utility function which creates a new item. |
com.arsdigita.kernel.ACSObject |
createACSObject(BigDecimal id)
Deprecated. Use createACSObject() instead |
ContentItem |
createItem()
A utility function which creates a new item. |
ContentItem |
createItem(BigDecimal id)
Deprecated. use createItem() instead |
ContentType |
getContentType()
|
ContentItem |
getSelectedItem(com.arsdigita.bebop.PageState s)
A convenience method that gets the currently selected object and casts it to a ContentItem |
| Methods inherited from class com.arsdigita.kernel.ui.ACSObjectSelectionModel |
addChangeListener, clearSelection, getJavaClass, getObjectType, getSelectedKey, getSelectedObject, getSingleSelectionModel, getStateParameter, isInitialized, isSelected, loadACSObject, removeChangeListener, setSelectedKey, setSelectedObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String versionId
| Constructor Detail |
public ItemSelectionModel(com.arsdigita.bebop.parameters.BigDecimalParameter parameter)
ItemSelectionModel.
This model will produce instances of ContentItem
by automatically instantiating the correct Java subclass using
the DomainObjectFactory.
parameter - The state parameter which should be used to store
the object IDpublic ItemSelectionModel(String parameterName)
ItemSelectionModel.
This model will produce instances of ContentItem
by automatically instantiating the correct Java subclass using
the DomainObjectFactory.
parameterName - The name of the state parameter which will
be used to store the object ID.public ItemSelectionModel(com.arsdigita.bebop.SingleSelectionModel model)
ItemSelectionModel.
This model will produce instances of ContentItem
by automatically instantiating the correct Java subclass using
the DomainObjectFactory.
model - The SingleSelectionModel which will supply
a BigDecimal ID of the currently selected item
public ItemSelectionModel(ContentType type,
String parameterName)
ItemSelectionModel
type - The content type for the items this model will generateparameterName - The name of the state parameter which will
be used to store the item.
public ItemSelectionModel(ContentType type,
com.arsdigita.bebop.parameters.BigDecimalParameter parameter)
ItemSelectionModel
type - The content type for the items this model will generateparameter - The state parameter which should be used by this item
public ItemSelectionModel(ContentType type,
com.arsdigita.bebop.SingleSelectionModel model)
ItemSelectionModel
type - The content type for the items this model will generatemodel - The SingleSelectionModel which will supply
a BigDecimal id of the currently selected object
public ItemSelectionModel(String itemClass,
String objectType,
String parameterName)
ItemSelectionModel
itemClass - The name of the Java class which represents
the content item. Must be a subclass of ContentItem. In
addition, the class must have a constructor with a single
OID parameter.objectType - The name of the persistence metadata object type
which represents the content item. In practice, will often be
the same as the itemClass.parameterName - The name of the state parameter which will
be used to store the item.
public ItemSelectionModel(String itemClass,
String objectType,
com.arsdigita.bebop.parameters.BigDecimalParameter parameter)
ItemSelectionModel
itemClass - The name of the Java class which represents
the content item. Must be a subclass of ContentItem. In
addition, the class must have a constructor with a single
OID parameter.objectType - The name of the persistence metadata object type
which represents the content item. In practice, will often be
the same as the itemClass.parameter - The state parameter which should be used by this item
public ItemSelectionModel(String itemClass,
String objectType,
com.arsdigita.bebop.SingleSelectionModel model)
ItemSelectionModel
itemClass - The name of the Java class which represents
the content item. Must be a subclass of ContentItem. In
addition, the class must have a constructor with a single
OID parameter.objectType - The name of the persistence metadata object type
which represents the content item. In practice, will often be
the same as the itemClass.model - The SingleSelectionModel which will supply
a BigDecimal id of the currently selected object| Method Detail |
public ContentItem createItem(BigDecimal id)
throws javax.servlet.ServletException
id - The id of the new item -- this is now ignored
javax.servlet.ServletException
public ContentItem createItem()
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic final ContentItem getSelectedItem(com.arsdigita.bebop.PageState s)
ContentItem
s - the current page state
ContentItem, or null
if no item was selected.
public com.arsdigita.kernel.ACSObject createACSObject(BigDecimal id)
throws javax.servlet.ServletException
id - The id of the new item -- this is now ignored
javax.servlet.ServletException
public com.arsdigita.kernel.ACSObject createACSObject()
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic ContentType getContentType()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||