Class 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.String separator  
    • 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.String createTextAreaNumbers​(java.util.List<java.lang.String> strings)
      Method to create format of lists of numbers in the Editor.
      java.lang.String format​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • separator

        private java.lang.String separator
    • Constructor Detail

      • StringCollectionHandler

        public StringCollectionHandler​(java.lang.String separator)
        C'tor for StringCollectionEditor.
        Parameters:
        separator - - the separator string
    • Method Detail

      • format

        public java.lang.String format​(java.lang.String text)
        Description copied from interface: IGUITextHandler
        Method to create the format for a text.
        Specified by:
        format in interface IGUITextHandler
        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: IGUITextHandler
        Method to generate List of Objects from a given format.
        Specified by:
        split in interface IGUITextHandler
        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