|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dacf.layout.LayoutManager3
LayoutManager3 is a simple extension of LayoutManager and LayoutManager2. It provides a basic framework for managing the constraints associated with the controls in a container. Constraints associated with components are stored in a hash table.
LayoutManager
,
LayoutManager2
Field Summary | |
static int |
SIZE_MAXIMUM
Calculate the maximum size of the container. |
static int |
SIZE_MINIMUM
Calculate the minimum size of the container. |
static int |
SIZE_PREFERRED
Calculate the preferred size of the container. |
Constructor Summary | |
LayoutManager3()
Parameterless class constructor. |
Method Summary | |
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object cons)
Adds the component's contraints to the layout. |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds the component to the layout with the given name. |
protected ControlConstraints |
findConstraints(java.awt.Component comp)
Finds the constraint object associated with this component. |
protected java.awt.Dimension |
getComponentBounds(java.awt.Component comp,
ControlConstraints cc)
Compute the component's bounds. |
float |
getLayoutAlignmentX(java.awt.Container cont)
Calculates the layout manager's x-alignment value. |
float |
getLayoutAlignmentY(java.awt.Container cont)
Calculates the layout manager's y-alignment value. |
void |
invalidateLayout(java.awt.Container cont)
Invalidates the layout manager. |
abstract void |
layoutContainer(java.awt.Container parent)
Lays out the container in the specified panel. |
protected abstract java.awt.Dimension |
layoutSize(java.awt.Container parent,
int type)
Computes the indicated container size dimensions. |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container parent)
Calculates the layout's maximum size dimensions. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Computes the minimum size dimensions for the specified panel given the components in the specified parent container. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Computes the preferred size dimensions for the specified panel given the components in the specified parent container. |
void |
removeLayoutComponent(java.awt.Component comp)
Removes the layout from the component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SIZE_PREFERRED
public static final int SIZE_MINIMUM
public static final int SIZE_MAXIMUM
Constructor Detail |
public LayoutManager3()
Method Detail |
public final void addLayoutComponent(java.lang.String name, java.awt.Component comp)
Not used! We use a constraints object rather than keying the layout off the component name.
addLayoutComponent
in interface java.awt.LayoutManager
name
- identifying name of the componentcomp
- component to addLayoutManager2.addLayoutComponent(java.awt.Component, java.lang.Object)
public abstract void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
parent
- component which needs to be laid outLayoutManager.layoutContainer(java.awt.Container)
public final java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
parent
- component to be laid out
LayoutManager.minimumLayoutSize(java.awt.Container)
public final java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
parent
- component to be laid out
LayoutManager.preferredLayoutSize(java.awt.Container)
public final void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
comp
- component to removeLayoutManager.removeLayoutComponent(java.awt.Component)
public final void addLayoutComponent(java.awt.Component comp, java.lang.Object cons)
addLayoutComponent
in interface java.awt.LayoutManager2
comp
- component to addcons
- constraints associated with the componentLayoutManager2.addLayoutComponent(java.awt.Component, java.lang.Object)
public float getLayoutAlignmentX(java.awt.Container cont)
getLayoutAlignmentX
in interface java.awt.LayoutManager2
cont
- the container we're interested in
LayoutManager2.getLayoutAlignmentX(java.awt.Container)
public float getLayoutAlignmentY(java.awt.Container cont)
getLayoutAlignmentY
in interface java.awt.LayoutManager2
cont
- the container we're interested in
java.awt.LayoutManager#getLayoutAlignmentY
public void invalidateLayout(java.awt.Container cont)
invalidateLayout
in interface java.awt.LayoutManager2
cont
- the container we're interested inLayoutManager2.invalidateLayout(java.awt.Container)
public final java.awt.Dimension maximumLayoutSize(java.awt.Container parent)
maximumLayoutSize
in interface java.awt.LayoutManager2
LayoutManager2.maximumLayoutSize(java.awt.Container)
protected final ControlConstraints findConstraints(java.awt.Component comp)
comp
- component whose constraint object we want
protected java.awt.Dimension getComponentBounds(java.awt.Component comp, ControlConstraints cc)
comp
- the component we're interested incc
- the component's constraint object
protected abstract java.awt.Dimension layoutSize(java.awt.Container parent, int type)
parent
- container to be laid outtype
- _MINIMUM, _MAXIMUM or _PREFERRED
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.