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 int
KIND_BOOLEAN_EXCLUSIVE_MULTI_SELECTION
static int
KIND_BOOLEAN_MULTI_SELECTION
static int
KIND_BOOLEAN_SELECTION
static int
KIND_BUTTON
static int
KIND_DATE
static int
KIND_DATE_TIME
static int
KIND_DYNAMIC_MENU
static int
KIND_FIELD
static int
KIND_FLOAT
static int
KIND_IMAGE
static int
KIND_INVISIBLE_PANEL
static int
KIND_LABEL
static int
KIND_LONG_FIELD
static int
KIND_RANGED_INT
static int
KIND_SIGNATURE
static int
KIND_TABLE
static int
KIND_TIME
static int
KIND_UNKNOWN
static int
KIND_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 void
anonymize()
java.lang.String
getDefaultListener()
java.lang.String
getDescription()
Element
getElement()
java.lang.Long
getId()
Method returning a canonical id of the object.java.lang.String
getIdString()
int
getKind()
ToDoFormFieldLayout
getLayout()
java.lang.String
getName()
java.lang.String
getStructure()
java.lang.String
getSubAttribute(java.lang.String key)
java.util.HashMap<java.lang.String,java.lang.String>
getSubAttributes()
java.lang.Double
getSubDouble(java.lang.String key)
java.lang.Float
getSubFloat(java.lang.String key)
java.lang.Integer
getSubInt(java.lang.String key)
java.lang.Object
getValue()
java.lang.Integer
getVersion()
Method returning the version of the instancecom.proxemo.todo4.ui.forms.widgets.FormWidgetInterface
getWidget()
boolean
hasDefaultListener()
boolean
hasDescription()
boolean
hasValue()
Checks if the user can set a value to this field.java.lang.Boolean
isActive()
Method that returns whether the instance is active or not (means: logically deleted)boolean
isAnyMultiSelection()
boolean
isButton()
boolean
isClickable()
boolean
isDate()
boolean
isDateTime()
boolean
isDynamicMenu()
boolean
isExclusiveMultiSelection()
boolean
isFloat()
boolean
isFontable()
boolean
isImage()
boolean
isInvisiblePanel()
boolean
isLabel()
boolean
isListenable()
boolean
isLongTextField()
boolean
isMultiSelection()
boolean
isPreventEnable()
boolean
isPreventVisible()
boolean
isRangedInt()
boolean
isReadonly()
boolean
isSelection()
boolean
isSignature()
boolean
isTable()
boolean
isTextField()
boolean
isTime()
boolean
isWebview()
void
refresh()
void
resetBorder()
void
setActive(java.lang.Boolean active)
Method setting the active flag.void
setDefaultListener(java.lang.String defaultListener)
void
setDescription(java.lang.String description)
void
setElement(Element at)
void
setId(java.lang.Long id)
Method setting the canonical id of the object.void
setInactive()
Method to delete an object logically.void
setKind(int kind)
void
setLayout(ToDoFormFieldLayout layout)
void
setName(java.lang.String name)
void
setPreventEnable(boolean preventEnable)
void
setPreventVisible(boolean preventVisible)
void
setReadonly(boolean readonly)
void
setStructure(java.lang.String structure)
void
setSubAttribute(java.lang.String key, java.lang.String value)
void
setSubAttributes(java.util.HashMap<java.lang.String,java.lang.String> subAttributes)
void
setSubFloat(java.lang.String key, float value)
void
setSubInt(java.lang.String key, int value)
void
setToActive()
Method to undelete an object logically.void
setToButton()
void
setToDate()
void
setToDateTime()
void
setToDynamicMenu()
void
setToExclusiveMultiSelection()
void
setToField()
void
setToFloat()
void
setToInvisiblePanel()
void
setToLabel()
void
setToLongField()
void
setToMultiSelection()
void
setToRangedInt()
void
setToSelection()
void
setToSignature()
void
setToTable()
void
setToTime()
void
setToWebview()
void
setValue(java.lang.Object value)
void
setVersion(java.lang.Integer version)
Method setting the version of the instance, Should under normal circumstances not be manually invoked.void
setWidget(com.proxemo.todo4.ui.forms.widgets.FormWidgetInterface widget)
java.lang.String
toString()
-
Methods inherited from class com.proxemo.todo4.bom.ToDoVersionedIdentifiable
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_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()
-
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()
-
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.
-
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:
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-