public static enum CefRequest.TransitionType extends java.lang.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.
上面的任何核心值都可以通过一个或多个定义为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(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
返回带有指定名称的该类型的枚举常量。 |
static CefRequest.TransitionType[] |
values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
按照声明该枚举类型的常量的顺序,返回包含这些常量的数组。 |
public static final CefRequest.TransitionType TT_AUTO_SUBFRAME
public static final CefRequest.TransitionType TT_EXPLICIT
public static final CefRequest.TransitionType TT_FORM_SUBMIT
public static final CefRequest.TransitionType TT_LINK
public static final CefRequest.TransitionType TT_MANUAL_SUBFRAME
public static final CefRequest.TransitionType TT_RELOAD
public void addQualifier(CefRequest.TransitionFlags flag)
public void addQualifiers(int flags)
public int getQualifiers()
public int getSource()
public int getValue()
public boolean isRedirect()
public boolean isSet(CefRequest.TransitionFlags flag)
public void removeQualifier(CefRequest.TransitionFlags flag)
The
- qualifier to be removed.
- 要删除的限定符。
public static CefRequest.TransitionType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。
- 要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量
- 如果该枚举类型没有带有指定名称的常量
java.lang.NullPointerException
- 如果参数为空值
- 如果参数为空值
public static CefRequest.TransitionType[] values()
for (CefRequest.TransitionType c : CefRequest.TransitionType.values()) System.out.println(c);