Class
zebkit.ui.BorderPan
extends <zebkit.ui.Panel> |
<zebkit.ui> |
Border panel UI component class. The component renders titled border around the given content UI component. Border title can be placed on top or bottom border line and aligned horizontally (left, center, right). Every zebkit UI component can be used as a border title element.
zebkit.ui.BorderPan
([title], [content], [constraints]
)
Parameters:
-
[title]
<zebkit.ui.Panel | String>a border panel title. Can be a string or any other UI component can be used as the border panel title
-
[content]
<zebkit.ui.Panel>a content UI component of the border panel
-
[constraints]
<Integer>a title constraints. The constraints gives a possibility to place border panel title in different places. Generally the title can be placed on the top or bottom part of the border panel. Also the title can be aligned horizontally.
Example:
// create border panel with a title located at the
// top and aligned at the canter
var bp = new zebkit.ui.BorderPan("Title",
new zebkit.ui.Panel(),
"top", "center");
protected
|
<Object> | getTitleInfo ( ) |
public | void | setAlignment (a) |
public | void | setGaps (vg, hg) |
public | void | setOrientation (o) |
public
chainable
setAlignment (a )
Set border panel title horizontal alignment. Parameters:
|
public
chainable
setGaps (vg, hg )
Set vertical and horizontal paddings between the border panel border and the content of the border panel Parameters:
|
public
chainable
setOrientation (o )
Set border panel title orientation. The title area can be placed either at the top or at the bottom of border panel component. Parameters:
|












public
![]() hGap
Horizontal gap. Define left and right paddings between border panel border and the border panel content |
public
![]() indent
Border panel label indent |
public
![]() orient
Border panel title area arrangement. Border title can be placed either at the top or bottom area of border panel component. |
public
![]() vGap
Vertical gap. Define top and bottom paddings between border panel border and the border panel content |