Agentflow
V3.1

pe.pase
Class ArtFormItem

java.lang.Object
  extended by pe.pase.ArtFormItem
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AFArtFormItem, MobileFormItem

public class ArtFormItem
extends java.lang.Object
implements java.io.Serializable

An abstract representation of Artifact Form Item.

The Form describes the facade of the electronic document in the Agentflow System. It is composed of a Panel and various Components such as label, textfield, chechbox, and so on. The class is used to represent these Components.

The fundamental fields of the Compnent include the FormItemID, FormItemName, and FormItemSynopsis. They represent the identifier, name, and synopsis of the Component. The FormItemDefaultValue is used to initialize the value of the Component.

The FormItemType represents the type of the Component. In Agentflow System, the following types are provided: Label, TextField, TextArea, Checkbox, RadioBox, Button, ComboBox, List, and Table.

The FormItemProperty is used to show the 'property' of the Component. The property defines the Component's position, color, range, opaqueness, font, savable, and so on. The property of 'savable' indicates whether to store the value of the Component into the database. If the Component is 'savable', the value will be stored while some task, whose operation artifact contains the Component, is completed. Then the value will set as the initial value in the next invoked task. We use FormItemIsInstance to represent the property.

Since:
version 1.0.0
Version:
1.1.5,
Author:
sbyan@flowring.com
See Also:
Artifact, Serialized Form

Field Summary
static java.lang.String CHAR_LENGTH_CHECK
           
static java.lang.String CHECK_DATA
           
static java.lang.String DATA_TYPE_CHECK
           
static java.lang.String[] dvPropertyNames
           
static java.lang.String EMAIL_CHECK
           
static java.lang.String EMPTY_CHECK
           
static java.lang.String ERROR_MSG
           
static java.lang.String EXECUTE_CHECK
           
static java.lang.String INVALID_CHAR_CHECK
           
static java.lang.String NUM_RANGE_CHECK
           
static java.lang.String Type_Button
          Component type: Button
static java.lang.String Type_CheckBox
          Component type: CheckBox
static java.lang.String Type_ComboBox
          Component type: ComboBox
static java.lang.String Type_FButton
           
static java.lang.String Type_FCheckBox
           
static java.lang.String Type_FComboBox
           
static java.lang.String Type_FLabel
           
static java.lang.String Type_FList
           
static java.lang.String Type_Form
           
static java.lang.String Type_FRadioBox
           
static java.lang.String Type_FTable
           
static java.lang.String Type_FTextArea
           
static java.lang.String Type_FTextField
           
static java.lang.String Type_Javabeans
           
static java.lang.String Type_Label
          Component type: Label
static java.lang.String Type_List
          Component type: List
static java.lang.String Type_OtherComponent
          Component type: JAVABEANS
static java.lang.String Type_RadioBox
          Component type: RadioBox
static java.lang.String Type_Table
          Component type: Table
static java.lang.String Type_Tablebeans
           
static java.lang.String Type_TextArea
          Component type: TextArea
static java.lang.String Type_TextField
          Component type: TextField
static java.lang.String VALID_CHAR_CHECK
           
 
Constructor Summary
ArtFormItem(ArtFormItem item)
           
ArtFormItem(java.lang.String id)
          Constructor.
ArtFormItem(java.lang.String id, java.lang.String name, java.lang.Object value)
          Constructor.
 
Method Summary
 java.lang.String getArtFormID()
           
 java.lang.String getCmpType()
          Get type of the artifact form item.
 java.util.HashMap getDataValidateData(java.lang.String checkname)
           
 java.lang.Object getDataValidateData(java.lang.String checkname, java.lang.String data)
           
 pe.pase.ArtFormItem.DataValidateHashtable getDataValidateHashtable()
           
 java.lang.Object getDefaultValue()
          Get the default value of the artifact form item.
 EFormScriptSet getEFormScriptSet()
           
 java.lang.String getID()
          Get the id of the artifact form item.
 java.lang.String getName()
          Get the name of the artifact form item.
 java.lang.String getOrder()
           
 java.util.Properties getProperties()
           
 java.lang.String getProperty()
           
 java.lang.String getPropertyData(java.lang.String prop)
          Get specific property value of the property String
 java.lang.String getSynopsis()
          Get the synopsis of the artifact form item.
 boolean isInstance()
          Check whether the artifact form item is a instance.
 void setArtFormID(java.lang.String artFormID)
           
 void setCmpType(java.lang.String type)
          Set type of the artifact form item.
 void setDataValidateHashtable(pe.pase.ArtFormItem.DataValidateHashtable table)
           
 void setDefaultValue(java.lang.Object value)
          Set the default value of the artifact form item.
 void setEFormScriptSet(EFormScriptSet eFormScriptSet)
           
 void setID(java.lang.String id)
          Set the id of the artifact form item.
 void setInstance(boolean b)
          Set the artifact form item is a instance or not.
 void setName(java.lang.String name)
          Set the name of the artifact form item.
 void setOrder(java.lang.String o)
           
 void setProperties(java.util.Properties properties)
           
 void setSynopsis(java.lang.String syno)
          Set the synopsis of the artifact form item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHAR_LENGTH_CHECK

