Package jmri

Class SelectionPropertyDescriptor

    • Constructor Detail

      • SelectionPropertyDescriptor

        public SelectionPropertyDescriptor​(@Nonnull
                                           java.lang.String key,
                                           java.lang.String[] options,
                                           java.lang.String[] optionTips,
                                           java.lang.String defVal)
        Create a new SelectionPropertyDescriber.
        key - Property Key - used to identify the property in Bean.getProperty(String).
        options - Options for the property in String array.
        optionTips - Tool-tips for options of the property in String array.
        defVal - Default property value.
    • Method Detail

      • getOptions

        public java.lang.String[] getOptions()
        Get the property options. Should be same length as getOptionToolTips()
        copy of the property options.
      • getOptionToolTips

        public java.util.List<java.lang.String> getOptionToolTips()
        Get Tool-tips for the options. Should be same length as getOptions()
        list of tool-tips.