Class Modifiers
- java.lang.Object
-
- io.codeworth.panelmatic.componentbehavior.Modifiers
-
public class Modifiers extends Object
Utility class, grouping standardBehaviorModifiers, which should cover most of the normal application needs.Graphic documentation examples show behavior for English, i.e left-to-right, top-to-bottom directions.
- Author:
- michaelbar-sinai
-
-
Field Summary
Fields Modifier and Type Field Description static BehaviorModifierDIALOG_BUTTON_CONTAINERWhere the buttons of a dialog box would go, when you do not want the other components to take up extra space.static BehaviorModifierGROWThe component should get more space on the page axis.static BehaviorModifierGROW_LESSThe component should get some space on the page axis, less than components who got modified byGROW.static BehaviorModifierGROW_MOREThe component should get more space on the page axis, even more than components who got modified byGROW.static BehaviorModifierL_CENTER+------------------+ | ///comp/// | +------------------+static BehaviorModifierL_END+------------------+ | ///comp///| +------------------+static BehaviorModifierL_START+------------------+ |///comp/// | +------------------+static BehaviorModifierNO_STRETCHThe component should stay in its preferred size, no matter how much space is available for it.static BehaviorModifierP_FEET+------------------+ | | | ///comp/// | +------------------+static BehaviorModifierP_HEAD+------------------+ | ///comp/// | | | +------------------+static BehaviorModifierP_MIDDLE+------------------+ | | | ///comp/// | | | +------------------+
-
Constructor Summary
Constructors Constructor Description Modifiers()
-
-
-
Field Detail
-
L_END
public static final BehaviorModifier L_END
+------------------+ | ///comp///| +------------------+
-
L_START
public static final BehaviorModifier L_START
+------------------+ |///comp/// | +------------------+
-
L_CENTER
public static final BehaviorModifier L_CENTER
+------------------+ | ///comp/// | +------------------+
-
P_HEAD
public static final BehaviorModifier P_HEAD
+------------------+ | ///comp/// | | | +------------------+
-
P_FEET
public static final BehaviorModifier P_FEET
+------------------+ | | | ///comp/// | +------------------+
-
P_MIDDLE
public static final BehaviorModifier P_MIDDLE
+------------------+ | | | ///comp/// | | | +------------------+
-
NO_STRETCH
public static final BehaviorModifier NO_STRETCH
The component should stay in its preferred size, no matter how much space is available for it.
-
GROW
public static final BehaviorModifier GROW
The component should get more space on the page axis.
-
GROW_MORE
public static final BehaviorModifier GROW_MORE
The component should get more space on the page axis, even more than components who got modified byGROW.
-
GROW_LESS
public static final BehaviorModifier GROW_LESS
The component should get some space on the page axis, less than components who got modified byGROW.
-
DIALOG_BUTTON_CONTAINER
public static final BehaviorModifier DIALOG_BUTTON_CONTAINER
Where the buttons of a dialog box would go, when you do not want the other components to take up extra space.This is also an example of combining modifiers.
+------------------+ | | | ///comp///| +------------------+
-
-