Class MultivalueStringDataHandler
java.lang.Object
com.saperion.ngc.iform.field.lookup.multi.AbstractMultivalueDataHandler
com.saperion.ngc.iform.field.lookup.multi.MultivalueStringDataHandler
- All Implemented Interfaces:
MultivalueDataHandler
,Serializable
Handler for multivalue-fields with
String
values.- See Also:
-
Field Summary
Fields inherited from class com.saperion.ngc.iform.field.lookup.multi.AbstractMultivalueDataHandler
editField
-
Constructor Summary
ConstructorsConstructorDescriptionMultivalueStringDataHandler
(com.saperion.ngc.iform.xml.EditFieldType editField) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears all values contained in the field.com.saperion.intf.SaPropertyValue
getText()
void
Reads the data from the text entered in the field.void
setObjectValue
(Object value) Sets the value of this field.void
setPropertyValue
(com.saperion.intf.SaPropertyValue value) Sets the value of this field.Methods inherited from class com.saperion.ngc.iform.field.lookup.multi.AbstractMultivalueDataHandler
getSaPropertyValue
-
Constructor Details
-
MultivalueStringDataHandler
public MultivalueStringDataHandler(com.saperion.ngc.iform.xml.EditFieldType editField) - Parameters:
editField
- definition of the field that will use this handler
-
-
Method Details
-
parseText
Description copied from interface:MultivalueDataHandler
Reads the data from the text entered in the field. This methods throws an IllegalArgumentException when parsing the data failed.- Parameters:
text
- field's text
-
getText
- Returns:
- current data as string to be written to the field.
-
clear
public void clear()Description copied from interface:MultivalueDataHandler
Clears all values contained in the field. -
getObjectValue
- Returns:
- the data handled by this datahandler as object. It will be a java.util.List.
-
setObjectValue
Description copied from interface:MultivalueDataHandler
Sets the value of this field. Accepts a T or Collection<T>.- Parameters:
value
- to set
-
setPropertyValue
public void setPropertyValue(com.saperion.intf.SaPropertyValue value) Description copied from interface:MultivalueDataHandler
Sets the value of this field.- Parameters:
value
- property value to set
-
getPropertyValue
public com.saperion.intf.SaPropertyValue getPropertyValue()- Returns:
- the values of this field as
SaPropertyValue
-