Package adams.gui.goe

Class WekaLabelRangeEditor

  • All Implemented Interfaces:
    adams.core.HelpProvider, adams.gui.goe.CustomStringRepresentationHandler, adams.gui.goe.InlineEditorSupport, adams.gui.goe.MultiSelectionEditor, PropertyEditor

    public class WekaLabelRangeEditor
    extends adams.gui.goe.RangeEditor
    Editor for WekaLabelRange objects.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Field Summary

      • Fields inherited from class adams.gui.goe.RangeEditor

        m_ButtonHelp, m_DefaultBackground, m_PanelValue, m_TextValue
      • Fields inherited from class adams.gui.goe.AbstractPropertyEditorSupport

        APPROVE_OPTION, CANCEL_OPTION, EMPTY, m_ChosenOption, m_CustomEditor, m_WindowAdapter, NULL
    • Constructor Detail

      • WekaLabelRangeEditor

        public WekaLabelRangeEditor()
    • Method Detail

      • fromCustomStringRepresentation

        public Object fromCustomStringRepresentation​(String str)
        Returns an object created from the custom string representation.
        Specified by:
        fromCustomStringRepresentation in interface adams.gui.goe.CustomStringRepresentationHandler
        Overrides:
        fromCustomStringRepresentation in class adams.gui.goe.RangeEditor
        Parameters:
        str - the string to turn into an object
        Returns:
        the object
      • parse

        protected WekaLabelRange parse​(String s)
        Parses the given string and returns the generated object. The string has to be a valid one, i.e., the isValid(String) check has been performed already and succeeded.
        Overrides:
        parse in class adams.gui.goe.RangeEditor
        Parameters:
        s - the string to parse
        Returns:
        the generated object, or null in case of an error