Class Choice.Builder<T>
java.lang.Object
com.ultikits.ultitools.ui.Choice.Builder<T>
- Type Parameters:
T- answer type
A reusable, non-thread-safe builder.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppends one line.Replaces the body with a defensive copy.build()option(ChoiceOption<T> option) Appends an option.Appends an option without a tooltip.
-
Field Details
-
title
-
body
-
options
-
-
Constructor Details
-
Builder
-
-
Method Details
-
body
Replaces the body with a defensive copy. -
addBody
Appends one line. -
option
Appends an option without a tooltip. -
option
Appends an option. -
build
- Throws:
IllegalArgumentException- if empty or values are not unique
-