Re: [qooxdoo-devel] Private members

2013-09-26 Thread Christian Hagendorn
Hi Defero,

thank you for explaining your use case. You are right, overriding the
complete class to access the members are not really good. Could you please
open an enhancement bug to our issue tracker [1], that we can change the
visibility form private to protected. Then you can extend the class and
improve the implementation for you needs.

Thanks,
Chris

[1] http://bugs.qooxdoo.org/



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Private-members-tp7584653p7584674.html
Sent from the qooxdoo mailing list archive at Nabble.com.

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] Private members

2013-09-26 Thread Defero
Hi,

I have columns that are in a special group and i have to show that on the
table above the columns. For that grouping i had to create a 2 level header.
Imagine a tabview (Button of the Page) for the the header (columns). 

I had to alter the qx.ui.table.pane.Header class alot, so i just overwrote
the whole class. I'm not that keen on doing that in the Scroller class since
i only need to limit the moving of the columns inside that "group" of the
header.

Example:

| Special Columns |
column 1   |  column 2   | column 3  | column 4   | column 5

columns 2,3,4 can not be moved outside of the special columns tab.

So i have to check in the Scroller._stopMoveHeader where the column want's
to be placed and check if is can be placed there.
But in here are:
__lastMoveTargetScroller
__moveColumn
__lastMoveTargetX
__headerClipper


This is the current problem but i'm sure that later on, i'll have to add the
moving of the special columns (column 2,3,4 together) and probbaly going to
hit on more private members that i'll need to access.


Maybe it's best that for "drastic" changes like this i overwrite the whole
scroller class and modify it.



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Private-members-tp7584653p7584673.html
Sent from the qooxdoo mailing list archive at Nabble.com.

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] Private members

2013-09-26 Thread Christian Hagendorn
Hi Defero,

you can't access private members form a super class. Could you please open
an enhancement bug and describe which members should be changed from private
to protected. Please also describe why you try to access these members.

Thanks,
Chris



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Private-members-tp7584653p7584668.html
Sent from the qooxdoo mailing list archive at Nabble.com.

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] Private members

2013-09-26 Thread Peter Schneider
> I'm out of ideas, so i'll copy the whole class (2400 lines of code) and pray
> that the updates don't change it too much 

I would recommend to use the 'patch'  feature if you only have to change one
ore two methods.
If you do a version check before you will at least get informed to check the
update (at runtime that is)

Something like this example:
--

  // Check whether we patch the correct framework version
  if (qx.core.Environment.get("qx.version") !== "3.0.1") {
throw new Error("New framework version! Check patches!");
  }

  // Patch #1: RPC Queues
  qx.Class.patch(qx.io.remote.RequestQueue,
qx.Mixin.define("infodesk.patch.RequestQueue",
{
  members :
  {
getActiveQueueLevel : function () {
  return this.getActiveQueue().length;
},
isActiveQueueEmpty : function () {
  return this.getActiveQueue().length === 0;
},
isActiveQueueFull : function () {
  return this.getActiveQueue().length >=
   this.getMaxConcurrentRequests();
}
  }
})
  );
  // Patch #2: Whatever...


/Peter

-- 

*
Besuchen Sie uns:
01.-03.10.2013 Post-Expo in Wien
Wir laden Sie herzlich ein und freuen uns auf Ihre Anmeldung.
*

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] Private members

2013-09-25 Thread Defero
I'm out of ideas, so i'll copy the whole class (2400 lines of code) and pray
that the updates don't change it too much 



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Private-members-tp7584653p7584662.html
Sent from the qooxdoo mailing list archive at Nabble.com.

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel