Package pyjamas :: Package ui :: Module VerticalSplitPanel :: Class VerticalSplitPanel
[hide private]
[frames] | no frames]

Class VerticalSplitPanel

source code

   object --+                    
            |                    
      Applier --+                
                |                
UIObject.UIObject --+            
                    |            
        Widget.Widget --+        
                        |        
              Panel.Panel --+    
                            |    
        SplitPanel.SplitPanel --+
                                |
                               VerticalSplitPanel

A panel that arranges two widgets in a single vertical column and allows the user to interactively change the proportion of the height dedicated to each of the two widgets. Widgets contained within a <code>VerticalSplitterPanel</code> will be automatically decorated with scrollbars when necessary.

Instance Methods [hide private]
 
__init__(self, **kwargs)
Creates an empty vertical split panel.
source code
 
getBottomWidget(self)
Gets the widget in the bottom of the panel.
source code
 
getTopWidget(self)
Gets the widget in the top of the panel.
source code
 
setBottomWidget(self, w)
Sets the widget in the bottom of the panel.
source code
 
setSplitPosition(self, pos)
Moves the position of the splitter.
source code
 
setTopWidget(self, w)
Sets the widget in the top of the panel.
source code
 
onLoad(self) source code
 
execute(self) source code
 
onUnload(self) source code
 
onSplitterResize(self, x, y)
Called on each mouse drag event as the user is dragging the splitter.
source code
 
onSplitterResizeStarted(self, x, y)
Called when the user starts dragging the splitter.
source code
 
buildDOM(self) source code

Inherited from SplitPanel.SplitPanel: __iter__, add, addAbsolutePositoning, addClipping, addScrolling, expandToFitParentUsingCssOffsets, expandToFitParentUsingPercentages, getSplitElement, getThumbImageHTML, getWidget, getWidgetElement, isResizing, onBrowserEvent, preventBoxStyles, remove, setBottom, setElemHeight, setElemWidth, setLeft, setRight, setThumbImage, setTop, setWidget, startResizingFrom, stopResizing

Inherited from Panel.Panel: adopt, clear, disown, doAttachChildren, doDetachChildren

Inherited from Widget.Widget: getID, getLayoutData, getParent, isAttached, onAttach, onDetach, removeFromParent, setContextMenu, setID, setLayoutData, setParent

Inherited from UIObject.UIObject: addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getHeight, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, getWidth, isVisible, removeStyleDependentName, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setTitle, setVisible, setWidth, setzIndex, sinkEvents, unsinkEvents

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kwargs)
(Constructor)

source code 

Creates an empty vertical split panel.

Overrides: object.__init__

getBottomWidget(self)

source code 

Gets the widget in the bottom of the panel. @return the widget, <code>None</code> if there is not one

getTopWidget(self)

source code 

Gets the widget in the top of the panel. @return the widget, <code>None</code> if there is not one

setBottomWidget(self, w)

source code 

Sets the widget in the bottom of the panel. @param w the widget

setSplitPosition(self, pos)

source code 

Moves the position of the splitter. @param size the new size of the left region in CSS units (e.g. "10px", "1em")

Overrides: SplitPanel.SplitPanel.setSplitPosition
(inherited documentation)

setTopWidget(self, w)

source code 

Sets the widget in the top of the panel. @param w the widget

onLoad(self)

source code 
Overrides: Widget.Widget.onLoad

onSplitterResize(self, x, y)

source code 

Called on each mouse drag event as the user is dragging the splitter. @param x the x coord of the mouse relative to the panel's extent @param y the y coord of the mosue relative to the panel's extent

Overrides: SplitPanel.SplitPanel.onSplitterResize
(inherited documentation)

onSplitterResizeStarted(self, x, y)

source code 

Called when the user starts dragging the splitter. @param x the x coord of the mouse relative to the panel's extent @param y the y coord of the mouse relative to the panel's extent

Overrides: SplitPanel.SplitPanel.onSplitterResizeStarted
(inherited documentation)