public static final java.lang.String CHAR_LENGTH_CHECK
See Also:
Constant Field Values

CHECK_DATA

public static final java.lang.String CHECK_DATA
See Also:
Constant Field Values

DATA_TYPE_CHECK

public static final java.lang.String DATA_TYPE_CHECK
See Also:
Constant Field Values

dvPropertyNames

public static java.lang.String[] dvPropertyNames

EMAIL_CHECK

public static final java.lang.String EMAIL_CHECK
See Also:
Constant Field Values

EMPTY_CHECK

public static final java.lang.String EMPTY_CHECK
See Also:
Constant Field Values

ERROR_MSG

public static final java.lang.String ERROR_MSG
See Also:
Constant Field Values

EXECUTE_CHECK

public static final java.lang.String EXECUTE_CHECK
See Also:
Constant Field Values

INVALID_CHAR_CHECK

public static final java.lang.String INVALID_CHAR_CHECK
See Also:
Constant Field Values

NUM_RANGE_CHECK

public static final java.lang.String NUM_RANGE_CHECK
See Also:
Constant Field Values

Type_Button

public static final java.lang.String Type_Button
Component type: Button

Since:
version 1.0.0
See Also:
Constant Field Values

Type_CheckBox

public static final java.lang.String Type_CheckBox
Component type: CheckBox

Since:
version 1.0.0
See Also:
Constant Field Values

Type_ComboBox

public static final java.lang.String Type_ComboBox
Component type: ComboBox

Since:
version 1.0.0
See Also:
Constant Field Values

Type_FButton

public static final java.lang.String Type_FButton
See Also:
Constant Field Values

Type_FCheckBox

public static final java.lang.String Type_FCheckBox
See Also:
Constant Field Values

Type_FComboBox

public static final java.lang.String Type_FComboBox
See Also:
Constant Field Values

Type_FLabel

public static final java.lang.String Type_FLabel
See Also:
Constant Field Values

Type_FList

public static final java.lang.String Type_FList
See Also:
Constant Field Values

Type_Form

public static final java.lang.String Type_Form
See Also:
Constant Field Values

Type_FRadioBox

public static final java.lang.String Type_FRadioBox
See Also:
Constant Field Values

Type_FTable

public static final java.lang.String Type_FTable
See Also:
Constant Field Values

Type_FTextArea

public static final java.lang.String Type_FTextArea
See Also:
Constant Field Values

Type_FTextField

public static final java.lang.String Type_FTextField
See Also:
Constant Field Values

Type_Javabeans

public static final java.lang.String Type_Javabeans
See Also:
Constant Field Values

Type_Label

public static final java.lang.String Type_Label
Component type: Label

Since:
version 1.0.0
See Also:
Constant Field Values

Type_List

public static final java.lang.String Type_List
Component type: List

Since:
version 1.0.0
See Also:
Constant Field Values

Type_OtherComponent

public static final java.lang.String Type_OtherComponent
Component type: JAVABEANS

Since:
version 1.0.0
See Also:
Constant Field Values

Type_RadioBox

public static final java.lang.String Type_RadioBox
Component type: RadioBox

Since:
version 1.0.0
See Also:
Constant Field Values

Type_Table

public static final java.lang.String Type_Table
Component type: Table

Since:
version 1.0.0
See Also:
Constant Field Values

Type_Tablebeans

public static final java.lang.String Type_Tablebeans
See Also:
Constant Field Values

