Hi

I am trying to add a new image to the header, under the sort image that is
already implemented. 
But once the header is rendered and the icon is visible, how can I make it
disappear or make it visible again? The header won't update even if I
exclude the icon. What am I doing wrong?

My HeaderCell class:

qx.Class.define("myproject.HeaderCell",
{
  extend : qx.ui.table.headerrenderer.HeaderCell,

  construct : function()
  {
    this.base(arguments);

    var gridLayout = new qx.ui.layout.Grid();
    gridLayout.setColumnFlex(0, 1);
    this.iconContainer = new qx.ui.container.Composite(gridLayout);
    this._add(this.iconContainer, {row: 0, column: 2});
    var iconSort = this.getChildControl("sort-icon");
    this.iconContainer.add(iconSort, {row: 1, column: 1});  
    this._createChildControl("buttonSearch");
  },

  properties:
  {
    buttonSort :
    {
      init : null,
      nullable : true
    }
  },

  members :
  {
    iconContainer: null,
    
    _createChildControlImpl : function(id, hash)
    {
      var control;

      switch(id)
      {       
        case "buttonSearch":
          control = new qx.ui.basic.Image("myproject/icon.png");
          this.iconContainer._add(control, {row: 2, column: 1});
          break;
      }

      return control || this.base(arguments, id);
    },
    
    setButtonSearchVisibility: function(visible){
        if(visible){
           this._showChildControl("buttonSearch");
        }else{
            this._excludeChildControl("buttonSearch");
        }        
    }

  }

});






--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Image-update-problem-in-table-header-cell-tp7586746.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to