public interface SplitPanel extends ComponentContainer, Component.BelongToFrame, Component.HasIcon, Component.HasCaption, HasContextHelp, HasSettings, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer
Modifier and Type | Interface and Description |
---|---|
static class |
SplitPanel.DockMode
Specifies SplitPanel docking direction.
|
static class |
SplitPanel.SplitPositionChangeEvent
Event that indicates a change in SplitPanel's splitter position.
|
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
static int |
ORIENTATION_HORIZONTAL |
static int |
ORIENTATION_VERTICAL |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
Subscription |
addSplitPositionChangeListener(java.util.function.Consumer<SplitPanel.SplitPositionChangeEvent> listener)
Adds a listener for
SplitPanel.SplitPositionChangeEvent s fired by a SplitPanel. |
SplitPanel.DockMode |
getDockMode() |
float |
getMaxSplitPosition()
Returns the maximum position of the splitter.
|
SizeUnit |
getMaxSplitPositionSizeUnit()
Returns the unit of the maximum position of the splitter.
|
float |
getMinSplitPosition()
Returns the minimum position of the splitter.
|
SizeUnit |
getMinSplitPositionSizeUnit()
Returns the unit of the minimum position of the splitter.
|
int |
getOrientation() |
float |
getSplitPosition() |
SizeUnit |
getSplitPositionSizeUnit()
Returns the unit of position of the splitter.
|
int |
getSplitPositionUnit()
Deprecated.
|
boolean |
isDockable() |
boolean |
isLocked() |
boolean |
isSplitPositionReversed()
Return from which side position is set.
|
void |
removeSplitPositionChangeListener(java.util.function.Consumer<SplitPanel.SplitPositionChangeEvent> listener)
Deprecated.
Use
Subscription instead |
void |
setDockable(boolean dockable)
Enables or disables SplitPanel dock button.
|
void |
setDockMode(SplitPanel.DockMode dockMode)
Sets docking direction.
|
void |
setLocked(boolean locked)
Sets whether users are able to change the separator position or not.
|
void |
setMaxSplitPosition(int pos,
int unit)
Deprecated.
|
void |
setMaxSplitPosition(int pos,
SizeUnit unit)
Sets the maximum split position to the given position and unit.
|
void |
setMinSplitPosition(int pos,
int unit)
Deprecated.
|
void |
setMinSplitPosition(int pos,
SizeUnit unit)
Sets the minimum split position to the given position and unit.
|
void |
setOrientation(int orientation) |
void |
setSplitPosition(int pos) |
void |
setSplitPosition(int pos,
int unit)
Deprecated.
|
void |
setSplitPosition(int pos,
int unit,
boolean reversePosition)
Deprecated.
|
void |
setSplitPosition(int pos,
SizeUnit unit)
Set position of split from the left side by default.
|
void |
setSplitPosition(int pos,
SizeUnit unit,
boolean reversePosition)
Set position of split from the left side by default.
|
add, add, focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStream, remove, remove, removeAll
getFrame, setFrame
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
applySettings, isSettingsEnabled, saveSettings, setSettingsEnabled
isCaptionAsHtml, setCaptionAsHtml
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
static final java.lang.String NAME
static final int ORIENTATION_VERTICAL
static final int ORIENTATION_HORIZONTAL
int getOrientation()
void setOrientation(int orientation)
void setSplitPosition(int pos)
@Deprecated void setSplitPosition(int pos, int unit)
setSplitPosition(int, SizeUnit)
void setSplitPosition(int pos, SizeUnit unit)
pos
- the new size of the first region.unit
- the unit (from SizeUnit
) in which the size is given.@Deprecated void setSplitPosition(int pos, int unit, boolean reversePosition)
setSplitPosition(int, SizeUnit, boolean)
void setSplitPosition(int pos, SizeUnit unit, boolean reversePosition)
pos
- the new size of the first region.unit
- the unit (from SizeUnit
) in which the size is given.reversePosition
- if set to true the split splitter position is measured
by the second region else it is measured by the first regionfloat getSplitPosition()
@Deprecated int getSplitPositionUnit()
Component.UNITS_PIXELS
and Component.UNITS_PERCENTAGE
SizeUnit getSplitPositionSizeUnit()
boolean isSplitPositionReversed()
@Deprecated void setMinSplitPosition(int pos, int unit)
setMinSplitPosition(int, SizeUnit)
void setMinSplitPosition(int pos, SizeUnit unit)
pos
- the new size of the first region.unit
- the unit (from SizeUnit
) in which the size is given.float getMinSplitPosition()
SizeUnit getMinSplitPositionSizeUnit()
@Deprecated void setMaxSplitPosition(int pos, int unit)
setMaxSplitPosition(int, SizeUnit)
void setMaxSplitPosition(int pos, SizeUnit unit)
pos
- the new size of the first region.unit
- the unit (from SizeUnit
) in which the size is given.float getMaxSplitPosition()
SizeUnit getMaxSplitPositionSizeUnit()
void setLocked(boolean locked)
locked
- lockedboolean isLocked()
void setDockable(boolean dockable)
dockable
- dockableboolean isDockable()
void setDockMode(SplitPanel.DockMode dockMode)
dockMode
- one of SplitPanel.DockMode
options@Nullable SplitPanel.DockMode getDockMode()
Subscription addSplitPositionChangeListener(java.util.function.Consumer<SplitPanel.SplitPositionChangeEvent> listener)
SplitPanel.SplitPositionChangeEvent
s fired by a SplitPanel.listener
- a listener to add@Deprecated void removeSplitPositionChangeListener(java.util.function.Consumer<SplitPanel.SplitPositionChangeEvent> listener)
Subscription
instead