Module is.codion.swing.common.ui
Interface PanelBuilder<L extends LayoutManager,B extends PanelBuilder<L,B>>
- All Superinterfaces:
ComponentBuilder<JPanel,
,B> Supplier<JPanel>
- All Known Subinterfaces:
BorderLayoutPanelBuilder
,FlexibleGridLayoutPanelBuilder
,FlowLayoutPanelBuilder
,GridLayoutPanelBuilder
public interface PanelBuilder<L extends LayoutManager,B extends PanelBuilder<L,B>>
extends ComponentBuilder<JPanel,B>
Builds a JPanel instance.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Provides panel builders. -
Method Summary
Modifier and TypeMethodDescriptionadd
(Supplier<? extends JComponent> component) add
(Supplier<? extends JComponent> component, Object constraints) add
(JComponent component) add
(JComponent component, Object constraints) addAll
(Collection<? extends JComponent> components) addAll
(JComponent... components) builder()
Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, build, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusable, focusCycleRoot, focusListener, font, foreground, get, keyEvent, keyListener, label, label, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, name, onBuild, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, toolTipText, transferFocusOnEnter, transferFocusOnEnter, transferHandler, visible, visible
-
Method Details
-
panel
- Parameters:
panel
- the panel- Returns:
- this builder instancwe
-
layout
- Parameters:
layoutManager
- the layout manager- Returns:
- this builder instance
- See Also:
-
add
- Parameters:
component
- the component to add- Returns:
- this builder instance
- See Also:
-
add
- Parameters:
component
- the component to add- Returns:
- this builder instance
- See Also:
-
add
- Parameters:
component
- the component to addconstraints
- the layout constraints- Returns:
- this builder instance
- See Also:
-
add
- Parameters:
component
- the component to addconstraints
- the layout constraints- Returns:
- this builder instance
- See Also:
-
addAll
- Parameters:
components
- the components to add- Returns:
- this builder instance
- See Also:
-
addAll
- Parameters:
components
- the components to add- Returns:
- this builder instance
- See Also:
-
builder
- Returns:
- a panel builder factory
-