Top Description Fields Constructors Methods
javafx.scene.layout

public final Enum Priority

extends Enum<Priority>
Class Inheritance

Enumeration used to determine the grow (or shrink) priority of a given node's layout area when its region has more (or less) space available and multiple nodes are competing for that space.
Since
JavaFX 2.0

Field Summary

Modifier and TypeField and Description
public static final Priority
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.

public static final Priority
NEVER

Layout area will never grow (or shrink) when there is an increase (or decrease) in space available in the region.

public static final Priority
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.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Priority

Returns:

the highest of the two priorities
max
(Priority
first priority
a
,
Priority
second priority
b
)

Convenience method for returning the higher of two priorities.

public static Priority

Returns:

the lower of the two priorities
min
(Priority
first priority
a
,
Priority
second priority
b
)

Convenience method for returning the lower of two priorities.

public static Priority
public static Priority[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ALWAYSback to summary
public static final Priority 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.

NEVERback to summary
public static final Priority NEVER

Layout area will never grow (or shrink) when there is an increase (or decrease) in space available in the region.

SOMETIMESback to summary
public static final Priority 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.

Constructor Detail

Priorityback to summary
private Priority()

Method Detail

maxback to summary
public static Priority max(Priority a, Priority b)

Convenience method for returning the higher of two priorities.

Parameters
a:Priority

first priority

b:Priority

second priority

Returns:Priority

the highest of the two priorities

minback to summary
public static Priority min(Priority a, Priority b)

Convenience method for returning the lower of two priorities.

Parameters
a:Priority

first priority

b:Priority

second priority

Returns:Priority

the lower of the two priorities

valueOfback to summary
public static Priority valueOf(String name)
valuesback to summary
public static Priority[] values()