|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.forms.factories.DefaultComponentFactory.TitledSeparatorLayout
private static final class DefaultComponentFactory.TitledSeparatorLayout
A layout for the title label and separator(s) in titled separators.
Field Summary | |
---|---|
private boolean |
centerSeparators
|
Constructor Summary | |
---|---|
private |
DefaultComponentFactory.TitledSeparatorLayout(boolean centerSeparators)
Constructs a TitledSeparatorLayout that either centers the separators or aligns them along the font baseline of the title label. |
Method Summary | |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Does nothing. |
private javax.swing.JLabel |
getLabel(java.awt.Container parent)
|
void |
layoutContainer(java.awt.Container parent)
Lays out the specified container. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Computes and returns the minimum size dimensions for the specified container. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Computes and returns the preferred size dimensions for the specified container. |
void |
removeLayoutComponent(java.awt.Component comp)
Does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final boolean centerSeparators
Constructor Detail |
---|
private DefaultComponentFactory.TitledSeparatorLayout(boolean centerSeparators)
centerSeparators
- true to center, false to align along
the font baseline of the title labelMethod Detail |
---|
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
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)
removeLayoutComponent
in interface java.awt.LayoutManager
comp
- the component to be removedpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
#preferredLayoutSize
.
minimumLayoutSize
in interface java.awt.LayoutManager
parent
- the component to be laid out
preferredLayoutSize(Container)
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
parent
- the component to be laid out
minimumLayoutSize(Container)
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
parent
- the container to be laid outprivate javax.swing.JLabel getLabel(java.awt.Container parent)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |