public class BasicComboBoxUI.ComboBoxLayoutManager extends Object implements LayoutManager
LayoutManager used to position the sub-components of the
JComboBox.| Constructor and Description |
|---|
BasicComboBoxUI.ComboBoxLayoutManager()
Creates a new ComboBoxLayoutManager object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(String name,
Component comp)
Adds a component to the layout.
|
void |
layoutContainer(Container parent)
Arranges the components in the container.
|
Dimension |
minimumLayoutSize(Container parent)
Returns the minimum layout size.
|
Dimension |
preferredLayoutSize(Container parent)
Returns preferred layout size of the JComboBox.
|
void |
removeLayoutComponent(Component comp)
Removes a component from the layout.
|
public BasicComboBoxUI.ComboBoxLayoutManager()
public void addLayoutComponent(String name, Component comp)
addLayoutComponent in interface LayoutManagername - the name to associate the component with (ignored).comp - the component (ignored).public void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagercomp - the component.public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerparent - the Container for which the preferred size should be
calculated.LayoutManager.minimumLayoutSize(Container)public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerparent - the container.LayoutManager.preferredLayoutSize(Container)public void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerparent - Container that should be layed out.