biz.chitec.quarterback.swing
Class UnwantWantSelector.MyLayoutManager
java.lang.Object
biz.chitec.quarterback.swing.UnwantWantSelector.MyLayoutManager
- All Implemented Interfaces:
- java.awt.LayoutManager
- Enclosing class:
- UnwantWantSelector
- private class UnwantWantSelector.MyLayoutManager
- extends java.lang.Object
- implements java.awt.LayoutManager
The layout manager special for this class.
It is quite simplisic. It requests that the container has exactly five elements, which are
layed out left to right. The second and fourth element (button boxes) get their preferred width,
the three other ones (lists) get each a third of the remaining width. There are no constraints
or any other means to influence the layout.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnwantWantSelector.MyLayoutManager
private UnwantWantSelector.MyLayoutManager()
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component comp)
- Specified by:
removeLayoutComponent
in interface java.awt.LayoutManager
addLayoutComponent
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
- Specified by:
addLayoutComponent
in interface java.awt.LayoutManager
max
private int max(int a,
int b,
int c)
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
- Specified by:
minimumLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
- Specified by:
preferredLayoutSize
in interface java.awt.LayoutManager
layoutContainer
public void layoutContainer(java.awt.Container parent)
- Specified by:
layoutContainer
in interface java.awt.LayoutManager