public class Form extends com.HawkinsSoftware.FormLayout implements LayoutManager2, Serializable
FormConstraints
,
Serialized FormConstructor and Description |
---|
Form()
Creates a new Form with default gaps horizontally and vertically between
components and no external gaps.
|
Form(int intHGap,
int intVGap,
int extHGap,
int extVGap)
Creates a new Form with the given gaps.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(Component comp,
Object constraints)
Adds the given compoent to the layout using the given constraints.
|
float |
getLayoutAlignmentX(Container target)
Returns the alignment along the x axis.
|
float |
getLayoutAlignmentY(Container target)
Returns the alignment along the y axis.
|
void |
invalidateLayout(Container target)
Invalidates the layout, indicating that if the layout manager has
cached information it should be discarded.
|
Dimension |
maximumLayoutSize(Container target)
Returns the maximum size for this layout.
|
add, add, add, add, add, add, addLayoutComponent, addMultiRow, addMultiRow, addMultiRow, addMultiRow, addMultiRow, addMultiRow, getDefaultFillRightPct, getExternalHGap, getExternalVGap, getInternalHGap, getInternalVGap, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setDefaultFillRightPct, setExternalHGap, setExternalVGap, setInternalHGap, setInternalVGap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLayoutComponent, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent
public Form()
p
- the container that is needs to be laid outpublic Form(int intHGap, int intVGap, int extHGap, int extVGap)
p
- the container that is needs to be laid outintHGap
- the pixel amount separating label/field horizontallyintVGap
- the pixel amount separating label/field verticallyextHGap
- the amount the layout is bounded left and rightextVGap
- the amount the layout is bounded top and bottompublic void addLayoutComponent(Component comp, Object constraints)
addLayoutComponent
in interface LayoutManager2
comp
- the component to be added to the layoutconstraints
- the constraints to be applied to the componentpublic Dimension maximumLayoutSize(Container target)
maximumLayoutSize
in interface LayoutManager2
public float getLayoutAlignmentX(Container target)
getLayoutAlignmentX
in interface LayoutManager2
public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY
in interface LayoutManager2
public void invalidateLayout(Container target)
invalidateLayout
in interface LayoutManager2
Copyright © 2003, 2023, Oracle and/or its affiliates.