Module com.iamsoft.util.ui
Package com.iamsoft.util.ui.swing
Enum AbstractRearrangeableTreeModel.PromotionBehavior
- java.lang.Object
-
- java.lang.Enum<AbstractRearrangeableTreeModel.PromotionBehavior>
-
- com.iamsoft.util.ui.swing.AbstractRearrangeableTreeModel.PromotionBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractRearrangeableTreeModel.PromotionBehavior>
- Enclosing class:
- AbstractRearrangeableTreeModel
public static enum AbstractRearrangeableTreeModel.PromotionBehavior extends Enum<AbstractRearrangeableTreeModel.PromotionBehavior>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_PARENT
Node will become subsequent sibling of parent.APPEND
Node will become the 'lowest' sibling of parent (last child of grandparent).MAINTAIN_ROW
Node will stay on the same row (and become parent of 'lower' siblings).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractRearrangeableTreeModel.PromotionBehavior
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractRearrangeableTreeModel.PromotionBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAINTAIN_ROW
public static final AbstractRearrangeableTreeModel.PromotionBehavior MAINTAIN_ROW
Node will stay on the same row (and become parent of 'lower' siblings).
-
APPEND
public static final AbstractRearrangeableTreeModel.PromotionBehavior APPEND
Node will become the 'lowest' sibling of parent (last child of grandparent).
-
AFTER_PARENT
public static final AbstractRearrangeableTreeModel.PromotionBehavior AFTER_PARENT
Node will become subsequent sibling of parent.
-
-
Method Detail
-
values
public static AbstractRearrangeableTreeModel.PromotionBehavior[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractRearrangeableTreeModel.PromotionBehavior c : AbstractRearrangeableTreeModel.PromotionBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractRearrangeableTreeModel.PromotionBehavior valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-