static <T> CyclingButtonWidget.Builder<T> |
CyclingButtonWidget.builder(Function<T,Text> valueToText) |
Creates a new builder for a cycling button widget.
|
CyclingButtonWidget.Builder<T> |
CyclingButtonWidget.Builder.initially(T value) |
Sets the initial value of this button widget.
|
CyclingButtonWidget.Builder<T> |
CyclingButtonWidget.Builder.narration(Function<CyclingButtonWidget<T>,MutableText> narrationMessageFactory) |
Overrides the narration message of the button to build.
|
CyclingButtonWidget.Builder<T> |
CyclingButtonWidget.Builder.omitKeyText() |
Makes the built button omit the option and only display the current value
for its text, such as showing "Jump Mode" than "Mode: Jump Mode".
|
static CyclingButtonWidget.Builder<Boolean> |
CyclingButtonWidget.onOffBuilder() |
|
static CyclingButtonWidget.Builder<Boolean> |
CyclingButtonWidget.onOffBuilder(boolean initialValue) |
|
static CyclingButtonWidget.Builder<Boolean> |
CyclingButtonWidget.onOffBuilder(Text on,
Text off) |
|
CyclingButtonWidget.Builder<T> |
CyclingButtonWidget.Builder.tooltip(CyclingButtonWidget.TooltipFactory<T> tooltipFactory) |
Sets the tooltip factory that provides tooltips for any of the values.
|
CyclingButtonWidget.Builder<T> |
CyclingButtonWidget.Builder.values(BooleanSupplier alternativeToggle,
List<T> defaults,
List<T> alternatives) |
Sets the option values for this button.
|
CyclingButtonWidget.Builder<T> |
CyclingButtonWidget.Builder.values(List<T> values) |
Sets the option values for this button.
|
CyclingButtonWidget.Builder<T> |
CyclingButtonWidget.Builder.values(List<T> defaults,
List<T> alternatives) |
Sets the option values for this button.
|
CyclingButtonWidget.Builder<T> |
CyclingButtonWidget.Builder.values(T[] values) |
Sets the option values for this button.
|