Package com.proxemo.todo4.bom
Class ToDoForm
- java.lang.Object
-
- com.proxemo.todo4.bom.ToDoVersionedIdentifiable
-
- com.proxemo.todo4.bom.ToDoForm
-
- All Implemented Interfaces:
java.io.Serializable
public class ToDoForm extends ToDoVersionedIdentifiable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
activeForAllGroups()
boolean
activeForGroup(ToDoWorkGroup wg)
boolean
activeForGroup(java.lang.String wgId)
ToDoFormField
addAttribute(ToDoFormField att)
void
addAttributes(java.util.Collection<ToDoFormField> cma)
void
anonymize()
static java.lang.String
cleanGroupFilter(java.lang.String gf)
void
clear()
void
clearValues()
void
dumpAssociation()
void
dumpWidgets()
java.util.Set<java.lang.String>
getActiveGroups()
java.lang.String
getAsText()
ToDoColor
getBackground()
java.util.Map<java.lang.String,ToDoFormField>
getContent()
java.lang.String
getDataAsHtml()
java.lang.String
getDataAsXml()
java.lang.String
getDataTabSeparated()
Element
getElement()
java.lang.String
getFormAsHtml(boolean asPage, boolean printFormName)
byte[]
getFormAsPdf()
java.lang.String
getGroupFilter()
java.lang.Long
getId()
Method returning a canonical id of the object.java.lang.String
getIdString()
int
getLayoutType()
int
getMaxX()
int
getMaxY()
ToDoFormField
getMetaAttributeByName(java.lang.String name)
java.lang.String
getMetaContent()
java.lang.String
getMetaName()
java.lang.String
getOnAcceptScript()
java.lang.String
getOnCreateScript()
java.lang.String
getOnEnableScript()
java.lang.String
getOnFinishScript()
java.lang.String
getOnSendScript()
java.lang.String
getOnStartScript()
java.lang.Object
getValueByFieldName(java.lang.String fieldName)
java.lang.Integer
getVersion()
Method returning the version of the instancejava.lang.Boolean
isActive()
Method that returns whether the instance is active or not (means: logically deleted)void
removeAttribute(ToDoFormField a)
void
renameAttribute(ToDoFormField att, java.lang.String newName)
void
reset()
void
setActive(java.lang.Boolean active)
Method setting the active flag.void
setActiveGroups(java.util.Collection<ToDoWorkGroup> wgs, boolean activateAll)
void
setBackground(ToDoColor background)
void
setContent(java.util.Map<java.lang.String,ToDoFormField> content)
void
setElement(Element md)
void
setGroupFilter(java.lang.String groupFilter)
void
setId(java.lang.Long id)
Method setting the canonical id of the object.void
setInactive()
Method to delete an object logically.void
setLayoutType(int layoutType)
void
setMetaContent(java.lang.String metaContent)
void
setMetaName(java.lang.String metaName)
void
setOnAcceptScript(java.lang.String onAcceptScript)
void
setOnCreateScript(java.lang.String onCreateScript)
void
setOnEnableScript(java.lang.String onEnableScript)
void
setOnFinishScript(java.lang.String onFinishScript)
void
setOnSendScript(java.lang.String onSendScript)
void
setOnStartScript(java.lang.String onStartScript)
void
setToActive()
Method to undelete an object logically.void
setVersion(java.lang.Integer version)
Method setting the version of the instance, Should under normal circumstances not be manually invoked.void
updateContent()
void
updateMetaContent()
-
Methods inherited from class com.proxemo.todo4.bom.ToDoVersionedIdentifiable
getActiveAsIcon, getAnonymizeString, getCanonicalId, isTransient, setToTransient
-
-
-
-
Constructor Detail
-
ToDoForm
public ToDoForm()
-
ToDoForm
public ToDoForm(ToDoForm md)
-
ToDoForm
public ToDoForm(java.lang.String metaName)
-
-
Method Detail
-
getMetaContent
public java.lang.String getMetaContent()
-
setMetaContent
public void setMetaContent(java.lang.String metaContent)
-
getMetaName
public java.lang.String getMetaName()
-
setMetaName
public void setMetaName(java.lang.String metaName)
-
getContent
public java.util.Map<java.lang.String,ToDoFormField> getContent()
-
setContent
public void setContent(java.util.Map<java.lang.String,ToDoFormField> content)
-
getValueByFieldName
public java.lang.Object getValueByFieldName(java.lang.String fieldName)
-
getMetaAttributeByName
public ToDoFormField getMetaAttributeByName(java.lang.String name)
-
updateMetaContent
public void updateMetaContent()
-
updateContent
public void updateContent()
-
getOnEnableScript
public java.lang.String getOnEnableScript()
-
setOnEnableScript
public void setOnEnableScript(java.lang.String onEnableScript)
-
getOnCreateScript
public java.lang.String getOnCreateScript()
-
setOnCreateScript
public void setOnCreateScript(java.lang.String onCreateScript)
-
getOnFinishScript
public java.lang.String getOnFinishScript()
-
setOnFinishScript
public void setOnFinishScript(java.lang.String onFinishScript)
-
getOnSendScript
public java.lang.String getOnSendScript()
-
setOnSendScript
public void setOnSendScript(java.lang.String onSendScript)
-
getOnStartScript
public java.lang.String getOnStartScript()
-
setOnStartScript
public void setOnStartScript(java.lang.String onStartScript)
-
getOnAcceptScript
public java.lang.String getOnAcceptScript()
-
setOnAcceptScript
public void setOnAcceptScript(java.lang.String onAcceptScript)
-
addAttribute
public ToDoFormField addAttribute(ToDoFormField att)
-
getIdString
public java.lang.String getIdString()
-
removeAttribute
public void removeAttribute(ToDoFormField a)
-
renameAttribute
public void renameAttribute(ToDoFormField att, java.lang.String newName)
-
getMaxX
public int getMaxX()
-
getMaxY
public int getMaxY()
-
clear
public void clear()
-
getAsText
public java.lang.String getAsText()
-
getDataAsXml
public java.lang.String getDataAsXml()
-
getDataTabSeparated
public java.lang.String getDataTabSeparated()
-
getDataAsHtml
public java.lang.String getDataAsHtml()
-
getFormAsHtml
public java.lang.String getFormAsHtml(boolean asPage, boolean printFormName)
-
getFormAsPdf
public byte[] getFormAsPdf()
-
clearValues
public void clearValues()
-
setElement
public void setElement(Element md) throws java.text.ParseException
- Throws:
java.text.ParseException
-
getElement
public Element getElement()
-
getLayoutType
public int getLayoutType()
-
setLayoutType
public void setLayoutType(int layoutType)
-
getBackground
public ToDoColor getBackground()
-
setBackground
public void setBackground(ToDoColor background)
-
dumpWidgets
public void dumpWidgets()
-
reset
public void reset()
-
dumpAssociation
public void dumpAssociation()
-
setActiveGroups
public void setActiveGroups(java.util.Collection<ToDoWorkGroup> wgs, boolean activateAll)
-
getActiveGroups
public java.util.Set<java.lang.String> getActiveGroups()
-
activeForAllGroups
public boolean activeForAllGroups()
-
activeForGroup
public boolean activeForGroup(ToDoWorkGroup wg)
-
getGroupFilter
public java.lang.String getGroupFilter()
-
setGroupFilter
public void setGroupFilter(java.lang.String groupFilter)
-
activeForGroup
public boolean activeForGroup(java.lang.String wgId)
-
cleanGroupFilter
public static java.lang.String cleanGroupFilter(java.lang.String gf)
-
addAttributes
public void addAttributes(java.util.Collection<ToDoFormField> cma)
-
anonymize
public void anonymize()
- Specified by:
anonymize
in classToDoVersionedIdentifiable
-
getId
public java.lang.Long getId()
Description copied from class:ToDoVersionedIdentifiable
Method returning a canonical id of the object. Transient objects return -1;- Specified by:
getId
in classToDoVersionedIdentifiable
- Returns:
- id the id of the object. Id is canonical for all instances of a class.
-
setId
public void setId(java.lang.Long id)
Description copied from class:ToDoVersionedIdentifiable
Method setting the canonical id of the object. Should under normal circumstances not be manually invoked.- Specified by:
setId
in classToDoVersionedIdentifiable
- Parameters:
id
- id of the object
-
getVersion
public java.lang.Integer getVersion()
Description copied from class:ToDoVersionedIdentifiable
Method returning the version of the instance- Specified by:
getVersion
in classToDoVersionedIdentifiable
- Returns:
- the version
-
setVersion
public void setVersion(java.lang.Integer version)
Description copied from class:ToDoVersionedIdentifiable
Method setting the version of the instance, Should under normal circumstances not be manually invoked.- Specified by:
setVersion
in classToDoVersionedIdentifiable
- Parameters:
version
- of the object
-
isActive
public java.lang.Boolean isActive()
Description copied from class:ToDoVersionedIdentifiable
Method that returns whether the instance is active or not (means: logically deleted)- Specified by:
isActive
in classToDoVersionedIdentifiable
- Returns:
- boolean whether the object is active
-
setActive
public void setActive(java.lang.Boolean active)
Description copied from class:ToDoVersionedIdentifiable
Method setting the active flag. Invoking this method with false logically deletes the instance in the database.- Specified by:
setActive
in classToDoVersionedIdentifiable
- Parameters:
active
- is the object active or not
-
setToActive
public void setToActive()
Description copied from class:ToDoVersionedIdentifiable
Method to undelete an object logically.- Specified by:
setToActive
in classToDoVersionedIdentifiable
-
setInactive
public void setInactive()
Description copied from class:ToDoVersionedIdentifiable
Method to delete an object logically.- Specified by:
setInactive
in classToDoVersionedIdentifiable
-
-