Enum CefRequest.TransitionType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CefRequest.TransitionType>
    Enclosing class:
    CefRequest

    public static enum CefRequest.TransitionType
    extends java.lang.Enum<CefRequest.TransitionType>
    Transition type for a request. Made up of one source value and 0 or more qualifiers.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      TT_AUTO_SUBFRAME
      Source is a subframe navigation.
      TT_EXPLICIT
      Source is some other "explicit" navigation action such as creating a new browser or using the LoadURL function.
      TT_FORM_SUBMIT
      Source is a form submission by the user.
      TT_LINK
      Source is a link click or the JavaScript window.open function.
      TT_MANUAL_SUBFRAME
      Source is a subframe navigation explicitly requested by the user that will generate new navigation entries in the back/forward list.
      TT_RELOAD
      Source is a "reload" of the page via the Reload function or by re-visiting the same URL.
    • Enum Constant Detail

      • TT_LINK

        public static final CefRequest.TransitionType TT_LINK
        Source is a link click or the JavaScript window.open function. This is also the default value for requests like sub-resource loads that are not navigations.
      • TT_EXPLICIT

        public static final CefRequest.TransitionType TT_EXPLICIT
        Source is some other "explicit" navigation action such as creating a new browser or using the LoadURL function. This is also the default value for navigations where the actual type is unknown.
      • TT_AUTO_SUBFRAME

        public static final CefRequest.TransitionType TT_AUTO_SUBFRAME
        Source is a subframe navigation. This is any content that is automatically loaded in a non-toplevel frame. For example, if a page consists of several frames containing ads, those ad URLs will have this transition type. The user may not even realize the content in these pages is a separate frame, so may not care about the URL.
      • TT_MANUAL_SUBFRAME

        public static final CefRequest.TransitionType TT_MANUAL_SUBFRAME
        Source is a subframe navigation explicitly requested by the user that will generate new navigation entries in the back/forward list. These are probably more important than frames that were automatically loaded in the background because the user probably cares about the fact that this link was loaded.
      • TT_FORM_SUBMIT

        public static final CefRequest.TransitionType TT_FORM_SUBMIT
        Source is a form submission by the user. NOTE: In some situations submitting a form does not result in this transition type. This can happen if the form uses a script to submit the contents.
      • TT_RELOAD

        public static final CefRequest.TransitionType TT_RELOAD
        Source is a "reload" of the page via the Reload function or by re-visiting the same URL. NOTE: This is distinct from the concept of whether a particular load uses "reload semantics" (i.e. bypasses cached data).
    • Method Detail

      • values

        public static CefRequest.TransitionType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CefRequest.TransitionType c : CefRequest.TransitionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CefRequest.TransitionType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public int getValue()
        Returns the integer representation of this enum, containing the source and the qualifier as one value.
        Returns:
        The integer value of the enum with all its qualifiers.
      • getSource

        public int getSource()
        Returns the source part of the enum as integer.
        Returns:
        Integer representation of the set source.
      • addQualifier

        public void addQualifier​(CefRequest.TransitionFlags flag)
        Any of the core values above can be augmented by one or more qualifiers defined as TransitionFlags. These qualifiers further define the transition.
      • addQualifiers

        public void addQualifiers​(int flags)
        Add qualifiers as integer value
      • getQualifiers

        public int getQualifiers()
        Returns the qualifier part of the enum as integer.
        Returns:
        Integer representation of the set qualifiers.
      • removeQualifier

        public void removeQualifier​(CefRequest.TransitionFlags flag)
        Removes a qualifier from the enum.
        Parameters:
        The - qualifier to be removed.
      • isRedirect

        public boolean isRedirect()
        Tests if one of the redirect qualifiers is set.