SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
List of all members
componentedit.MemberEditMethods Class Reference

A mixin class that manages a ComponentUIHelper object, and delegates the functions required by the member edit screen to that object. More...

Inheritance diagram for componentedit.MemberEditMethods:
ComponentSetupScreen.ComponentSetupScreen HashingComponent.HashingComponent StandAloneGadgetScreen.StandAloneGadgetScreen UnreadableComponentProxy.UnreadableComponentProxy

Methods defined here:

def CreateUI
def Finalize
def IsValid
def Load
def RequiresProcess
def Reset
def Save
def __init__
def delui
def getui

Data descriptors defined here:

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

Detailed Description

A mixin class that manages a ComponentUIHelper object, and delegates the functions required by the member edit screen to that object.

Your component class should inherit from this object, and initialize the class with the ComponentUIHelper derived class. This allows greater separation between the user interface elements of the component and the business logic.

Usage (in "MyComponent" plugin):

MyComponent/MyComponent.py:

from dialog.subdialog import MemberEditMethods, ComponentUIHelper

class MyComponent(StateAccessor, MemberEditMethods, Component): def init(self): StateAccessor.__init__(self) MemberEditComponent.__init__(self, MemberEditUI) Component.__init__(self)

etc.

class MemberEditUI(ComponentUIHelper): column_title = "My Component"

def init(self): ComponentUIHelper.__init__(self)

etc.

Constructor & Destructor Documentation

def componentedit.MemberEditMethods.__init__ (   args)

Member Function Documentation

def componentedit.MemberEditMethods.__dict__ (   args)
def componentedit.MemberEditMethods.__weakref__ (   args)
def componentedit.MemberEditMethods.CreateUI (   args)
def componentedit.MemberEditMethods.delui (   args)
def componentedit.MemberEditMethods.Finalize (   args)
def componentedit.MemberEditMethods.getui (   args)
def componentedit.MemberEditMethods.IsValid (   args)
def componentedit.MemberEditMethods.Load (   args)
def componentedit.MemberEditMethods.RequiresProcess (   args)
def componentedit.MemberEditMethods.Reset (   args)
def componentedit.MemberEditMethods.Save (   args)
def componentedit.MemberEditMethods.ui (   args)