public enum SizeUnit extends Enum<SizeUnit>
Enum Constant and Description |
---|
EM
CSS EM unit
|
EX
CSS EX unit
|
PERCENT
CSS percent unit
|
PX
CSS PX unit
|
Modifier and Type | Method and Description |
---|---|
String |
getValue()
Returns the string representation of the unit.
|
static SizeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SizeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SizeUnit EM
public static final SizeUnit PX
public static final SizeUnit PERCENT
public static final SizeUnit EX
public static SizeUnit[] values()
for (SizeUnit c : SizeUnit.values()) System.out.println(c);
public static SizeUnit 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 String getValue()
Copyright © 2015. All rights reserved.