Package gg.xp.services
Class ServiceSelector
java.lang.Object
gg.xp.xivsupport.persistence.settings.ObservableSetting
gg.xp.services.ServiceSelector
- All Implemented Interfaces:
Resettable
- Direct Known Subclasses:
AutoMarkServiceSelector
-
Constructor Summary
ModifierConstructorDescriptionprotected
ServiceSelector
(PersistenceProvider pers, String propStub) protected
ServiceSelector
(StringSetting setting) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
What priority the built-in default option should have.protected List<ServiceHandle>
void
delete()
@Nullable ServiceHandle
boolean
isSet()
protected ServiceHandle
makeHandle
(ServiceDescriptor service) protected abstract String
name()
register
(ServiceDescriptor service) void
setCurrent
(@Nullable ServiceHandle serviceHandle) Methods inherited from class gg.xp.xivsupport.persistence.settings.ObservableSetting
addAndRunListener, addListener, notifyListeners, removeListener
-
Constructor Details
-
ServiceSelector
-
ServiceSelector
-
-
Method Details
-
name
-
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
-
setCurrent
-
getOptions
-
register
-
makeHandle
-
defaultOption
-
delete
public void delete()- Specified by:
delete
in interfaceResettable
-
isSet
public boolean isSet()- Specified by:
isSet
in interfaceResettable
-
getEffectiveOption
-