Type_TextArea

public static final java.lang.String Type_TextArea
Component type: TextArea

Since:
version 1.0.0
See Also:
Constant Field Values

Type_TextField

public static final java.lang.String Type_TextField
Component type: TextField

Since:
version 1.0.0
See Also:
Constant Field Values

VALID_CHAR_CHECK

public static final java.lang.String VALID_CHAR_CHECK
See Also:
Constant Field Values
Constructor Detail

ArtFormItem

public ArtFormItem(ArtFormItem item)

ArtFormItem

public ArtFormItem(java.lang.String id)
Constructor. Construct a instance of ArtFormItem with the specified id of the artifact form item and initial other variables.

Parameters:
id - the form item id.
Since:
version 1.0.0

ArtFormItem

public ArtFormItem(java.lang.String id,
                   java.lang.String name,
                   java.lang.Object value)
Constructor. Construct a instance of ArtFormItem with the specified id, name, and value of the artifact form item and initial other variables.

Parameters:
id - the form item id
name - the form item name
value - the form item default value
Since:
version 1.0.0
Method Detail

getArtFormID

public java.lang.String getArtFormID()

getCmpType

public java.lang.String getCmpType()
Get type of the artifact form item.

Returns:
the type
Since:
version 1.0.0

getDataValidateData

public java.util.HashMap getDataValidateData(java.lang.String checkname)

getDataValidateData

public java.lang.Object getDataValidateData(java.lang.String checkname,
                                            java.lang.String data)

getDataValidateHashtable

public pe.pase.ArtFormItem.DataValidateHashtable getDataValidateHashtable()

getDefaultValue

public java.lang.Object getDefaultValue()
Get the default value of the artifact form item.

Returns:
the default value
Since:
version 1.0.0

getEFormScriptSet

public EFormScriptSet getEFormScriptSet()

getID

public java.lang.String getID()
Get the id of the artifact form item.

Returns:
the id
Since:
version 1.0.0

getName

public java.lang.String getName()
Get the name of the artifact form item.

Returns:
the name
Since:
version 1.0.0

getOrder

public java.lang.String getOrder()

getProperties

public java.util.Properties getProperties()

getProperty

public java.lang.String getProperty()

getPropertyData

public java.lang.String getPropertyData(java.lang.String prop)
Get specific property value of the property String

Returns:
the type
Since:
version 1.2p7

getSynopsis

public java.lang.String getSynopsis()
Get the synopsis of the artifact form item.

Returns:
the synopsis
Since:
version 1.0.0

isInstance

public boolean isInstance()
Check whether the artifact form item is a instance.

Returns:
true the artifact form item is a instance; false otherwise
Since:
version 1.0.0

setArtFormID

public void setArtFormID(java.lang.String artFormID)

setCmpType

public void setCmpType(java.lang.String type)
Set type of the artifact form item.

Parameters:
type - the given type
Since:
version 1.0.0

setDataValidateHashtable

public void setDataValidateHashtable(pe.pase.ArtFormItem.DataValidateHashtable table)

setDefaultValue

public void setDefaultValue(java.lang.Object value)
Set the default value of the artifact form item.

Parameters:
value - the given default value
Since:
version 1.0.0

setEFormScriptSet

public void setEFormScriptSet(EFormScriptSet eFormScriptSet)

setID

public void setID(java.lang.String id)
Set the id of the artifact form item.

Parameters:
id - the given id
Since:
version 1.0.0

setInstance

public void setInstance(boolean b)
Set the artifact form item is a instance or not.

Parameters:
b - the given boolean value
Since:
version 1.0.0

setName

public void setName(java.lang.String name)
Set the name of the artifact form item.

Parameters:
name - the given name
Since:
version 1.0.0

setOrder

public void setOrder(java.lang.String o)

setProperties

public void setProperties(java.util.Properties properties)

setSynopsis

public void setSynopsis(java.lang.String syno)
Set the synopsis of the artifact form item.

Parameters:
syno - the given synopsis
Since:
version 1.0.0

Agentflow
V3.1

Submit a bug or feature
Copyright 1999-2010 Flowring , Inc. 12F., No.120, Sec2, Gongdao 5th Rd.,
Hsinchu City 300, Taiwan (R.O.C.) All Rights Reserved.