AGW Logo

agw_title AbstractHandler

Base class for persistent windows, uses the window name as persistent name by default and automatically reacts to the window destruction.

Note

This is an abstract class. If you wish to add another (custom) handler for your widgets, you should derive from AbstractHandler and override the Save, Restore and GetKind methods.

hierarchy Inheritance Diagram

Inheritance diagram for: AbstractHandler

Inheritance diagram of AbstractHandler


method_summary Methods Summary

__init__Default class constructor.
GetKindReturns a short and meaningful string description of your widget.
RestoreRestores the widget’s settings by calling PersistentObject.RestoreValue(), which in
SaveSaves the widget’s settings by calling PersistentObject.SaveValue(), which in

API Class API

class AbstractHandler(object)[source]

Base class for persistent windows, uses the window name as persistent name by default and automatically reacts to the window destruction.

Note

This is an abstract class. If you wish to add another (custom) handler for your widgets, you should derive from AbstractHandler and override the AbstractHandler.Save(), AbstractHandler.Restore() and AbstractHandler.GetKind() methods.



__init__(pObject)[source]

Default class constructor.

Parameters:pObject – a PersistentObject containing information about the persistent widget.


GetKind()[source]

Returns a short and meaningful string description of your widget.

Note

This method must be overridden in derived classes.



Restore()[source]

Restores the widget’s settings by calling PersistentObject.RestoreValue(), which in turns calls PersistenceManager.RestoreValue().

Note

This method must be overridden in derived classes.



Save()[source]

Saves the widget’s settings by calling PersistentObject.SaveValue(), which in turns calls PersistenceManager.SaveValue().

Note

This method must be overridden in derived classes.

Tree

Table Of Contents

Previous topic

AUIHandler

Next topic

BookHandler