Serializable
, Comparable<Display>
public enum Display extends Enum<Display>
Related specifications:
Enum Constant | Description |
---|---|
PAGE |
Full user-agent page view (default).
|
POPUP |
Popup user-agent window.
|
TOUCH |
Device that leverages a touch interface.
|
WAP |
Feature phone.
|
Modifier and Type | Method | Description |
---|---|---|
static Display |
getDefault() |
Gets the default display type.
|
static Display |
parse(String s) |
Parses a display type.
|
String |
toString() |
Returns the string identifier of this display type.
|
static Display |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Display[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Display POPUP
public static final Display TOUCH
public static Display[] values()
for (Display c : Display.values()) System.out.println(c);
public static Display valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Display getDefault()
PAGE
).public static Display parse(String s) throws ParseException
s
- The string to parse. If the string is null
or empty
the getDefault()
display type will be returned.ParseException
- If the parsed string doesn't match a display
type.Copyright © 2018 Connect2id Ltd.. All rights reserved.