Hi Developers,

during my migration from version 1.2 to version 1.3 I found some problems.
One of them is this:

The event handler "qx.ui.splitpane.Pane._onSplitterMove" has changed into
"qx.ui.splitpane.Pane.__onSplitterMove" (from 'protected' in 1.2 to 'private'
in 1.3)

This gives me a problem because I am doing this in my application:


I have a split pane with a slightly different splitter[1], and therefore I
derived my SplitPane class from "qx.ui.splitpane.Pane" with overwritten
"_createChildControlImpl" method (were I return my Splitter instead of "yours"
;) )

<code>
qx.Class.define("app.ui.splitpane.Pane",
{
  extend : qx.ui.splitpane.Pane,
  //...
  members :
  {
    // overridden
    _createChildControlImpl : function (id)
    {
      var control;

      // Create _our_ splitter, not qooxdoo's
      if (id === "splitter")
      {
        control = new app.ui.splitpane.Splitter(this);
        this._add(control, {type : id});
        control.addListener("move", this._onSplitterMove, this);
      } else {
        control = this.base(arguments, id);
      }

      return control;
    },
    // ...
  }
});
</code>

I wanted to avoid re-implementing the complete qooxdoo split pane, but now I
can't exchange the frameworks splitter by my own splitter, 'cause I would have
to set the private method "__onSplitterMove" from the base class @
"addListener"...

Is there a reason for this 'increased privacy'?
Or (better question): How should I implement this now?

Do I have to _copy_ all the methods from the base class[2] until there's no
more private call?...Me don't like... :-/

Any design hint would be nice ;)

Regards,
  Peter

----
[1] It includes two buttons for 'quick hide/show' of a pane (see attached
    image)
[2] __onSplitterMove and __setBlockerPosition

<<attachment: quickfadesplitpane.png>>

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to