Package gnue :: Package appserver :: Package generator :: Module classdef :: Class Property
[show private | hide private]

Class Property


Method Summary
  __init__(self, parent, propDef, isCalculated, isSpecial)
  updateLabel(self, labelDef)
This function updates the label information for the encapsulated property
  updateStyle(self)
This function set's the style for reference properties.
  widgetWidth(self, maxSpace)
This function calculates the width (in character) for all widgets needed by a property.

Method Details

__init__(self, parent, propDef, isCalculated=False, isSpecial=False)
(Constructor)

Parameters:
parent - class definition instance which holds this property
propDef - language interface class of the property to encapsulate
isCalculated - set to True if the property is a calculated field
isSpecial - set to True if the property is a special property

updateLabel(self, labelDef)

This function updates the label information for the encapsulated property
Parameters:
labelDef - language interface object with the lable information

updateStyle(self)

This function set's the style for reference properties.

widgetWidth(self, maxSpace=None)

This function calculates the width (in character) for all widgets needed by a property. This includes any reference properties if available.
Parameters:
maxSpace - maximum available space for the property
Returns:
horizontal space needed for the property


GNUe Home

Private API

Developer's Corner