]>
git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.webapp/src/main/webapp/source/class/org/argeo/ria/components/Modal.js
6906599434bb14086dd73644d4ecdf19c5998746
1 /* ************************************************************************
7 Authors: Charles du Jeu
9 ************************************************************************ */
10 qx
.Class
.define("org.argeo.ria.components.Modal",
12 extend
: qx
.ui
.window
.Window
,
14 construct : function(caption
, icon
, text
){
22 this.setLayout(new qx
.ui
.layout
.Dock());
23 var closeButton
= new qx
.ui
.form
.Button("Close");
24 closeButton
.addListener("execute", function(e
){
28 this.add(closeButton
, {edge
:'south'});
37 addLabel:function(text
){
38 this.add(new qx
.ui
.basic
.Label(text
), {edge
:'center', width
:'100%'});
40 addContent: function(panel
){
41 this.add(panel
, {edge
:'center', width
:'100%'});
43 attachAndShow:function(){
44 org
.argeo
.ria
.components
.ViewsManager
.getInstance().getApplicationRoot().add(this);