Class TextFieldImpl
- 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.TextFieldImpl
-
- All Implemented Interfaces:
Serializable
,Comparable
,Field
public class TextFieldImpl extends TextField
A TextFieldImpl stores use a String attribute to store its value.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.contribution.content.form.field.TextField
CONTENT_TYPE, CONTENT_TYPE_FLOAT, CONTENT_TYPE_INT, PARAM_MAXLENGTH, TYPE
-
Fields inherited from interface org.silverpeas.core.contribution.content.form.Field
FILE_PARAM_NAME_SUFFIX, TYPE_FILE
-
-
Constructor Summary
Constructors Constructor Description TextFieldImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getStringValue()
Returns the string value of this field.List<String>
getSuggestions(String fieldName, String templateName, String componentId)
boolean
isReadOnly()
Returns true if the value is read only.static void
printSuggestionsIncludes(PagesContext pageContext, String fieldName, PrintWriter out)
static void
printSuggestionsScripts(String fieldName, List<String> suggestions, PrintWriter out)
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, getTypeName, getValue, getValue, hashCode, isNull, setNull, setObjectValue, setValue, setValue
-
Methods inherited from class org.silverpeas.core.contribution.content.form.AbstractField
getName, getOccurrence, setName, setOccurrence
-
-
-
-
Method Detail
-
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()
Returns true if the value is read only.- Specified by:
isReadOnly
in classTextField
-
getSuggestions
public List<String> getSuggestions(String fieldName, String templateName, String componentId)
-
printSuggestionsIncludes
public static void printSuggestionsIncludes(PagesContext pageContext, String fieldName, PrintWriter out)
-
printSuggestionsScripts
public static void printSuggestionsScripts(String fieldName, List<String> suggestions, PrintWriter out)
-
-