javax.swing.plaf.basic
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 LayoutManager
name
- the name to associate the component with (ignored).comp
- the component (ignored).public void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
comp
- the component.public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
parent
- the Container for which the preferred size should be
calculated.LayoutManager.minimumLayoutSize(Container)
public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
parent
- the container.LayoutManager.preferredLayoutSize(Container)
public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
parent
- Container that should be layed out.