java.awt.LayoutManager
MetalComboBoxUI.MetalComboBoxLayoutManager
public class BasicComboBoxUI.ComboBoxLayoutManager extends Object implements java.awt.LayoutManager
BasicComboBoxUI
.Constructor | Description |
---|---|
ComboBoxLayoutManager() |
Modifier and Type | Method | Description |
---|---|---|
void |
addLayoutComponent(String name,
java.awt.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(java.awt.Container parent) |
Lays out the specified container.
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent) |
Calculates the minimum size dimensions for the specified
container, given the components it contains.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent) |
Calculates the preferred size dimensions for the specified
container, given the components it contains.
|
void |
removeLayoutComponent(java.awt.Component comp) |
Removes the specified component from the layout.
|
public void addLayoutComponent(String name, java.awt.Component comp)
java.awt.LayoutManager
comp
to the layout,
associating it
with the string specified by name
.addLayoutComponent
in interface java.awt.LayoutManager
name
- the string to be associated with the componentcomp
- the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
java.awt.LayoutManager
removeLayoutComponent
in interface java.awt.LayoutManager
comp
- the component to be removedpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
java.awt.LayoutManager
preferredLayoutSize
in interface java.awt.LayoutManager
parent
- the container to be laid outLayoutManager.minimumLayoutSize(java.awt.Container)
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
java.awt.LayoutManager
minimumLayoutSize
in interface java.awt.LayoutManager
parent
- the component to be laid outLayoutManager.preferredLayoutSize(java.awt.Container)
public void layoutContainer(java.awt.Container parent)
java.awt.LayoutManager
layoutContainer
in interface java.awt.LayoutManager
parent
- the container to be laid out Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b151-2