]>
git.argeo.org Git - gpl/argeo-slc.git/blob - server/org.argeo.slc.ria/src/argeo-ria-lib/jcr/class/org/argeo/jcr/ria/views/XmlNodeEditor.js
2493edda84cab20e1664f7f734f05f250cd56f6a
1 qx
.Class
.define("org.argeo.jcr.ria.views.XmlNodeEditor", {
2 extend
: qx
.ui
.embed
.Html
,
3 implement
: [org
.argeo
.ria
.components
.IView
],
7 * The commands definition Map that will be automatically added and wired to the menubar and toolbar.
8 * See {@link org.argeo.ria.event.CommandsManager#definitions} for the keys to use for defining commands.
15 check
:"org.argeo.ria.components.ViewSelection"
19 event
: "changeInstanceId"
23 event
: "changeInstanceLabel"
27 construct : function(){
33 * The implementation should contain the GUI initialisation.
34 * This is the role of the manager to actually add the graphical component to the pane,
35 * so it's not necessary to do it here.
36 * @param viewPane {org.argeo.ria.components.ViewPane} The pane manager
37 * @param data {Mixed} Any object or data passed by the initiator of the view
40 init : function(viewPane
, data
){
41 this.setViewSelection(new org
.argeo
.ria
.components
.ViewSelection(viewPane
.getViewId()));
42 this.setHtml("Hello!");
45 * The implementation should contain the real data loading (i.o. query...)
48 load : function(rootNode
){
50 rootNode
.addListener("changeLoadState", function(){
51 var xmlString
= rootNode
.toXmlString(true);
52 this.setHtml(qx
.xml
.String
.escape(xmlString
));
56 * Whether this component is already contained in a scroller (return false) or not (return true).
59 addScroll : function(){
63 * Called at destruction time
64 * Perform all the clean operations (stopping polling queries, etc.)