|
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
oracle.dacf.layout.ControlLayout
A control layout is one in which two components which act together as a single control can be drawn and manipulated together on screen. For example, a label could be associated with a text field, with the label acting as a data entry prompt for the text field. This layout manager will only deal with the last two components added to the container. Subsequent components will all be hidden.
LayoutManager
,
LayoutManager3
Field Summary | |
static int |
ARRANGE_HORIZONTAL
Arrange the components in horizontally. |
static int |
ARRANGE_PACK
Arrange horizontally but pack as closely together as possible. |
static int |
ARRANGE_VERTICAL
Arrange the components in vertically. |
Fields inherited from class oracle.dacf.layout.LayoutManager3 |
SIZE_MAXIMUM, SIZE_MINIMUM, SIZE_PREFERRED |
Constructor Summary | |
ControlLayout()
Parameterless class constructor. |
|
ControlLayout(int arrangement)
Class constructor which specifies the arrangement of controls. |
|
ControlLayout(int arrangement,
int weight)
Class constructor which specifies the arrangement and weight of controls. |
Method Summary | |
static int |
convertArrangement(java.lang.String text)
Convert a string representation of an arrangement value to an integer. |
int |
getArrangement()
Getter for the control arrangement parameter. |
int |
getWeight()
Getter for the percentage of the container taken up by the first control. |
void |
layoutContainer(java.awt.Container parent)
Lays out the container in the specified panel. |
protected java.awt.Dimension |
layoutSize(java.awt.Container parent,
int type)
Computes the indicated container size dimensions. |
void |
setArrangement(int arrangement)
Setter for the control arrangement parameter. |
void |
setWeight(int weight)
Setter for the percentage of the container taken up by the first control. |
java.lang.String |
toString()
Generates a String which holds the settings of this layout manager in a human readable form. |
Methods inherited from class oracle.dacf.layout.LayoutManager3 |
addLayoutComponent, addLayoutComponent, findConstraints, getComponentBounds, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ARRANGE_HORIZONTAL
public static final int ARRANGE_VERTICAL
public static final int ARRANGE_PACK
Constructor Detail |
public ControlLayout()
public ControlLayout(int arrangement)
arrangement
- layout of controls within the containerpublic ControlLayout(int arrangement, int weight)
arrangement
- layout of controls within the containerweight
- percent of the panel used by the first controlMethod Detail |
public static int convertArrangement(java.lang.String text) throws java.lang.IllegalArgumentException
text
- string representation of an arrangement constant
java.lang.IllegalArgumentException
- if the string passed in is not a valid arrangement valuepublic int getArrangement()
public int getWeight()
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class LayoutManager3
parent
- component which needs to be laid outLayoutManager.layoutContainer(java.awt.Container)
protected java.awt.Dimension layoutSize(java.awt.Container parent, int type)
layoutSize
in class LayoutManager3
parent
- container to be laid outtype
- _MINIMUM, _MAXIMUM or _PREFERRED
public void setArrangement(int arrangement)
arrangement
- the current control arrangementpublic void setWeight(int weight)
weight
- the first control's weightpublic java.lang.String toString()
ControlLayoutEditor
|
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.