Package com.proxemo.todo4.bom
Class ToDoFormField
- java.lang.Object
-
- com.proxemo.todo4.bom.ToDoVersionedIdentifiable
-
- com.proxemo.todo4.bom.ToDoFormField
-
- All Implemented Interfaces:
java.io.Serializable
public class ToDoFormField extends ToDoVersionedIdentifiable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intKIND_BOOLEAN_EXCLUSIVE_MULTI_SELECTIONstatic intKIND_BOOLEAN_MULTI_SELECTIONstatic intKIND_BOOLEAN_SELECTIONstatic intKIND_BUTTONstatic intKIND_DATEstatic intKIND_DATE_TIMEstatic intKIND_DYNAMIC_MENUstatic intKIND_FIELDstatic intKIND_FLOATstatic intKIND_IMAGEstatic intKIND_INVISIBLE_PANELstatic intKIND_LABELstatic intKIND_LONG_FIELDstatic intKIND_RANGED_INTstatic intKIND_SCANFIELDstatic intKIND_SIGNATUREstatic intKIND_TABLEstatic intKIND_TIMEstatic intKIND_UNKNOWNstatic intKIND_WEBVIEW
-
Constructor Summary
Constructors Constructor Description ToDoFormField()ToDoFormField(int kind, java.lang.String name, java.lang.String description)ToDoFormField(ToDoFormField oldAtt)ToDoFormField(ToDoFormFieldLayout layout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanonymize()java.lang.StringgetDefaultListener()java.lang.StringgetDescription()ElementgetElement()java.lang.LonggetId()Method returning a canonical id of the object.java.lang.StringgetIdString()intgetKind()ToDoFormFieldLayoutgetLayout()java.lang.StringgetName()java.lang.StringgetStructure()java.lang.StringgetSubAttribute(java.lang.String key)java.util.HashMap<java.lang.String,java.lang.String>getSubAttributes()java.lang.DoublegetSubDouble(java.lang.String key)java.lang.FloatgetSubFloat(java.lang.String key)java.lang.IntegergetSubInt(java.lang.String key)java.lang.ObjectgetValue()java.lang.IntegergetVersion()Method returning the version of the instancecom.proxemo.todo4.ui.forms.widgets.FormWidgetInterfacegetWidget()booleanhasDefaultListener()booleanhasDescription()booleanhasValue()Checks if the user can set a value to this field.java.lang.BooleanisActive()Method that returns whether the instance is active or not (means: logically deleted)booleanisAnyMultiSelection()booleanisButton()booleanisClickable()booleanisDate()booleanisDateTime()booleanisDynamicMenu()booleanisExclusiveMultiSelection()booleanisFloat()booleanisFontable()booleanisImage()booleanisInvisiblePanel()booleanisLabel()booleanisListenable()booleanisLongTextField()booleanisMultiSelection()booleanisPreventEnable()booleanisPreventVisible()booleanisRangedInt()booleanisReadonly()booleanisScanField()booleanisSelection()booleanisSignature()booleanisTable()booleanisTextField()booleanisTime()booleanisWebview()booleanneedsGrayBackground()voidrefresh()voidresetBorder()voidsetActive(java.lang.Boolean active)Method setting the active flag.voidsetDefaultListener(java.lang.String defaultListener)voidsetDescription(java.lang.String description)voidsetElement(Element at)voidsetId(java.lang.Long id)Method setting the canonical id of the object.voidsetInactive()Method to delete an object logically.voidsetKind(int kind)voidsetLayout(ToDoFormFieldLayout layout)voidsetName(java.lang.String name)voidsetPreventEnable(boolean preventEnable)voidsetPreventVisible(boolean preventVisible)voidsetReadonly(boolean readonly)voidsetStructure(java.lang.String structure)voidsetSubAttribute(java.lang.String key, java.lang.String value)voidsetSubAttributes(java.util.HashMap<java.lang.String,java.lang.String> subAttributes)voidsetSubFloat(java.lang.String key, float value)voidsetSubInt(java.lang.String key, int value)voidsetToActive()Method to undelete an object logically.voidsetToButton()voidsetToDate()voidsetToDateTime()voidsetToDynamicMenu()voidsetToExclusiveMultiSelection()voidsetToField()voidsetToFloat()voidsetToInvisiblePanel()voidsetToLabel()voidsetToLongField()voidsetToMultiSelection()voidsetToRangedInt()voidsetToScanField()voidsetToSelection()voidsetToSignature()voidsetToTable()voidsetToTime()voidsetToWebview()voidsetValue(java.lang.Object value)voidsetVersion(java.lang.Integer version)Method setting the version of the instance, Should under normal circumstances not be manually invoked.voidsetWidget(com.proxemo.todo4.ui.forms.widgets.FormWidgetInterface widget)java.lang.StringtoString()-
Methods inherited from class com.proxemo.todo4.bom.ToDoVersionedIdentifiable
areEqual, getActiveAsIcon, getAnonymizeString, getCanonicalId, isTransient, setToTransient
-
-
-
-
Field Detail
-
KIND_LABEL
public static final int KIND_LABEL
- See Also:
- Constant Field Values
-
KIND_FIELD
public static final int KIND_FIELD
- See Also:
- Constant Field Values
-
KIND_BOOLEAN_SELECTION
public static final int KIND_BOOLEAN_SELECTION
- See Also:
- Constant Field Values
-
KIND_BOOLEAN_MULTI_SELECTION
public static final int KIND_BOOLEAN_MULTI_SELECTION
- See Also:
- Constant Field Values
-
KIND_BOOLEAN_EXCLUSIVE_MULTI_SELECTION
public static final int KIND_BOOLEAN_EXCLUSIVE_MULTI_SELECTION
- See Also:
- Constant Field Values
-
KIND_DATE
public static final int KIND_DATE
- See Also:
- Constant Field Values
-
KIND_TIME
public static final int KIND_TIME
- See Also:
- Constant Field Values
-
KIND_DATE_TIME
public static final int KIND_DATE_TIME
- See Also:
- Constant Field Values
-
KIND_RANGED_INT
public static final int KIND_RANGED_INT
- See Also:
- Constant Field Values
-
KIND_FLOAT
public static final int KIND_FLOAT
- See Also:
- Constant Field Values
-
KIND_LONG_FIELD
public static final int KIND_LONG_FIELD
- See Also:
- Constant Field Values
-
KIND_DYNAMIC_MENU
public static final int KIND_DYNAMIC_MENU
- See Also:
- Constant Field Values
-
KIND_INVISIBLE_PANEL
public static final int KIND_INVISIBLE_PANEL
- See Also:
- Constant Field Values
-
KIND_BUTTON
public static final int KIND_BUTTON
- See Also:
- Constant Field Values
-
KIND_TABLE
public static final int KIND_TABLE
- See Also:
- Constant Field Values
-
KIND_WEBVIEW
public static final int KIND_WEBVIEW
- See Also:
- Constant Field Values
-
KIND_SIGNATURE
public static final int KIND_SIGNATURE
- See Also:
- Constant Field Values
-
KIND_IMAGE
public static final int KIND_IMAGE
- See Also:
- Constant Field Values
-
KIND_SCANFIELD
public static final int KIND_SCANFIELD
- See Also:
- Constant Field Values
-
KIND_UNKNOWN
public static final int KIND_UNKNOWN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ToDoFormField
public ToDoFormField()
-
ToDoFormField
public ToDoFormField(ToDoFormField oldAtt)
-
ToDoFormField
public ToDoFormField(ToDoFormFieldLayout layout)
-
ToDoFormField
public ToDoFormField(int kind, java.lang.String name, java.lang.String description)
-
-
Method Detail
-
isPreventEnable
public boolean isPreventEnable()
-
setPreventEnable
public void setPreventEnable(boolean preventEnable)
-
isPreventVisible
public boolean isPreventVisible()
-
setPreventVisible
public void setPreventVisible(boolean preventVisible)
-
getLayout
public ToDoFormFieldLayout getLayout()
-
setLayout
public void setLayout(ToDoFormFieldLayout layout)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getKind
public int getKind()
-
setKind
public void setKind(int kind)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getSubAttributes
public java.util.HashMap<java.lang.String,java.lang.String> getSubAttributes()
-
setSubAttributes
public void setSubAttributes(java.util.HashMap<java.lang.String,java.lang.String> subAttributes)
-
getSubDouble
public java.lang.Double getSubDouble(java.lang.String key)
-
getSubFloat
public java.lang.Float getSubFloat(java.lang.String key)
-
getSubInt
public java.lang.Integer getSubInt(java.lang.String key)
-
getSubAttribute
public java.lang.String getSubAttribute(java.lang.String key)
-
setSubFloat
public void setSubFloat(java.lang.String key, float value)
-
setSubInt
public void setSubInt(java.lang.String key, int value)
-
setSubAttribute
public void setSubAttribute(java.lang.String key, java.lang.String value)
-
getValue
public java.lang.Object getValue()
-
setValue
public void setValue(java.lang.Object value)
-
getStructure
public java.lang.String getStructure()
-
setStructure
public void setStructure(java.lang.String structure)
-
setToLabel
public void setToLabel()
-
setToField
public void setToField()
-
setToScanField
public void setToScanField()
-
setToSelection
public void setToSelection()
-
setToMultiSelection
public void setToMultiSelection()
-
setToExclusiveMultiSelection
public void setToExclusiveMultiSelection()
-
setToDate
public void setToDate()
-
setToTime
public void setToTime()
-
setToDateTime
public void setToDateTime()
-
setToRangedInt
public void setToRangedInt()
-
setToFloat
public void setToFloat()
-
setToLongField
public void setToLongField()
-
setToDynamicMenu
public void setToDynamicMenu()
-
setToInvisiblePanel
public void setToInvisiblePanel()
-
setToButton
public void setToButton()
-
setToTable
public void setToTable()
-
setToWebview
public void setToWebview()
-
setToSignature
public void setToSignature()
-
isImage
public boolean isImage()
-
isLabel
public boolean isLabel()
-
isTextField
public boolean isTextField()
-
isScanField
public boolean isScanField()
-
isSelection
public boolean isSelection()
-
isMultiSelection
public boolean isMultiSelection()
-
isExclusiveMultiSelection
public boolean isExclusiveMultiSelection()
-
isFontable
public boolean isFontable()
-
hasValue
public boolean hasValue()
Checks if the user can set a value to this field.- Returns:
- true for text fields, float fields etc, false for panels, labels etc.
-
needsGrayBackground
public boolean needsGrayBackground()
-
hasDescription
public boolean hasDescription()
-
isClickable
public boolean isClickable()
-
isDate
public boolean isDate()
-
isTime
public boolean isTime()
-
isDateTime
public boolean isDateTime()
-
isRangedInt
public boolean isRangedInt()
-
isFloat
public boolean isFloat()
-
isDynamicMenu
public boolean isDynamicMenu()
-
isInvisiblePanel
public boolean isInvisiblePanel()
-
isLongTextField
public boolean isLongTextField()
-
isAnyMultiSelection
public boolean isAnyMultiSelection()
-
isButton
public boolean isButton()
-
isTable
public boolean isTable()
-
isWebview
public boolean isWebview()
-
isSignature
public boolean isSignature()
-
isListenable
public boolean isListenable()
-
getIdString
public java.lang.String getIdString()
-
setDefaultListener
public void setDefaultListener(java.lang.String defaultListener)
-
hasDefaultListener
public boolean hasDefaultListener()
-
getDefaultListener
public java.lang.String getDefaultListener()
-
isReadonly
public boolean isReadonly()
-
setReadonly
public void setReadonly(boolean readonly)
-
getElement
public Element getElement()
-
setElement
public void setElement(Element at) throws java.text.ParseException- Throws:
java.text.ParseException
-
refresh
public void refresh()
-
resetBorder
public void resetBorder()
-
getWidget
public com.proxemo.todo4.ui.forms.widgets.FormWidgetInterface getWidget()
-
setWidget
public void setWidget(com.proxemo.todo4.ui.forms.widgets.FormWidgetInterface widget)
-
anonymize
public void anonymize()
- Specified by:
anonymizein classToDoVersionedIdentifiable
-
getId
public java.lang.Long getId()
Description copied from class:ToDoVersionedIdentifiableMethod returning a canonical id of the object. Transient objects return -1;- Specified by:
getIdin 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:ToDoVersionedIdentifiableMethod setting the canonical id of the object. Should under normal circumstances not be manually invoked.- Specified by:
setIdin classToDoVersionedIdentifiable- Parameters:
id- id of the object
-
getVersion
public java.lang.Integer getVersion()
Description copied from class:ToDoVersionedIdentifiableMethod returning the version of the instance- Specified by:
getVersionin classToDoVersionedIdentifiable- Returns:
- the version
-
setVersion
public void setVersion(java.lang.Integer version)
Description copied from class:ToDoVersionedIdentifiableMethod setting the version of the instance, Should under normal circumstances not be manually invoked.- Specified by:
setVersionin classToDoVersionedIdentifiable- Parameters:
version- of the object
-
isActive
public java.lang.Boolean isActive()
Description copied from class:ToDoVersionedIdentifiableMethod that returns whether the instance is active or not (means: logically deleted)- Specified by:
isActivein classToDoVersionedIdentifiable- Returns:
- boolean whether the object is active
-
setActive
public void setActive(java.lang.Boolean active)
Description copied from class:ToDoVersionedIdentifiableMethod setting the active flag. Invoking this method with false logically deletes the instance in the database.- Specified by:
setActivein classToDoVersionedIdentifiable- Parameters:
active- is the object active or not
-
setToActive
public void setToActive()
Description copied from class:ToDoVersionedIdentifiableMethod to undelete an object logically.- Specified by:
setToActivein classToDoVersionedIdentifiable
-
setInactive
public void setInactive()
Description copied from class:ToDoVersionedIdentifiableMethod to delete an object logically.- Specified by:
setInactivein classToDoVersionedIdentifiable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-