Class SequenceField
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.AbstractField
-
- org.silverpeas.core.contribution.content.form.field.TextField
-
- org.silverpeas.core.contribution.content.form.field.SequenceField
-
- All Implemented Interfaces:
Serializable
,Comparable
,Field
public class SequenceField extends TextField
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE
-
Fields inherited from class org.silverpeas.core.contribution.content.form.field.TextField
CONTENT_TYPE, CONTENT_TYPE_FLOAT, CONTENT_TYPE_INT, PARAM_MAXLENGTH
-
Fields inherited from interface org.silverpeas.core.contribution.content.form.Field
FILE_PARAM_NAME_SUFFIX, TYPE_FILE
-
-
Constructor Summary
Constructors Constructor Description SequenceField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNextValue(String fieldName, String templateName, String componentId, int minLength, int startValue, boolean reuseAvailableValues, boolean global)
String
getStringValue()
Returns the normalized String value.String
getTypeName()
Returns the type name.boolean
isReadOnly()
Returns true if the value is read only.void
setStringValue(String value)
Set this field value from a normalized String value.-
Methods inherited from class org.silverpeas.core.contribution.content.form.field.TextField
acceptObjectValue, acceptStringValue, acceptValue, acceptValue, compareTo, equals, getObjectValue, getValue, getValue, hashCode, isNull, setNull, setObjectValue, setValue, setValue
-
Methods inherited from class org.silverpeas.core.contribution.content.form.AbstractField
getName, getOccurrence, setName, setOccurrence
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTypeName
public String getTypeName()
Description copied from class:TextField
Returns the type name.- Specified by:
getTypeName
in interfaceField
- Overrides:
getTypeName
in classTextField
-
setStringValue
public void setStringValue(String value)
Description copied from interface:Field
Set this field value from a normalized String value.- Specified by:
setStringValue
in interfaceField
- Specified by:
setStringValue
in classAbstractField
-
getStringValue
public String getStringValue()
Description copied from interface:Field
Returns the normalized String value.- Specified by:
getStringValue
in interfaceField
- Specified by:
getStringValue
in classAbstractField
-
isReadOnly
public boolean isReadOnly()
Description copied from class:TextField
Returns true if the value is read only.- Specified by:
isReadOnly
in classTextField
-
getNextValue
public String getNextValue(String fieldName, String templateName, String componentId, int minLength, int startValue, boolean reuseAvailableValues, boolean global)
- Parameters:
fieldName
- The field's name.templateName
- The template's name.componentId
- The id of the component containing the field.minLength
- The field's minimum length.startValue
- The field's start value.reuseAvailableValues
- Indicates whether previous values used by objects which were removed can be used again.global
- Indicates whether all values of same form is gathered between instances- Returns:
- The next sequence value to use.
-
-