Class StringArrayEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor

    public class StringArrayEditor
    extends java.beans.PropertyEditorSupport
    A property editor for String[]. The text format of a string array is a comma or \n, \r seperated list with \, representing an escaped comma to include in the string element.
    Version:
    $Revision$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.regex.Pattern commaDelim  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAsText()  
      (package private) static java.lang.String[] parseList​(java.lang.String text)  
      void setAsText​(java.lang.String text)
      Build a String[] from comma or eol seperated elements with a \, representing a ',' to include in the current string element.
      • Methods inherited from class java.beans.PropertyEditorSupport

        addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
      • Methods inherited from class java.lang.Object

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

      • commaDelim

        java.util.regex.Pattern commaDelim
    • Constructor Detail

      • StringArrayEditor

        public StringArrayEditor()
    • Method Detail

      • parseList

        static java.lang.String[] parseList​(java.lang.String text)
      • setAsText

        public void setAsText​(java.lang.String text)
        Build a String[] from comma or eol seperated elements with a \, representing a ',' to include in the current string element.
        Specified by:
        setAsText in interface java.beans.PropertyEditor
        Overrides:
        setAsText in class java.beans.PropertyEditorSupport
      • getAsText

        public java.lang.String getAsText()
        Specified by:
        getAsText in interface java.beans.PropertyEditor
        Overrides:
        getAsText in class java.beans.PropertyEditorSupport
        Returns:
        a comma seperated string of the array elements