public enum Priority extends Enum<Priority>
Enum Constant and Description |
---|
ALWAYS
Layout area will always try to grow (or shrink), sharing the increase
(or decrease) in space with other layout areas that have a grow
(or shrink) of ALWAYS.
|
NEVER
Layout area will never grow (or shrink) when there is an increase (or
decrease) in space available in the region.
|
SOMETIMES
If there are no other layout areas with grow (or shrink) set to ALWAYS
or those layout areas didn't absorb all of the increased (or decreased) space,
then will share the increase (or decrease) in space with other
layout area's of SOMETIMES.
|
Modifier and Type | Method and Description |
---|---|
static Priority |
max(Priority a,
Priority b)
Convenience method for returning the higher of two priorities.
|
static Priority |
min(Priority a,
Priority b)
Convenience method for returning the lower of two priorities.
|
static Priority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Priority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Priority ALWAYS
public static final Priority SOMETIMES
public static final Priority NEVER
public static Priority[] values()
for (Priority c : Priority.values()) System.out.println(c);
public static Priority 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 Priority max(Priority a, Priority b)
a
- first priorityb
- second prioritySubmit 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.