|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Sizeable.Unit>
com.vaadin.server.Sizeable.Unit
public static enum Sizeable.Unit
Enum Constant Summary | |
---|---|
CM
Unit code representing centimeters. |
|
EM
Unit code representing the font-size of the relevant font. |
|
EX
Unit code representing the x-height of the relevant font. |
|
INCH
Unit code representing inches. |
|
MM
Unit code representing millimeters. |
|
PERCENTAGE
Unit code representing in percentage of the containing element defined by terminal. |
|
PICAS
Unit code representing picas (12 points). |
|
PIXELS
Unit code representing pixels. |
|
POINTS
Unit code representing points (1/72nd of an inch). |
|
REM
Unit code representing the font-size of the root font. |
Method Summary | |
---|---|
java.lang.String |
getSymbol()
|
static Sizeable.Unit |
getUnitFromSymbol(java.lang.String symbol)
|
java.lang.String |
toString()
|
static Sizeable.Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Sizeable.Unit[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Sizeable.Unit PIXELS
public static final Sizeable.Unit POINTS
public static final Sizeable.Unit PICAS
public static final Sizeable.Unit EM
public static final Sizeable.Unit REM
public static final Sizeable.Unit EX
public static final Sizeable.Unit MM
public static final Sizeable.Unit CM
public static final Sizeable.Unit INCH
public static final Sizeable.Unit PERCENTAGE
Method Detail |
---|
public static Sizeable.Unit[] values()
for (Sizeable.Unit c : Sizeable.Unit.values()) System.out.println(c);
public static Sizeable.Unit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getSymbol()
public java.lang.String toString()
toString
in class java.lang.Enum<Sizeable.Unit>
public static Sizeable.Unit getUnitFromSymbol(java.lang.String symbol)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |