Spec-Zone .ru
спецификации, руководства, описания, API
|
public enum Priority extends java.lang.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(java.lang.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(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 nullpublic static Priority max(Priority a, Priority b)
a
- first priorityb
- second priorityCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to