public class

BasicComboBoxUI.ComboBoxLayoutManager

extends Object
implements LayoutManager
java.lang.Object
   ↳ javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager
Known Direct Subclasses

Class Overview

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.

Summary

Public Constructors
BasicComboBoxUI.ComboBoxLayoutManager()
Public Methods
void addLayoutComponent(String name, Component comp)
If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.
void layoutContainer(Container parent)
Lays out the specified container.
Dimension minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains.
Dimension preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified container, given the components it contains.
void removeLayoutComponent(Component comp)
Removes the specified component from the layout.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.awt.LayoutManager

Public Constructors

public BasicComboBoxUI.ComboBoxLayoutManager ()

Public Methods

public void addLayoutComponent (String name, Component comp)

If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.

Parameters
name the string to be associated with the component
comp the component to be added

public void layoutContainer (Container parent)

Lays out the specified container.

Parameters
parent the container to be laid out

public Dimension minimumLayoutSize (Container parent)

Calculates the minimum size dimensions for the specified container, given the components it contains.

Parameters
parent the component to be laid out

public Dimension preferredLayoutSize (Container parent)

Calculates the preferred size dimensions for the specified container, given the components it contains.

Parameters
parent the container to be laid out

public void removeLayoutComponent (Component comp)

Removes the specified component from the layout.

Parameters
comp the component to be removed