The FormView class is an AbstractView capable of showing one in an read-write form. More...
Public Member Functions | |
| def | viewType |
| This function should return the type of view the class handles. | |
| def | store |
| This function should store the information in the model The model used should be the one given by display() which will always have been called before store(). | |
| def | selectedRecords |
| Should return a list with the currently selected records in the view. | |
| def | reset |
| Not used in the TreeView, used in the FormView to set all widgets to the state of 'valid'. | |
| def | display |
| This function should display the information of the model or models currentRecord points to the record (object Record) that is currently selected models points to the model list (object RecordGroup) Example: forms only use the currentModel, while tree & charts use models. | |
| def | setReadOnly |
| This function should be implemented if the view can be configured to be read-only or read-write. | |
| def | viewSettings |
| Override this function in your view if you wish to store some settings per user and view. | |
| def | setViewSettings |
| Override this function in your view if you wish to restore a previous configuration. | |
| def | showsMultipleRecords |
| Should return True if the view is capable of showing multiple records or False if it can only show one. | |
The FormView class is an AbstractView capable of showing one in an read-write form.
Definition at line 148 of file FormView.py.
| def Koo::View::Form::FormView::FormView::selectedRecords | ( | self | ) |
Should return a list with the currently selected records in the view.
If the view is a form, for example, the current id is returned. If it's a tree with several items selected, returns all of them.
Reimplemented from Koo::View::AbstractView::AbstractView.
Definition at line 203 of file FormView.py.
| def Koo::View::Form::FormView::FormView::setReadOnly | ( | self, | ||
| value | ||||
| ) |
This function should be implemented if the view can be configured to be read-only or read-write.
Reimplemented from Koo::View::AbstractView::AbstractView.
Definition at line 312 of file FormView.py.
| def Koo::View::Form::FormView::FormView::setViewSettings | ( | self, | ||
| settings | ||||
| ) |
Override this function in your view if you wish to restore a previous configuration.
The function will be called when necessary. The string given in 'settings' will be one previously returned by viewSettings().
Reimplemented from Koo::View::AbstractView::AbstractView.
Definition at line 325 of file FormView.py.
| def Koo::View::Form::FormView::FormView::showsMultipleRecords | ( | self | ) |
Should return True if the view is capable of showing multiple records or False if it can only show one.
For example, tree will return True whereas 'form' will return False. The default implementation returns True.
Reimplemented from Koo::View::AbstractView::AbstractView.
Definition at line 344 of file FormView.py.
| def Koo::View::Form::FormView::FormView::store | ( | self | ) |
This function should store the information in the model The model used should be the one given by display() which will always have been called before store().
Reimplemented from Koo::View::AbstractView::AbstractView.
Definition at line 192 of file FormView.py.
| def Koo::View::Form::FormView::FormView::viewSettings | ( | self | ) |
Override this function in your view if you wish to store some settings per user and view.
The function should return a python string with all the information which should be parseable afterwords by setViewSettings().
Reimplemented from Koo::View::AbstractView::AbstractView.
Definition at line 315 of file FormView.py.
| def Koo::View::Form::FormView::FormView::viewType | ( | self | ) |
This function should return the type of view the class handles.
Such as 'tree' or 'from'.
Reimplemented from Koo::View::AbstractView::AbstractView.
Definition at line 167 of file FormView.py.