Package jmri

Class SelectionPropertyDescriptor

    • Constructor Detail

      • SelectionPropertyDescriptor

        public SelectionPropertyDescriptor​(@Nonnull
                                           java.lang.String key,
                                           @Nonnull
                                           java.lang.String[] options,
                                           @Nonnull
                                           java.lang.String[] optionTips,
                                           @Nonnull
                                           java.lang.String defVal)
        Create a new SelectionPropertyDescriber.
        Parameters:
        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()
        Returns:
        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()
        Returns:
        list of tool-tips.