Public Member Functions

Koo::View::AbstractParser::AbstractParser Class Reference

The AbstractParser class describes the interface any view parser has to implement. More...

List of all members.

Public Member Functions

def create
 You need to provide the create function with the following parameters: viewId: Id of the view.

Detailed Description

The AbstractParser class describes the interface any view parser has to implement.

In ordre to create a view you need to create a Parser. It should inherit AbstractParser and provide the following interface:

Definition at line 33 of file AbstractParser.py.


Member Function Documentation

def Koo::View::AbstractParser::AbstractParser::create (   self,
  viewId,
  parent,
  model,
  node,
  fields 
)

You need to provide the create function with the following parameters: viewId: Id of the view.

The parser is responsible for assigning view.id = viewId. parent: Holds the reference to the parent QWidget. Usually screen. You should make of this the parent of your view. Note/TODO: As of this writing parent NEEDS TO BE a Screen object but this requirement should be removed in the near future. model: This is the name of the model the view will handle node: The node of the XML to process. fields: The fields that we want to be shown.

RETURN widget: Will hold the View which will inherit AbstractView

Definition at line 47 of file AbstractParser.py.


The documentation for this class was generated from the following file:
Generated by Doxygen