Class StringCollectionHandler
- java.lang.Object
-
- net.ssehub.easy.producer.ui.confModel.StringCollectionHandler
-
- All Implemented Interfaces:
IGUITextHandler
public class StringCollectionHandler extends java.lang.Object implements IGUITextHandler
Class to handle string collections and their format in editor.- Author:
- Dennis Konoppa
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringseparator
-
Constructor Summary
Constructors Constructor Description StringCollectionHandler(java.lang.String separator)C'tor for StringCollectionEditor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcreateTextAreaNumbers(java.util.List<java.lang.String> strings)Method to create format of lists of numbers in the Editor.java.lang.Stringformat(java.lang.String text)Method to create the format for a text.java.util.List<java.lang.Object>split(java.lang.String format)Method to generate List of Objects from a given format.
-
-
-
Method Detail
-
format
public java.lang.String format(java.lang.String text)
Description copied from interface:IGUITextHandlerMethod to create the format for a text.- Specified by:
formatin interfaceIGUITextHandler- Parameters:
text- the text- Returns:
- formats which is fitting for the text
-
split
public java.util.List<java.lang.Object> split(java.lang.String format)
Description copied from interface:IGUITextHandlerMethod to generate List of Objects from a given format.- Specified by:
splitin interfaceIGUITextHandler- Parameters:
format- the format which contains values of the Machine- Returns:
- List of Objects which contains valid values for the Machine
-
createTextAreaNumbers
public java.lang.String createTextAreaNumbers(java.util.List<java.lang.String> strings)
Method to create format of lists of numbers in the Editor.- Parameters:
strings- - List of strings- Returns:
- String with correct format for Editor
-
-