Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.ChoicePrompt.Choice
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.ChoicePrompt.Choice
- Enclosing class:
- GeckoSession.PromptDelegate.ChoicePrompt
Defines one selectable element in a ChoicePrompt.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanA boolean indicating if the item is disabled.final StringA String giving the URI of the item icon, or null if none exists (only valid for menus)final StringA String giving the ID of the item or groupA Choice array of sub-items in a group, or null if not a groupfinal StringA string giving the label for displaying the item or groupfinal booleanA boolean indicating if the item should be pre-selected (pre-checked for menu items)final booleanA boolean indicating if the item should be a menu separator (only valid for menus) -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
disabled
public final boolean disabledA boolean indicating if the item is disabled. Item should not be selectable if this is true. -
icon
A String giving the URI of the item icon, or null if none exists (only valid for menus) -
id
A String giving the ID of the item or group -
items
A Choice array of sub-items in a group, or null if not a group -
label
A string giving the label for displaying the item or group -
selected
public final boolean selectedA boolean indicating if the item should be pre-selected (pre-checked for menu items) -
separator
public final boolean separatorA boolean indicating if the item should be a menu separator (only valid for menus)
-
-
Constructor Details
-
Choice
protected Choice()Empty constructor for tests.
-