Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 13152 invoked from network); 19 Mar 2011 21:23:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Mar 2011 21:23:38 -0000 Received: (qmail 4369 invoked by uid 500); 19 Mar 2011 21:23:38 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 4356 invoked by uid 500); 19 Mar 2011 21:23:38 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 4348 invoked by uid 99); 19 Mar 2011 21:23:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Mar 2011 21:23:38 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pavan.vadavalli@gmail.com designates 74.125.82.42 as permitted sender) Received: from [74.125.82.42] (HELO mail-ww0-f42.google.com) (74.125.82.42) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Mar 2011 21:23:33 +0000 Received: by wwk4 with SMTP id 4so2350865wwk.1 for ; Sat, 19 Mar 2011 14:23:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=pXZf3wuBND0taNBuQgzi/gwB9dT4c+5vvL56DgLSiD0=; b=HMLBV781GUSWXPxd5XWmx6QzSRmqrm/+T138xqYOoBqptYGVdyKCgAm2yALEhetPIR GQhFGmoJKX4aE/X2yXMzF83bF2RVuxQRPFJFHjzUQJtbg2b0u3yIyVUJQXA14M1y+BUG Q0oRFWpr5WrcyiUP/88QRqDZo3QREYoAuUqrI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=mGGfsfqtFY890Mcf98ueRN7UNm4qXVI8cOm+NTyU8s2FFB2QzSSIWkW+Qb0adi6IZH Xtb8VmQYB12BSw47M1Fz2v5AdMgOjxhge/KQZMJ5qqBau8QnkQhfUFlhobMKovXYVT4t KtSxqtE5WzUpc7NcUgQd8GkkmhE4jlJ8wAl0Q= MIME-Version: 1.0 Received: by 10.216.179.133 with SMTP id h5mr3557585wem.69.1300569791484; Sat, 19 Mar 2011 14:23:11 -0700 (PDT) Received: by 10.216.9.71 with HTTP; Sat, 19 Mar 2011 14:23:11 -0700 (PDT) In-Reply-To: References: Date: Sun, 20 Mar 2011 08:23:11 +1100 Message-ID: Subject: Re: MDI Kind of implementation simulating JDesktopPane From: Pavan Vadavalli To: Greg Brown , user@pivot.apache.org Content-Type: multipart/alternative; boundary=0016e64c0b8c6d52c3049edc809e --0016e64c0b8c6d52c3049edc809e Content-Type: text/plain; charset=ISO-8859-1 Hi, its been little struggling to come up with this extension implementation and i need this as part of Core functionality. Can you please provide some wokring functionality that i can extend and continue to give a complete shape for this. Thanks, Pavan On Tue, Mar 15, 2011 at 12:23 AM, Greg Brown wrote: > You can't add a Window to another container. However, when you call open() > on a window, it is internally added to the display. You could create a > "special" window representing the task bar that listens for add and remove > events on the display so you know when windows are opened or closed. You'll > also probably want to listen for size changes on the display so you can > reposition the task bar. This is similar to how the task bar was implemented > in earlier versions of Windows (not sure how it works now though). > > Finally, you'll probably want some way to determine which windows should > appear in the task bar (e.g. top-level frames, but not menu popups or > tooltips). For example, in my prototype I decided that only root windows > (those that have no owner) would appear in the task bar. > > Hope this helps, > G > > On Mar 14, 2011, at 3:22 AM, Pavan Vadavalli wrote: > > Hi > > Trying to accomplish the below > > Have enabled the minimize button from FramTerraSkin > Tried to create Mainwindow by adding Table with one Column and > fundamentally two rows, > Added a Panel to the Row and tried to add a Frame to this Panel > This is throwing below Error > > java.lang.IllegalArgumentException: Window parent must be null or display, > cannot be org.apache.pivot.wtk.TablePane > at org.apache.pivot.wtk.Window.setParent(Window.java:460) > at org.apache.pivot.wtk.Container.insert(Container.java:151) > at org.apache.pivot.wtk.Container.add(Container.java:131) > at > org.apache.pivot.wtk.TablePane$RowSequence.insert(TablePane.java:469) > at org.apache.pivot.wtk.TablePane$RowSequence.add(TablePane.java:448) > > I guess Since Frame is itslef a Window this is no supported. > > Basically i want to add multiple Frames to the main Window and at the > Bottom Task Bar to manage the Navigation of these windows ( Minmize, > maximize) > > Can you help me out what is going wrong here. > Attached is the BXML > > > On Wed, Mar 9, 2011 at 11:17 PM, Greg Brown wrote: > >> That's correct - I actually started prototyping something like this a >> while back, but I never finished it. >> >> On Mar 9, 2011, at 6:33 AM, Chris Bartlett wrote: >> >> Pavan, >> >> See this thread >> >> http://apache-pivot-users.399431.n3.nabble.com/Minimized-Frames-td2117206.html >> >> Currently, if you minimize a Pivot Frame it will disappear from the >> Display, much as it would if you called myFrame.setVisible(false). >> >> If you want to show the minimized frames somewhere you will have to do >> that yourself. >> >> For instance to emulate the MS Windows Taskbar you could maybe have a >> FlowPane or TablePane at the bottom of the Display, and populate it with >> instances of a custom Component that renderers part of the Frame's title. >> >> If I have some time later today I will try to knock up a quick example and >> post here. >> >> Chris >> >> On 9 March 2011 15:55, Pavan Vadavalli wrote: >> >>> Hi, >>> >>> I am looking for help related to create a MDI related Application using >>> Pivot. >>> >>> I wasnt able to figure about a container like JDesktopPane that manages >>> the Forms or Frames that can be added and can be iconified and closed. >>> >>> Can some one point me to some tutorials/demos that achieve . >>> Thanks and Regards, >>> Pavan >>> >>> >> >> > > > > --0016e64c0b8c6d52c3049edc809e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
its been little struggling to come up with this extension imple= mentation and i need this as part of Core functionality.
Can you please provide some wokring functionality that i can extend an= d continue to give a complete shape for this.
Thanks,
Pavan
On Tue, Mar 15, 2011 at 12:23 AM, Greg Brown <gk_brown@verizon= .net> wrote:
You can't add a Window to another = container. However, when you call open() on a window, it is internally adde= d to the display. You could create a "special" window representin= g the task bar that listens for add and remove events on the display so you= know when windows are opened or closed. You'll also probably want to l= isten for size changes on the display so you can reposition the task bar. T= his is similar to how the task bar was implemented in earlier versions of W= indows (not sure how it works now though).=20

Finally, you'll probably want some way to determine which windows = should appear in the task bar (e.g. top-level frames, but not menu popups o= r tooltips). For example, in my prototype I decided that only root windows = (those that have no owner) would appear in the task bar.

Hope this helps,
G

On Mar 14, 2011, at 3:22 AM, Pavan Vadavalli wrote:

Hi

Trying to accomplish the below

Have ena= bled the minimize button from FramTerraSkin
Tried to create Mainwindow b= y adding Table with one Column and fundamentally two rows,
Added a Panel= to the Row and tried to add a Frame to this Panel
This is throwing below Error

java.lang.IllegalArgumentException: Win= dow parent must be null or display, cannot be org.apache.pivot.wtk.TablePan= e
=A0=A0=A0 at org.apache.pivot.wtk.Window.setParent(Window.java:460)=A0=A0=A0 at org.apache.pivot.wtk.Container.insert(Container.java:151)
=A0=A0=A0 at org.apache.pivot.wtk.Container.add(Container.java:131)
=A0= =A0=A0 at org.apache.pivot.wtk.TablePane$RowSequence.insert(TablePane.java:= 469)
=A0=A0=A0 at org.apache.pivot.wtk.TablePane$RowSequence.add(TablePa= ne.java:448)

I guess Since Frame is itslef a Window this is no supported.

Bas= ically i want to add multiple Frames to the main Window and at the Bottom T= ask Bar to manage the Navigation of these windows ( Minmize, maximize)

Can you help me out what is going wrong here.
Attached is the BXML

On Wed, Mar 9, 2011 at 11:17 PM, Greg Brown <gk_brown@verizon.net> wrote:
That's correct - I actually starte= d prototyping something like this a while back, but I never finished it.=20

On Mar 9, 2011, at 6:33 AM, Chris Bartlett wrote:

Pavan,

See this thread

Currently, if you minimize a Pivot Frame it will disappear from the Di= splay, much as it would if you called myFrame.setVisible(false).

If you want to show the minimized frames somewhere you will have to do= that yourself. =A0

For instance to emulate the MS Windows Taskbar you could maybe have a = FlowPane or TablePane at the bottom of the Display, and populate it with in= stances of a custom Component that renderers part of the Frame's title.=

If I have some time later today I will try to knock up a quick example= and post here.

Chris

On 9 March 2011 15:55, Pavan Vadavalli <pavan.vadavalli@gmail.com> wrote:
Hi,

I am looking for help= related to create a MDI related Application using Pivot.

I wasnt ab= le to figure about a container=A0 like=A0 JDesktopPane that manages the For= ms or Frames that can be added and can be iconified and closed.

Can some one point me to some tutorials/demos that achieve .
Thanks = and Regards,
Pavan




<MainWindow.bxml>


--0016e64c0b8c6d52c3049edc809e--