Class BooleanEditor

  • All Implemented Interfaces:
    java.beans.PropertyEditor

    public class BooleanEditor
    extends java.beans.PropertyEditorSupport
    A property editor for Boolean.
    Version:
    $Revision$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String[] BOOLEAN_TAGS  
    • Constructor Summary

      Constructors 
      Constructor Description
      BooleanEditor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getTags()  
      void setAsText​(java.lang.String text)
      Map the argument text into Boolean.TRUE or Boolean.FALSE using Boolean.valueOf.
      • Methods inherited from class java.beans.PropertyEditorSupport

        addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, 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

      • BOOLEAN_TAGS

        private static final java.lang.String[] BOOLEAN_TAGS
    • Constructor Detail

      • BooleanEditor

        public BooleanEditor()
    • Method Detail

      • setAsText

        public void setAsText​(java.lang.String text)
        Map the argument text into Boolean.TRUE or Boolean.FALSE using Boolean.valueOf.
        Specified by:
        setAsText in interface java.beans.PropertyEditor
        Overrides:
        setAsText in class java.beans.PropertyEditorSupport
      • getTags

        public java.lang.String[] getTags()
        Specified by:
        getTags in interface java.beans.PropertyEditor
        Overrides:
        getTags in class java.beans.PropertyEditorSupport
        Returns:
        the values {"true", "false"}