Class zwt.ui.panel.Divider
Extends
zwt.ui.Widget.
A Divider can be added to a zwt.ui.panel.VerticalPanel or a zwt.ui.panel.HorizontalPanel. It allows user to resize slots before and after the divider in the panel.
Please note that this implementation is not suitable to use with an elastic layout. Elastic layouts currently only works with content with fixed dimensions that can't be resized with a Divider.
CSS rules
.zwt_horizontalDivider {}
.zwt_verticalDivider {}
.zwt_shadowDivider {}
Defined in: Divider.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.ui.panel.Divider(int_orientation)
Construct a divider.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
zwt.ui.panel.Divider.HORIZONTAL
Indicate an horizontal divider, used for zwt.ui.panel.HorizontalPanel.
|
<static> |
zwt.ui.panel.Divider.VERTICAL
Indicate a vertical divider, used for zwt.ui.panel.VerticalPanel.
|
Method Attributes | Method Name and Description |
---|---|
Return the mouse event manager attached to the menu item.
|
|
processEvent(zwt_event_Event_event)
Process the specified event.
|
|
processMouseEvent(zwt_event_MouseEvent_event)
Process the specified mouse event.
|
- Methods borrowed from class zwt.ui.Widget:
- addStyle, draw, getContextFill, getDimension, getElement, getElementDimension, getFill, getFocusEventManager, getId, getKeyboardEventManager, getParent, getRelativeLeft, getRelativeTop, getStyle, getWheelEventManager, hasFocus, hasStyle, isFocusable, isVisible, onEvent, processContentEvent, processFocusEvent, processKeyboardEvent, processWheelEvent, redraw, removeStyle, replaceStyle, setFill, setFocusable, setId, setStyle, setVisible
Class Detail
zwt.ui.panel.Divider(int_orientation)
Construct a divider.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {Integer} int_orientation
- One of zwt.ui.panel.Divider.HORIZONTAL and zwt.ui.panel.Divider.VERTICAL to specify the orientation of the divider
Field Detail
<static>
{Integer}
zwt.ui.panel.Divider.HORIZONTAL
Indicate an horizontal divider, used for zwt.ui.panel.HorizontalPanel.
<static>
{Integer}
zwt.ui.panel.Divider.VERTICAL
Indicate a vertical divider, used for zwt.ui.panel.VerticalPanel.
Method Detail
{zwt.event.ClickEventManager}
getMouseEventManager()
Return the mouse event manager attached to the menu item.
- Returns:
- The animation event manager
processEvent(zwt_event_Event_event)
Process the specified event.
- Parameters:
- {zwt.event.Event} zwt_event_Event_event
- The event to process
processMouseEvent(zwt_event_MouseEvent_event)
Process the specified mouse event.
- Parameters:
- {zwt.event.MouseEvent} zwt_event_MouseEvent_event
- The mouse event to process