public class BasicComboBoxUI.ComboBoxLayoutManager extends java.lang.Object implements java.awt.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(java.lang.String name,
java.awt.Component comp)
Adds a component to the layout.
|
void |
layoutContainer(java.awt.Container parent)
Arranges the components in the container.
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Returns the minimum layout size.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Returns preferred layout size of the JComboBox.
|
void |
removeLayoutComponent(java.awt.Component comp)
Removes a component from the layout.
|
public BasicComboBoxUI.ComboBoxLayoutManager()
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagername - the name to associate the component with (ignored).comp - the component (ignored).public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagercomp - the component.public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerparent - the Container for which the preferred size should be
calculated.LayoutManager.minimumLayoutSize(Container)public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerparent - the container.LayoutManager.preferredLayoutSize(Container)public void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerparent - Container that should be layed out.