public enum ContentDisplay extends 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(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(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 nullSubmit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.