Hi Georg,

Try this:

Regards Sak

members :
  {
    main: function()
    {
      this.base(arguments);
      var scroller = new qx.ui.container.Scroll();
      var container = new qx.ui.container.Composite(new
qx.ui.layout.VBox(10));
      container.setPadding(20);
      container.setAllowStretchX(false);
      scroller.add(container);
      this.getRoot().add(scroller, {edge : 0});
var tabView = this.getTabView3();      
container.add(tabView);
      //Table
      var column = []; column.push("Name"); var rowData = [];
rowData.push(["Inhalt"]);
      var tableModel  = new qx.ui.table.model.Simple();
      tableModel.setColumns(column);
      tableModel.setData(rowData);
      table = new qx.ui.table.Table(tableModel,"Tabelle");
      //Add table in the tabview widget??????

var pages = tabView.getChildren(); // Get all Pages as Array
pages[0].add(table);
      
    },
 getTabView3 : function()
    {
      var tabView = new qx.ui.tabview.TabView();
      tabView.setWidth(500);
      tabView.setHeight(300);
      for (var i=1; i<=3; i++)
      {
        var page = new qx.ui.tabview.Page("Page #" + i,
"icon/32/apps/utilities-terminal.png");
        page.setLayout(new qx.ui.layout.VBox(4));
        tabView.add(page);
        page.add(new qx.ui.basic.Label("Page #" + i));
      }
      var firstPage = tabView.getChildren()[0];
      return tabView;
    } 

SAKsystems

Inh. Mustafa Sak

Varrelmannstr. 16

30453 Hannover

Tel.   +49 511 / 165 969 40

Fax   +49 511 / 165 969 49

Mobil +49 163 / 312 6144

http://www.saksys.de

[email protected]

STEUER-Nr. 2613817458

 

-----Ursprüngliche Nachricht-----
Von: georg [mailto:[email protected]] 
Gesendet: Montag, 25. Oktober 2010 08:18
An: [email protected]
Betreff: [qooxdoo-devel] add table in tabview


Hi,

it is possible to add an table in a tabview, after the tabview ist created?

Regards,
Georg

members :
  {
    main: function()
    {
      this.base(arguments);
      var scroller = new qx.ui.container.Scroll();
      var container = new qx.ui.container.Composite(new
qx.ui.layout.VBox(10));
      container.setPadding(20);
      container.setAllowStretchX(false);
      scroller.add(container);
      this.getRoot().add(scroller, {edge : 0});
      container.add(this.getTabView3());
      //Table
      var column = []; column.push("Name"); var rowData = [];
rowData.push(["Inhalt"]);
      var tableModel  = new qx.ui.table.model.Simple();
      tableModel.setColumns(column);
      tableModel.setData(rowData);
      table = new qx.ui.table.Table(tableModel,"Tabelle");
      //Add table in the tabview widget??????
      
    },
 getTabView3 : function()
    {
      var tabView = new qx.ui.tabview.TabView();
      tabView.setWidth(500);
      tabView.setHeight(300);
      for (var i=1; i<=3; i++)
      {
        var page = new qx.ui.tabview.Page("Page #" + i,
"icon/32/apps/utilities-terminal.png");
        page.setLayout(new qx.ui.layout.VBox(4));
        tabView.add(page);
        page.add(new qx.ui.basic.Label("Page #" + i));
      }
      var firstPage = tabView.getChildren()[0];
      return tabView;
    }
-- 
View this message in context:
http://qooxdoo.678.n2.nabble.com/add-table-in-tabview-tp5669503p5669503.html
Sent from the qooxdoo mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

<<attachment: Mustafa Sak ([email protected]).vcf>>

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to