public static class BorderLayoutContainer.BorderLayoutData extends MarginData implements HasSize, LayoutData
BorderLayoutData
for the region
adjacent to the center region. The center region is allocated the remaining space.Constructor and Description |
---|
BorderLayoutData()
Creates a border layout data with default values for
size (100), minSize (50) and
maxSize (500). |
BorderLayoutData(double size)
Creates a border layout data with default values for
minSize (50) and maxSize (500) and
the specified value for size. |
Modifier and Type | Method and Description |
---|---|
int |
getMaxSize()
Returns the region's maximum size.
|
int |
getMinSize()
Returns the region's minimum size.
|
double |
getSize()
Returns the size specification.
|
boolean |
isCollapsed()
Returns the collapsed state
|
boolean |
isCollapseHidden()
Returns true if the collapse panel is hidden.
|
boolean |
isCollapseMini()
Returns true if the mini split bar collapse tool is enabled.
|
boolean |
isCollapsible()
Returns true if collapsing is enabled.
|
boolean |
isFloatable()
Returns true if the region is floatable.
|
boolean |
isHidden()
Returns true if the component is hidden.
|
boolean |
isSplit()
Returns true if the region is split.
|
void |
setCollapsed(boolean collapsed)
Sets the collapsed state.
|
void |
setCollapseHidden(boolean collapseHidden)
True to hide the collapse panel when a region is collapsed (defaults to false).
|
void |
setCollapseMini(boolean collapseMini)
True to add a mini-collapase tool in the split bar.
|
void |
setCollapsible(boolean collapsible)
True to allow the user to collapse this region (defaults to false).
|
void |
setFloatable(boolean floatable)
True to allow clicking a collapsed region's bar to display the region's panel floated above the layout, false to
force the user to fully expand a collapsed region by clicking the expand button to see it again (defaults to
true).
|
void |
setHidden(boolean hidden)
True to hide the component.
|
void |
setMaxSize(int maxSize)
Sets the maximum allowable size in pixels for this region (defaults to 500).
|
void |
setMinSize(int minSize)
Sets the minimum allowable size in pixels for this region (defaults to 50).
|
void |
setSize(double size)
Sets the size specification.
|
void |
setSplit(boolean split)
True to display a
SplitBar between this region and its neighbor, allowing the user to resize the regions
dynamically (defaults to false). |
getMargins, setMargins
public BorderLayoutData()
size
(100), minSize
(50) and
maxSize
(500).public BorderLayoutData(double size)
minSize
(50) and maxSize
(500) and
the specified value for size.size
- the region size (height for north and south, width for west and east)public int getMaxSize()
public int getMinSize()
public double getSize()
HasSize
public boolean isCollapsed()
public boolean isCollapseHidden()
public boolean isCollapseMini()
public boolean isCollapsible()
public boolean isFloatable()
public boolean isHidden()
public boolean isSplit()
public void setCollapsed(boolean collapsed)
collapsed
- true to render collapsedpublic void setCollapseHidden(boolean collapseHidden)
collapseHidden
- the collapse hidden statepublic void setCollapseMini(boolean collapseMini)
collapseMini
- true to add toolpublic void setCollapsible(boolean collapsible)
collapsible
- true to enable collapsingpublic void setFloatable(boolean floatable)
floatable
- true to enable floatingpublic void setHidden(boolean hidden)
hidden
- true to hidepublic void setMaxSize(int maxSize)
maxSize
- the max sizepublic void setMinSize(int minSize)
minSize
- the min sizepublic void setSize(double size)
HasSize
public void setSplit(boolean split)
SplitBar
between this region and its neighbor, allowing the user to resize the regions
dynamically (defaults to false). When split = true, it is common to specify a minSize
and
maxSize
for the region.split
- true to enable a split barCopyright © 2018. All rights reserved.