Package gnue :: Package appserver :: Package generator :: Module layout :: Class Vertical
[show private | hide private]

Class Vertical

Manager --+
          |
         Vertical


Method Summary
  __getUserSpace(self)
This function determines the number of rows available to place widgets in.
  __nextPageSet(self, page, properties, userSpace)
This function creates a set of visual properties to fit into a visual page.
  _arrangePage(self, page, properties)
This function arranges all properties on the given page.
  _createVisualPages(self)
This function transforms the virtual pages into visual pages.
    Inherited from Manager
  __init__(self, classdef, maxWidth, maxHeight)
  arrangeItems(self)
This function creates the visual pages and arranges all properties on them.
  arrangeWidgets(self, item, left, maxSpace)
This function arranges all widgets of a property by lining them up starting at the given position.
  getSpecialLocation(self, page, item)
This function returns the location-dictionary for a special property on a given page.
  _addSpecials(self)
This function adds all special properties at the bottom of every visual page by creating a location record per property/page.
  _prepareSpecials(self)
This function creates a sequence of special properties.

Class Variable Summary
int _MIN_HEIGHT = 2                                                                     
int _START_ROW = 1                                                                     

Method Details

__getUserSpace(self)

This function determines the number of rows available to place widgets in.
Returns:
size of user space

__nextPageSet(self, page, properties, userSpace)

This function creates a set of visual properties to fit into a visual page. If there is space left on a page it will be distributed to the stretchable controls on the page. After this function is done all selected properties have their height- and row-members set.
Parameters:
page - name of the visual page to use
properties - sequence of available properties to arrange
userSpace - number of available rows to fill
Returns:
tuple with (pagename, propertysequence)

_arrangePage(self, page, properties)

This function arranges all properties on the given page. All labels are lined up at the left margin and all entries are set into a second column.
Parameters:
page - the name of the visual page
properties - a sequence of properties to arrange in the page
Returns:
outermost position on the right side (max. page width)

_createVisualPages(self)

This function transforms the virtual pages into visual pages. All available space will be distributed to stretchable widgets. Every item gets it's height and row attributes set. Additionaly the maximum height of the largest page will be determined.
Returns:
tuple with the visual page sequence and the height of the largest page. The page sequence is a sequence of tuples with the page name and a list of all properties in the page.

Class Variable Details

_MIN_HEIGHT

Type:
int
Value:
2                                                                     

_START_ROW

Type:
int
Value:
1                                                                     


GNUe Home

Private API

Developer's Corner