Class ServiceSelector

All Implemented Interfaces:
Resettable
Direct Known Subclasses:
AutoMarkServiceSelector

public abstract class ServiceSelector extends ObservableSetting implements Resettable
  • Constructor Details

  • Method Details

    • name

      protected abstract String name()
    • defaultOptions

      protected List<ServiceHandle> defaultOptions()
    • defaultOptionPriority

      protected int defaultOptionPriority()
      What priority the built-in default option should have.

      Can be safely ignored if supplying custom defaults.

      Returns:
      The priority for the default "none/other" option.
    • getExplicitlySelectedOption

      @Nullable public @Nullable ServiceHandle getExplicitlySelectedOption()
    • setCurrent

      public void setCurrent(@Nullable @Nullable ServiceHandle serviceHandle)
    • getOptions

      public List<ServiceHandle> getOptions()
    • register

      public ServiceHandle register(ServiceDescriptor service)
    • makeHandle

      protected ServiceHandle makeHandle(ServiceDescriptor service)
    • defaultOption

      public ServiceHandle defaultOption()
    • delete

      public void delete()
      Specified by:
      delete in interface Resettable
    • isSet

      public boolean isSet()
      Specified by:
      isSet in interface Resettable
    • getEffectiveOption

      public ServiceHandle getEffectiveOption()