Enum Class DisplayMode

java.lang.Object
java.lang.Enum<DisplayMode>
com.teamdev.jxbrowser.browser.DisplayMode
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<DisplayMode>, Constable

@Generated("Generated by the protocol buffer compiler") public enum DisplayMode extends Enum<DisplayMode> implements com.google.protobuf.ProtocolMessageEnum
Defines the CSS display-mode setting.

This feature is particularly useful for Progressive Web Apps (PWAs) to tailor their appearance based on the display mode. Unlike in Chrome, it does not affect the browser control, and only changes the corresponding CSS setting.

  • Enum Constant Details

    • DISPLAY_MODE_UNSPECIFIED

      public static final DisplayMode DISPLAY_MODE_UNSPECIFIED
      Reserved value.

    • BROWSER

      public static final DisplayMode BROWSER
      Represents "display-mode: browser".

    • MINIMAL_UI

      public static final DisplayMode MINIMAL_UI
      Represents "display-mode: standalone".

    • STANDALONE

      public static final DisplayMode STANDALONE
      Represents "display-mode: minimal-ui".

    • FULLSCREEN

      public static final DisplayMode FULLSCREEN
      Represents "display-mode: fullscreen".

    • UNRECOGNIZED

      public static final DisplayMode UNRECOGNIZED
  • Field Details

    • DISPLAY_MODE_UNSPECIFIED_VALUE

      public static final int DISPLAY_MODE_UNSPECIFIED_VALUE
      Reserved value.

      See Also:
    • BROWSER_VALUE

      public static final int BROWSER_VALUE
      Represents "display-mode: browser".

      See Also:
    • MINIMAL_UI_VALUE

      public static final int MINIMAL_UI_VALUE
      Represents "display-mode: standalone".

      See Also:
    • STANDALONE_VALUE

      public static final int STANDALONE_VALUE
      Represents "display-mode: minimal-ui".

      See Also:
    • FULLSCREEN_VALUE

      public static final int FULLSCREEN_VALUE
      Represents "display-mode: fullscreen".

      See Also:
  • Method Details

    • values

      public static DisplayMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DisplayMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static DisplayMode valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static DisplayMode forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<DisplayMode> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static DisplayMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null