Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. qx.Class.define("...",
  2.     {
  3.  
  4.         extend:qx.ui.core.Widget,
  5.  
  6.         construct:function (data) {
  7.             this.base(arguments);
  8.             ...            
  9.             this._createChildControl("gcontainer");
  10.             this._setLayout(new qx.ui.layout.HBox(1));
  11.  
  12.         },
  13.  
  14.         members:{
  15.             _createChildControlImpl:function (id, hash) {
  16.                 var control;
  17.                 switch (id)  {
  18.                     case 'gcontainer':
  19.  
  20.                         control = new qx.ui.container.SlideBar().set({
  21.                             backgroundColor:"white",
  22.                             orientation: 'horizontal',
  23.                             width: 200
  24.                         });
  25.  
  26.                         control.setLayout(new qx.ui.layout.HBox());
  27.                         this._add(control);
  28.                         return control;
  29.  
  30.                     ...
  31.  
  32.                     default:
  33.                         return this.base(arguments, id);
  34.  
  35.                 }
  36.  
  37.             }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement