Spec-Zone .ru
спецификации, руководства, описания, API
|
public enum ContentDisplay extends java.lang.Enum<ContentDisplay>
The position to place the content within a Label.
Enum Constant and Description |
---|
BOTTOM
Content will be placed at the bottom of the Label.
|
CENTER
Content will be placed at the center of the Label.
|
GRAPHIC_ONLY
Only the content will be displayed.
|
LEFT
Content will be placed at the left of the Label.
|
RIGHT
Content will be placed at the right of the Label.
|
TEXT_ONLY
Only the label's text will be displayed.
|
TOP
Content will be placed at the top of the Label.
|
Modifier and Type | Method and Description |
---|---|
static ContentDisplay |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ContentDisplay[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentDisplay TOP
Content will be placed at the top of the Label.
public static final ContentDisplay RIGHT
Content will be placed at the right of the Label.
public static final ContentDisplay BOTTOM
Content will be placed at the bottom of the Label.
public static final ContentDisplay LEFT
Content will be placed at the left of the Label.
public static final ContentDisplay CENTER
Content will be placed at the center of the Label.
public static final ContentDisplay GRAPHIC_ONLY
Only the content will be displayed.
public static final ContentDisplay TEXT_ONLY
Only the label's text will be displayed.
public static ContentDisplay[] values()
for (ContentDisplay c : ContentDisplay.values()) System.out.println(c);
public static ContentDisplay 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 namejava.lang.NullPointerException
- if the argument is nullCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to