com.silverpeas.form.fieldType
Class TextFieldImpl

java.lang.Object
  extended by com.silverpeas.form.AbstractField
      extended by com.silverpeas.form.fieldType.TextField
          extended by com.silverpeas.form.fieldType.TextFieldImpl
All Implemented Interfaces:
Field, Serializable, Comparable

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 com.silverpeas.form.fieldType.TextField
CONTENT_TYPE, CONTENT_TYPE_FLOAT, CONTENT_TYPE_INT, PARAM_MAXLENGTH, TYPE
 
Fields inherited from interface com.silverpeas.form.Field
FILE_PARAM_NAME_SUFFIX, TYPE_FILE
 
Constructor Summary
TextFieldImpl()
           
 
Method Summary
 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(PagesContext pageContext, String fieldName, List<String> suggestions, PrintWriter out)
           
 void setStringValue(String value)
          Set the string value of this field.
 
Methods inherited from class com.silverpeas.form.fieldType.TextField
acceptObjectValue, acceptStringValue, acceptValue, acceptValue, compareTo, equals, getObjectValue, getTypeName, getValue, getValue, hashCode, isNull, setNull, setObjectValue, setValue, setValue
 
Methods inherited from class com.silverpeas.form.AbstractField
getName, getOccurrence, setName, setOccurrence
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFieldImpl

public TextFieldImpl()
Method Detail

getStringValue

public String getStringValue()
Returns the string value of this field.

Specified by:
getStringValue in interface Field
Specified by:
getStringValue in class AbstractField

setStringValue

public void setStringValue(String value)
Set the string value of this field.

Specified by:
setStringValue in interface Field
Specified by:
setStringValue in class AbstractField

isReadOnly

public boolean isReadOnly()
Returns true if the value is read only.

Specified by:
isReadOnly in class TextField

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(PagesContext pageContext,
                                           String fieldName,
                                           List<String> suggestions,
                                           PrintWriter out)


Copyright © 2016 Silverpeas. All Rights Reserved.