QJCC homepage

biz.chitec.quarterback.swing
Class UnwantWantSelector.MyLayoutManager

java.lang.Object
  extended bybiz.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.


Constructor Summary
private UnwantWantSelector.MyLayoutManager()
           
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 void layoutContainer(java.awt.Container parent)
           
private  int max(int a, int b, int c)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
           
 void removeLayoutComponent(java.awt.Component comp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnwantWantSelector.MyLayoutManager

private UnwantWantSelector.MyLayoutManager()
Method Detail

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

QJCC homepage