|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
com.arsdigita.kernel.ACSObject
com.arsdigita.auditing.AuditedACSObject
com.arsdigita.formbuilder.PersistentComponent
com.arsdigita.formbuilder.PersistentLabel
com.arsdigita.formbuilder.WidgetLabel
This class is used to associate PersistentLabel
s
with PersistentWidget
s.
This association facilitates the UI processes for
adding, deleting and moving widgets on forms.
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
WIDGET_ID
|
Fields inherited from class com.arsdigita.formbuilder.PersistentLabel |
versionId |
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 | |
WidgetLabel()
Constructor. |
|
WidgetLabel(BigDecimal id)
Constructor. |
|
WidgetLabel(DataObject obj)
Constructor. |
|
WidgetLabel(ObjectType type)
Constructor. |
|
WidgetLabel(OID oid)
Constructor. |
|
WidgetLabel(String typeName)
Constructor. |
Method Summary | |
static WidgetLabel |
create(PersistentWidget widget,
String label)
This method creates a new widget and initialises all the required attributes |
static WidgetLabel |
findByWidget(PersistentWidget widget)
Retrieves the widget label class associated with the specified persistent widget. |
PersistentWidget |
getWidget()
Retrieves the persistent widget object associated with this label. |
BigDecimal |
getWidgetID()
Retrieves the id of the persistent widget associated with this label |
void |
setWidget(PersistentWidget widget)
Sets the persistent widget associated with this label |
void |
setWidgetID(BigDecimal id)
Sets the id of the persistent widget associated with this label |
Methods inherited from class com.arsdigita.formbuilder.PersistentLabel |
create, createComponent, getLabel, setLabel, setup |
Methods inherited from class com.arsdigita.formbuilder.PersistentComponent |
beforeSave, getAdminName, getAttributeMetaData, 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, delete, 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 |
delete, getID, isNew, save |
Field Detail |
public static final String BASE_DATA_OBJECT_TYPE
public static String WIDGET_ID
Constructor Detail |
public WidgetLabel()
public WidgetLabel(String typeName)
typeName
- the base data object typepublic WidgetLabel(ObjectType type)
type
- the object typepublic WidgetLabel(DataObject obj)
obj
- the data objectpublic WidgetLabel(BigDecimal id) throws DataObjectNotFoundException
id
- the id of the widget label to retrievepublic WidgetLabel(OID oid) throws DataObjectNotFoundException
oid
- the oid of the widget label to retrieveMethod Detail |
public static WidgetLabel create(PersistentWidget widget, String label)
widget
- the persistent widget associated with the labellabel
- the text for the labelpublic static WidgetLabel findByWidget(PersistentWidget widget) throws DataObjectNotFoundException
widget
- the persistent widget whose label to find
DataObjectNotFoundException
- if the
there is no label associated with the widgetpublic void setWidget(PersistentWidget widget)
public void setWidgetID(BigDecimal id)
public PersistentWidget getWidget() throws DataObjectNotFoundException
DataObjectNotFoundException
public BigDecimal getWidgetID()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |