|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdirk_krause.jtools.ComponentPositioner
public class ComponentPositioner
Choose component positions related one to the other.
Constructor Summary | |
---|---|
ComponentPositioner()
|
Method Summary | |
---|---|
static void |
chooseModalPosition(java.awt.Component p,
java.awt.Component c)
Choose modal position for component c relative to parent component p. |
static void |
chooseNonModalPosition(java.awt.Component p,
java.awt.Component c)
Choose normal (non-modal) position for component c relative to parent component p. |
static void |
choosePosition(java.awt.Component p,
java.awt.Component c,
boolean mod)
Choose position for component c relative to parent component p. |
static void |
correctPosition(java.awt.Component c)
Correct position after resizing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentPositioner()
Method Detail |
---|
public static void choosePosition(java.awt.Component p, java.awt.Component c, boolean mod)
p
- Parent component.c
- New child component to be placed.mod
- Flag to indicate whether or not c is a modal component.public static void chooseModalPosition(java.awt.Component p, java.awt.Component c)
p
- Parent component.c
- New modal child component to be placed.public static void chooseNonModalPosition(java.awt.Component p, java.awt.Component c)
p
- Parent component.c
- New non-modal child component to be placed.public static void correctPosition(java.awt.Component c)
c
- The component for which the position must be corrected.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |