net.sf.sbcc.componentcombo.plaf.basic
Class BasicComponentComboBoxUI.ComboBoxLayoutManager

java.lang.Object
  extended by net.sf.sbcc.componentcombo.plaf.basic.BasicComponentComboBoxUI.ComboBoxLayoutManager
All Implemented Interfaces:
java.awt.LayoutManager
Direct Known Subclasses:
MetalComponentComboBoxUI.MetalComboBoxLayoutManager, MotifComponentComboBoxUI.ComboBoxLayoutManager
Enclosing class:
BasicComponentComboBoxUI

public class BasicComponentComboBoxUI.ComboBoxLayoutManager
extends java.lang.Object
implements java.awt.LayoutManager

This layout manager handles the 'standard' layout of combo boxes. It puts the arrow button to the right and the editor to the left. If there is no editor it still keeps the arrow button to the right. This public inner class should be treated as protected. Instantiate it only within subclasses of BasicComboBoxUI.


Constructor Summary
BasicComponentComboBoxUI.ComboBoxLayoutManager()
           
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 void layoutContainer(java.awt.Container parent)
           
 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

BasicComponentComboBoxUI.ComboBoxLayoutManager

public BasicComponentComboBoxUI.ComboBoxLayoutManager()
Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container parent)
Specified by:
layoutContainer in interface java.awt.LayoutManager