Class FileField
- 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.FileField
-
- All Implemented Interfaces:
Serializable
,Comparable
,Field
public class FileField extends TextField
A FileField stores an attachment reference.- See Also:
Field
,FieldDisplayer
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PARAM_ID_SUFFIX
static String
TYPE
The text field type name.-
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 FileField()
The no parameters constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttachmentId()
String
getStringValue()
Returns the string value of this field.String
getTypeName()
Returns the type name.boolean
isReadOnly()
Returns true if the value is read only.void
setAttachmentId(String attachmentId)
void
setStringValue(String value)
Set the string value of this field.-
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
The text field type name.- See Also:
- Constant Field Values
-
PARAM_ID_SUFFIX
public static final String PARAM_ID_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTypeName
public String getTypeName()
Returns the type name.- Specified by:
getTypeName
in interfaceField
- Overrides:
getTypeName
in classTextField
-
getAttachmentId
public String getAttachmentId()
-
setAttachmentId
public void setAttachmentId(String attachmentId)
-
getStringValue
public String getStringValue()
Returns the string value of this field.- Specified by:
getStringValue
in interfaceField
- Specified by:
getStringValue
in classAbstractField
-
setStringValue
public void setStringValue(String value)
Set the string value of this field.- Specified by:
setStringValue
in interfaceField
- Specified by:
setStringValue
in classAbstractField
-
isReadOnly
public boolean isReadOnly()
Description copied from class:TextField
Returns true if the value is read only.- Specified by:
isReadOnly
in classTextField
-
-