A Proxy is a class that 'attaches' an instance to an interface's widgets, and transparently manipulates that instance's attributes as the user alters the content of the widgets.
The Proxy takes the widget list and detects what widgets are to be attached to the model by looking if it is a KiwiWidget and if it has the model-attribute set.
Function | __init__ | Create a new Proxy object. |
Function | _reset_widget | Undocumented |
Function | _setup_widget | Undocumented |
Function | _register_proxy_in_model | Undocumented |
Function | _unregister_proxy_in_model | Undocumented |
Function | _on_widget__content_changed | This is called as soon as the content of one of the widget |
Function | _on_widget__notify | Undocumented |
Function | _get_model | Undocumented |
Function | proxy_updated | This is a hook that is called whenever the proxy updates the |
Function | update_many | Like update but takes a sequence of attributes |
Function | update | Generic frontend function to update the contentss of a widget based |
Function | set_model | Updates the model instance of the proxy. |
Function | add_widget | Adds a new widget to the proxy |
Function | remove_widget | Removes a widget from the proxy |
Function | new_model | Undocumented |
Create a new Proxy object.
This is called as soon as the content of one of the widget changes, the widgets tries fairly hard to not emit when it's not neccessary
This is a hook that is called whenever the proxy updates the model. Implement it in the inherited class to perform actions that should be done each time the user changes something in the interface. This hook by default does nothing.
Like update but takes a sequence of attributes
Generic frontend function to update the contentss of a widget based on its model attribute name using the internal update functions.
Updates the model instance of the proxy. Allows a proxy interface to change model without the need to destroy and recreate the UI (which would cause flashing, at least)
Adds a new widget to the proxy
Removes a widget from the proxy