]>
git.argeo.org Git - gpl/argeo-slc.git/blob - components/IView.js
2 * Interface for a standard 'view' of an argeo RIA. A view is an independant applet that
3 * will be integrated inside a ViewPane.
4 * If this view is to implement a selection (a list, a tree, etc) that will trigger changes on commands,
5 * it must trigger a viewSelection#changeSelection event.
7 * The typical lifecycle of an IView will be the following :
8 * <br>+ init(viewPane) : initialize basic GUI in the viewPane
9 * <br>+ getCommands() : wire the commands and add them to the toolbars/menubars
10 * <br>+ load(data) : loads the data itself.
12 * @author Charles du Jeu
14 qx
.Interface
.define("org.argeo.ria.components.IView", {
18 * The commands definition Map that will be automatically added and wired to the menubar and toolbar.
19 * See {@link org.argeo.ria.event.CommandsManager#definitions} for the keys to use for defining commands.
26 * The implementation should contain the GUI initialisation.
27 * This is the role of the manager to actually add the graphical component to the pane,
28 * so it's not necessary to do it here.
29 * @param viewPane {org.argeo.ria.components.ViewPane} The pane manager
32 init : function(viewPane
){return true;},
34 * The implementation should contain the real data loading (i.o. query...)
35 * @param data {mixed} Any data in any format
38 load : function(data
){return true;},
40 * Whether this component is already contained in a scroller (return false) or not (return true).
43 addScroll : function(){return true;}