public static enum CefRequest.TransitionType extends Enum<CefRequest.TransitionType>
| 枚举常量和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addQualifier(CefRequest.TransitionFlags flag)
Any of the core values above can be augmented by one or more qualifiers
defined as TransitionFlags.
|
void |
addQualifiers(int flags)
Add qualifiers as integer value
|
int |
getQualifiers()
Returns the qualifier part of the enum as integer.
|
int |
getSource()
Returns the source part of the enum as integer.
|
int |
getValue()
Returns the integer representation of this enum, containing the source
and the qualifier as one value.
|
boolean |
isRedirect()
Tests if one of the redirect qualifiers is set.
|
boolean |
isSet(CefRequest.TransitionFlags flag)
Tests if a qualifier is set.
|
void |
removeQualifier(CefRequest.TransitionFlags flag)
Removes a qualifier from the enum.
|
static CefRequest.TransitionType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CefRequest.TransitionType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CefRequest.TransitionType TT_LINK
public static final CefRequest.TransitionType TT_EXPLICIT
public static final CefRequest.TransitionType TT_AUTO_SUBFRAME
public static final CefRequest.TransitionType TT_MANUAL_SUBFRAME
public static final CefRequest.TransitionType TT_FORM_SUBMIT
public static final CefRequest.TransitionType TT_RELOAD
public static CefRequest.TransitionType[] values()
for (CefRequest.TransitionType c : CefRequest.TransitionType.values()) System.out.println(c);
public static CefRequest.TransitionType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()
public int getSource()
public void addQualifier(CefRequest.TransitionFlags flag)
public void addQualifiers(int flags)
public int getQualifiers()
public void removeQualifier(CefRequest.TransitionFlags flag)
The - qualifier to be removed.public boolean isSet(CefRequest.TransitionFlags flag)
public boolean isRedirect()
Copyright © 2017. All rights reserved.