SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
List of all members
dialog.item.OnLoad Class Reference

Use the OnLoad rule to find out when a load event occurs. More...

Inheritance diagram for dialog.item.OnLoad:
dialog.rule.Rule

Methods defined here:

def __init__
def postload
def preload

Methods inherited from dialog.rule.Rule:

def __getdialog__
def __getenabled__
def __getobject__

Data descriptors inherited from dialog.rule.Rule:

def __dict__
 dictionary for instance variables (if defined)
def __weakref__
 list of weak references to the object (if defined)
def dialog
def enabled
def object

Additional Inherited Members

- Public Member Functions inherited from dialog.rule.Rule

Detailed Description

Use the OnLoad rule to find out when a load event occurs.

It's recommended that you add the OnLoad rule to every modelroot which exists above you in the item tree. Your rule will only be called once by the modelroot, which has a model and affects the field you gave.

Method resolution order

OnLoad
dialog.rule.Rule
builtin.object

Constructor & Destructor Documentation

def dialog.item.OnLoad.__init__ (   args)
 do: expects do to be a tuple of functions of length 2
     The first function happens before values are loaded,
     and the second after values are loaded.
     Each function is expected to take one argument, the modelroot
     object which is calling it.
 name: this is the name of the field we're affecting.
       The modelroot will only call this OnLoad event
       if it's responsible for a field with this name.

Reimplemented from dialog.rule.Rule.

Member Function Documentation

def dialog.item.OnLoad.__dict__ (   args)

dictionary for instance variables (if defined)

Reimplemented from dialog.rule.Rule.

def dialog.item.OnLoad.__getdialog__ (   args)
 __getdialog__(args)

Reimplemented from dialog.rule.Rule.

def dialog.item.OnLoad.__getenabled__ (   args)
 __getenabled__(args)

Reimplemented from dialog.rule.Rule.

def dialog.item.OnLoad.__getobject__ (   args)
 __getobject__(args)

Reimplemented from dialog.rule.Rule.

def dialog.item.OnLoad.__weakref__ (   args)

list of weak references to the object (if defined)

Reimplemented from dialog.rule.Rule.

def dialog.item.OnLoad.dialog (   args)

Reimplemented from dialog.rule.Rule.

def dialog.item.OnLoad.enabled (   args)

Reimplemented from dialog.rule.Rule.

def dialog.item.OnLoad.object (   args)

Reimplemented from dialog.rule.Rule.

def dialog.item.OnLoad.postload (   args)
 postload(args)
def dialog.item.OnLoad.preload (   args)
 preload(args)