Class
zebkit.ui.SplitPan
extends <zebkit.ui.Panel> |
<zebkit.ui> |
Splitter panel UI component class. The component splits its area horizontally or vertically into two areas. Every area hosts an UI component. A size of the parts can be controlled by pointer cursor dragging. Gripper element is children UI component that can be customized. For instance:
// create split panel
var sp = new zebkit.ui.SplitPan(new zebkit.ui.Label("Left panel"),
new zebkit.ui.Label("Right panel"));
// customize gripper background color depending on its state
sp.gripper.setBackground(new zebkit.draw.ViewSet({
"over" : "yellow"
"out" : null,
"pressed.over" : "red"
}));
zebkit.ui.SplitPan
([first], [second], [o]
)
Parameters:
-
[first]
<zebkit.ui.Panel>a first UI component in splitter panel
-
[second]
<zebkit.ui.Panel>a second UI component in splitter panel
-
[o]
<String>an orientation of splitter element: "vertical" or "horizontal"
public | void | setGap (g) |
public | void | setGripperLoc (l) |
public | void | setGripperMovable (b) |
public | void | setLeftMinSize (m) |
public | void | setOrientation (o) |
public | void | setRightMinSize (m) |
public
chainable
setGap (g )
Set gap between gripper element and sizable panels Parameters:
|
public
chainable
setGripperLoc (l )
Set gripper element location Parameters:
|
public
void
setGripperMovable (b )
Set the given gripper movable state Parameters:
|
public
chainable
setLeftMinSize (m )
Set the minimal size of the left (or top) sizeable panel Parameters:
|
public
chainable
setOrientation (o )
Set split panel orientation. Parameters:
|
public
chainable
setRightMinSize (m )
Set the minimal size of the right (or bottom) sizeable panel Parameters:
|











