|
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.RowLayout
A row layout is one in which objects are placed one after the other until there is no more room in the row, at which point a new row is begun. Control placement is subject to positioning information provided in a ControlConstraints object. Unlike Java's FlowLayout, RowLayout can also place te controls from right to left.
LayoutManager
,
LayoutManager3
Field Summary | |
static int |
LEFT_TO_RIGHT
Layout the controls from left to right. |
static int |
RIGHT_TO_LEFT
Layout the controls from right to left. |
Fields inherited from class oracle.dacf.layout.LayoutManager3 |
SIZE_MAXIMUM, SIZE_MINIMUM, SIZE_PREFERRED |
Constructor Summary | |
RowLayout()
Parameterless class constructor. |
|
RowLayout(int direction)
Class constructor which specifies the arrangement of controls. |
Method Summary | |
static int |
convertDirection(java.lang.String text)
Convert a string representation of an direction value to an integer. |
int |
getDirection()
Getter for the layout direction. |
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 |
setDirection(int direction)
Setter for the layout direction. |
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 LEFT_TO_RIGHT
public static final int RIGHT_TO_LEFT
Constructor Detail |
public RowLayout()
public RowLayout(int direction)
direction
- layout of controls within the containerMethod Detail |
public static int convertDirection(java.lang.String text) throws java.lang.IllegalArgumentException
text
- string representation of an direction constant
java.lang.IllegalArgumentException
- if the string passed in is not a valid direction valuepublic int getDirection()
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class LayoutManager3
parent
- component which needs to be laid outLayoutManager3.layoutContainer(java.awt.Container)
public void setDirection(int direction)
direction
- the new layout directionpublic java.lang.String toString()
ControlLayoutEditor
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
LayoutManager3.layoutSize(java.awt.Container, int)
|
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.