|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.basic.BasicSpinnerUI.SpinnerLayout
A simple layout manager for the editor and the next/previous buttons. See the BasicSpinnerUI javadoc for more information about exactly how the components are arranged.
Field Summary | |
private Component |
editor
|
private Component |
nextButton
|
private Component |
previousButton
|
Constructor Summary | |
private |
BasicSpinnerUI.SpinnerLayout()
|
Method Summary | |
void |
addLayoutComponent(String name,
Component c)
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. |
private Dimension |
preferredSize(Component c)
|
void |
removeLayoutComponent(Component c)
Removes the specified component from the layout. |
private void |
setBounds(Component c,
int x,
int y,
int width,
int height)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Component nextButton
private Component previousButton
private Component editor
Constructor Detail |
private BasicSpinnerUI.SpinnerLayout()
Method Detail |
public void addLayoutComponent(String name, Component c)
LayoutManager
comp
to the layout,
associating it
with the string specified by name
.
addLayoutComponent
in interface LayoutManager
name
- the string to be associated with the componentc
- the component to be addedpublic void removeLayoutComponent(Component c)
LayoutManager
removeLayoutComponent
in interface LayoutManager
c
- the component to be removedprivate Dimension preferredSize(Component c)
public Dimension preferredLayoutSize(Container parent)
LayoutManager
preferredLayoutSize
in interface LayoutManager
parent
- the container to be laid outLayoutManager.minimumLayoutSize(java.awt.Container)
public Dimension minimumLayoutSize(Container parent)
LayoutManager
minimumLayoutSize
in interface LayoutManager
parent
- the component to be laid outLayoutManager.preferredLayoutSize(java.awt.Container)
private void setBounds(Component c, int x, int y, int width, int height)
public void layoutContainer(Container parent)
LayoutManager
layoutContainer
in interface LayoutManager
parent
- the container to be laid out
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |