You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Shahzad Bhatti <sb...@peak6.com> on 2010/04/27 01:37:09 UTC

Adding containers at runtime.

I am trying to implement groups of collapsible table by using Rollup and TablePane. At high level, I have a ScrollPane, which in turn has BoxPane. I store the id of BoxPane in my application. Then at runtime, I load the wtkx file containing Rollup and TablePane for each section and then add them to BoxPane. However, it's now showing the contents of the Rollup and tables and I only see thin bar and everything  mangled together. I tried calling validate on top level BoxPane, but it didn't help. Any idea what could be causing it? Thanks.

______________________________________________

See  http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email

Re: Adding containers at runtime.

Posted by Greg Brown <gk...@mac.com>.
Could you use data binding to update the data instead of re-creating all of the components each time the data is updated?

On Apr 27, 2010, at 11:39 AM, Shahzad Bhatti wrote:

> Actually, I need to design this table for stock option quotes that are continuously changing, so every time one or more option strike price changes I get the updated data and as a result I recreate all rollups and tables. Usually, I get this data every second so it causes recreation of rollups and tables. I can optimize by caching some data, however structure of the data can changed. For example, currently for each month, I create a rollup, which has two tables, one for call options and one for put options. However, I may get new months or old months may need to be removed. Let me know if you an suggest any performance improvements. Thanks.
> 
> 
> 
> On 4/27/10 4:52 AM, "Greg Brown" <gk...@mac.com> wrote:
> 
> Are you loading the content every time the rollup is expanded, or just the first time?
> 
> On Apr 26, 2010, at 8:27 PM, Shahzad Bhatti wrote:
> 
>> I found that I was reusing WTKSerializer for all sections so changing it reload for every section fixed it. Though, I noticed severe slowness in this approach. So, I am wondering if there is a better way to show tables by sections (Actually, in my case I have two tables per section). Thanks.
>> 
>> 
>> 
>> On 4/26/10 4:37 PM, "Shahzad Bhatti" <sb...@peak6.com> wrote:
>> 
>> I am trying to implement groups of collapsible table by using Rollup and TablePane. At high level, I have a ScrollPane, which in turn has BoxPane. I store the id of BoxPane in my application. Then at runtime, I load the wtkx file containing Rollup and TablePane for each section and then add them to BoxPane. However, it's now showing the contents of the Rollup and tables and I only see thin bar and everything  mangled together. I tried calling validate on top level BoxPane, but it didn't help. Any idea what could be causing it? Thanks.
>> 
>> ______________________________________________
>> 
>> See  http://www.peak6.com/email_disclaimer.php
>> for terms and conditions related to this email
>> 
> 
> 


Re: Docking/undocking panels

Posted by Greg Brown <gk...@mac.com>.
> For the first part, I would like to add some icons on the expander's title bar that user can click to undock or close. For example, in eclipse you can double click tab bar to expand it or click on X to close it. Similarly, in Xcode you can double click a file that shows up as separate frame instead of within main panel.  Any suggestions on adding it.

Expander isn't currently meant to be used in this way. However, I imagine that is how the hypothetical new DockPanel component might work. A nested DockPanel.Frame class might provide these features.

> For second part, in eclipse you have tabs panels on left , lower and right side  and you can drag the tabs bar towards right, down or left and it moves all tabs along those axis. Any suggestions on adding something like that.


You could probably do this via the existing DnD support, but I imagine that a DockPanel component would probably help here as well.

You are welcome to submit a feature request to add this to a future release. However, I might suggest that, if you need this functionality sooner, you could attempt to build it yourself and, if you are so inclined, submit the result for inclusion in the platform.

Greg


Re: Docking/undocking panels

Posted by Shahzad Bhatti <sb...@peak6.com>.
For the first part, I would like to add some icons on the expander's title bar that user can click to undock or close. For example, in eclipse you can double click tab bar to expand it or click on X to close it. Similarly, in Xcode you can double click a file that shows up as separate frame instead of within main panel.  Any suggestions on adding it.

For second part, in eclipse you have tabs panels on left , lower and right side  and you can drag the tabs bar towards right, down or left and it moves all tabs along those axis. Any suggestions on adding something like that.

Thanks.



On 4/27/10 12:39 PM, "Greg Brown" <gk...@mac.com> wrote:

> *   When I define layout using use panels such as BoxPane, TablePane, etc, the layout is fixed. I am looking for a way to undock a panel within my BoxPane or TablePane and undock it so that user can move it outside the parent container. Can someone suggest a way to do it.

Pivot doesn't currently include a panel that supports docking in this way. However, it is certainly feasible and would be a valuable addition to the platform.

> *   Also,  I have some panel with a bunch of tabs and I would like to drag the parent container on the left or top of the screen and automatically change tabs layout to go vertical or horizontal and dock it to the side of the screen that user has selected (similar to how Eclipse IDE works). Is there an easy way to add that feature.

I can't picture exactly what you are describing, but it seems like you might be able to use Pivot's drag/drop support for this.



______________________________________________

See  http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email

Re: Docking/undocking panels

Posted by Greg Brown <gk...@mac.com>.
> *   When I define layout using use panels such as BoxPane, TablePane, etc, the layout is fixed. I am looking for a way to undock a panel within my BoxPane or TablePane and undock it so that user can move it outside the parent container. Can someone suggest a way to do it.

Pivot doesn't currently include a panel that supports docking in this way. However, it is certainly feasible and would be a valuable addition to the platform.

> *   Also,  I have some panel with a bunch of tabs and I would like to drag the parent container on the left or top of the screen and automatically change tabs layout to go vertical or horizontal and dock it to the side of the screen that user has selected (similar to how Eclipse IDE works). Is there an easy way to add that feature.

I can't picture exactly what you are describing, but it seems like you might be able to use Pivot's drag/drop support for this.


Docking/undocking panels

Posted by Shahzad Bhatti <sb...@peak6.com>.
I have two questions on docking/undocking:

 *   When I define layout using use panels such as BoxPane, TablePane, etc, the layout is fixed. I am looking for a way to undock a panel within my BoxPane or TablePane and undock it so that user can move it outside the parent container. Can someone suggest a way to do it.
 *   Also,  I have some panel with a bunch of tabs and I would like to drag the parent container on the left or top of the screen and automatically change tabs layout to go vertical or horizontal and dock it to the side of the screen that user has selected (similar to how Eclipse IDE works). Is there an easy way to add that feature.


Thanks.

______________________________________________

See  http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email

Re: Adding containers at runtime.

Posted by Shahzad Bhatti <sb...@peak6.com>.
Actually, I need to design this table for stock option quotes that are continuously changing, so every time one or more option strike price changes I get the updated data and as a result I recreate all rollups and tables. Usually, I get this data every second so it causes recreation of rollups and tables. I can optimize by caching some data, however structure of the data can changed. For example, currently for each month, I create a rollup, which has two tables, one for call options and one for put options. However, I may get new months or old months may need to be removed. Let me know if you an suggest any performance improvements. Thanks.



On 4/27/10 4:52 AM, "Greg Brown" <gk...@mac.com> wrote:

Are you loading the content every time the rollup is expanded, or just the first time?

On Apr 26, 2010, at 8:27 PM, Shahzad Bhatti wrote:

> I found that I was reusing WTKSerializer for all sections so changing it reload for every section fixed it. Though, I noticed severe slowness in this approach. So, I am wondering if there is a better way to show tables by sections (Actually, in my case I have two tables per section). Thanks.
>
>
>
> On 4/26/10 4:37 PM, "Shahzad Bhatti" <sb...@peak6.com> wrote:
>
> I am trying to implement groups of collapsible table by using Rollup and TablePane. At high level, I have a ScrollPane, which in turn has BoxPane. I store the id of BoxPane in my application. Then at runtime, I load the wtkx file containing Rollup and TablePane for each section and then add them to BoxPane. However, it's now showing the contents of the Rollup and tables and I only see thin bar and everything  mangled together. I tried calling validate on top level BoxPane, but it didn't help. Any idea what could be causing it? Thanks.
>
> ______________________________________________
>
> See  http://www.peak6.com/email_disclaimer.php
> for terms and conditions related to this email
>



Re: Adding containers at runtime.

Posted by Greg Brown <gk...@mac.com>.
Are you loading the content every time the rollup is expanded, or just the first time?

On Apr 26, 2010, at 8:27 PM, Shahzad Bhatti wrote:

> I found that I was reusing WTKSerializer for all sections so changing it reload for every section fixed it. Though, I noticed severe slowness in this approach. So, I am wondering if there is a better way to show tables by sections (Actually, in my case I have two tables per section). Thanks.
> 
> 
> 
> On 4/26/10 4:37 PM, "Shahzad Bhatti" <sb...@peak6.com> wrote:
> 
> I am trying to implement groups of collapsible table by using Rollup and TablePane. At high level, I have a ScrollPane, which in turn has BoxPane. I store the id of BoxPane in my application. Then at runtime, I load the wtkx file containing Rollup and TablePane for each section and then add them to BoxPane. However, it's now showing the contents of the Rollup and tables and I only see thin bar and everything  mangled together. I tried calling validate on top level BoxPane, but it didn't help. Any idea what could be causing it? Thanks.
> 
> ______________________________________________
> 
> See  http://www.peak6.com/email_disclaimer.php
> for terms and conditions related to this email
> 


Re: Adding containers at runtime.

Posted by Shahzad Bhatti <sb...@peak6.com>.
I found that I was reusing WTKSerializer for all sections so changing it reload for every section fixed it. Though, I noticed severe slowness in this approach. So, I am wondering if there is a better way to show tables by sections (Actually, in my case I have two tables per section). Thanks.



On 4/26/10 4:37 PM, "Shahzad Bhatti" <sb...@peak6.com> wrote:

I am trying to implement groups of collapsible table by using Rollup and TablePane. At high level, I have a ScrollPane, which in turn has BoxPane. I store the id of BoxPane in my application. Then at runtime, I load the wtkx file containing Rollup and TablePane for each section and then add them to BoxPane. However, it's now showing the contents of the Rollup and tables and I only see thin bar and everything  mangled together. I tried calling validate on top level BoxPane, but it didn't help. Any idea what could be causing it? Thanks.

______________________________________________

See  http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email