20 package net.sf.gridarta.gui.utils.borderpanel;
22 import java.awt.BorderLayout;
23 import java.awt.Component;
24 import java.awt.Container;
25 import org.jetbrains.annotations.NotNull;
54 Component nextComponent = component;
59 public void sizeChanged(@NotNull
final Component optionalComponent,
final int size) {
60 borderPanelListener.
sizeChanged(optionalComponent, size);
64 public void size2Changed(
final int size2) {
65 borderPanelListener.size2Changed(location, size2);
70 splitPanes[location.ordinal()] = tmp;
73 setLayout(
new BorderLayout());
74 add(nextComponent, BorderLayout.CENTER);
87 public void setComponent(@NotNull
final Location location, @NotNull
final Component component,
final boolean alternativeLocation,
final int size) {
void setComponent(@NotNull final Location location, @NotNull final Component component, final boolean alternativeLocation, final int size)
Sets the optional Component for a location.
A Component that permanently shows another component and optionally displays a JSplitPane and one or ...
Interface for listeners interested in BorderSplitPane related events.
void sizeChanged(@NotNull Component optionalComponent, int size)
The size of the split pane has changed.
A Component that permanently displays another Component and optionally displays more components on th...
Interface for listeners interested in BorderPanel related events.
static final long serialVersionUID
The serial version UID.
void setOptionalComponent(@Nullable final Component optionalComponent, final boolean alternativeLocation, final int size)
Sets the optional Component.
BorderPanel(@NotNull final Component component, @NotNull final BorderPanelListener borderPanelListener)
Creates a new instance.
void unsetComponent(@NotNull final Location location, final boolean alternativeLocation)
Unsets the optional Component for a location.
final BorderSplitPane [] splitPanes
The BorderSplitPanes showing the optional components.