uci.ui
Class PropsGridLayout
java.lang.Object
|
+--uci.ui.PropsGridLayout
- public class PropsGridLayout
- extends Object
- implements LayoutManager
A layout manager used by the PropSheets. Property names are in a
fixed width column on the left. Property values are in an
infinately wide column on the right. Rows are as tall as needed to
display a value.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PropsGridLayout
public PropsGridLayout(int hgap,
int vgap)
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
- Adds the specified component with the specified name to the layout.
- Specified by:
- addLayoutComponent in interface LayoutManager
- Parameters:
name - the name of the componentcomp - the component to be added
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- Removes the specified component from the layout. Does not apply.
- Specified by:
- removeLayoutComponent in interface LayoutManager
- Parameters:
comp - the component to be removed
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- Returns the preferred dimensions for this layout given the components
int the specified panel.
- Specified by:
- preferredLayoutSize in interface LayoutManager
- Parameters:
parent - the component which needs to be laid out- See Also:
minimumLayoutSize(java.awt.Container)
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- Returns the minimum dimensions needed to layout the components
contained in the specified panel.
- Specified by:
- minimumLayoutSize in interface LayoutManager
- Parameters:
parent - the component which needs to be laid out- See Also:
preferredLayoutSize(java.awt.Container)
layoutContainer
public void layoutContainer(Container parent)
- Lays out the container in the specified panel.
- Specified by:
- layoutContainer in interface LayoutManager
- Parameters:
parent - the specified component being laid out- See Also:
Container