|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.forms.builder.AbstractFormBuilder
com.jgoodies.forms.builder.PanelBuilder
com.jgoodies.forms.extras.PanelBuilder2
public class PanelBuilder2
Adds a feature to its superclass PanelBuilder that labels with a mnemonic are associated with the next added focusable component. This feature shall be moved to the PanelBuilder.
Constructor Summary | |
---|---|
PanelBuilder2(FormLayout layout)
Constructs a PanelBuilder2 for the given
layout. |
|
PanelBuilder2(FormLayout layout,
javax.swing.JPanel panel)
Constructs a PanelBuilder2 for the given
FormLayout and layout container. |
Method Summary | |
---|---|
java.awt.Component |
add(java.awt.Component component,
CellConstraints cellConstraints)
Adds a component to the panel using the given cell constraints. |
protected boolean |
isLabelForApplicable(java.awt.Component component)
Checks and answers whether the given component shall be set as component for a previously added label with mnemonic using JLabel.setLabelFor(Component) . |
protected boolean |
isLabelForFeatureActive()
Checks and answers whether the labelFor feature is active for this builder. |
Methods inherited from class com.jgoodies.forms.builder.PanelBuilder |
---|
add, addLabel, addLabel, addLabel, addLabel, addSeparator, addSeparator, addSeparator, addSeparator, addTitle, addTitle, addTitle, getComponentFactory, getPanel, setBackground, setBorder, setComponentFactory, setDefaultDialogBorder, setOpaque |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PanelBuilder2(FormLayout layout)
PanelBuilder2
for the given
layout. Uses an instance of JPanel
as layout container
with the given layout as layout manager.
layout
- the FormLayout to usepublic PanelBuilder2(FormLayout layout, javax.swing.JPanel panel)
PanelBuilder2
for the given
FormLayout and layout container.
layout
- the FormLayout to usepanel
- the layout container to build onMethod Detail |
---|
public java.awt.Component add(java.awt.Component component, CellConstraints cellConstraints)
add
in class AbstractFormBuilder
component
- the component to addcellConstraints
- the component's cell constraints
isLabelForFeatureActive()
,
isLabelForApplicable(Component)
protected boolean isLabelForFeatureActive()
protected boolean isLabelForApplicable(java.awt.Component component)
JLabel.setLabelFor(Component)
.
The current implementation just checks whether the component is
focusable.
component
- the component to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |