Class GeckoSession.PromptDelegate.ChoicePrompt.Choice

Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.ChoicePrompt.Choice
Enclosing class:
GeckoSession.PromptDelegate.ChoicePrompt

public static class GeckoSession.PromptDelegate.ChoicePrompt.Choice extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
    A boolean indicating if the item is disabled.
    final String
    A String giving the URI of the item icon, or null if none exists (only valid for menus)
    final String
    A String giving the ID of the item or group
    A Choice array of sub-items in a group, or null if not a group
    final String
    A string giving the label for displaying the item or group
    final boolean
    A boolean indicating if the item should be pre-selected (pre-checked for menu items)
    final boolean
    A boolean indicating if the item should be a menu separator (only valid for menus)
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Empty constructor for tests.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • disabled

      public final boolean disabled
      A boolean indicating if the item is disabled. Item should not be selectable if this is true.
    • icon

      @Nullable public final String icon
      A String giving the URI of the item icon, or null if none exists (only valid for menus)
    • id

      @NonNull public final String id
      A String giving the ID of the item or group
    • items

      @Nullable public final GeckoSession.PromptDelegate.ChoicePrompt.Choice[] items
      A Choice array of sub-items in a group, or null if not a group
    • label

      @NonNull public final String label
      A string giving the label for displaying the item or group
    • selected

      public final boolean selected
      A boolean indicating if the item should be pre-selected (pre-checked for menu items)
    • separator

      public final boolean separator
      A boolean indicating if the item should be a menu separator (only valid for menus)
  • Constructor Details

    • Choice

      protected Choice()
      Empty constructor for tests.