Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 86390 invoked from network); 1 Feb 2010 16:00:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2010 16:00:48 -0000 Received: (qmail 56142 invoked by uid 500); 1 Feb 2010 16:00:48 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 56123 invoked by uid 500); 1 Feb 2010 16:00:48 -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 56114 invoked by uid 99); 1 Feb 2010 16:00:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 16:00:48 +0000 X-ASF-Spam-Status: No, hits=3.0 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gkbrown@mac.com designates 17.148.16.101 as permitted sender) Received: from [17.148.16.101] (HELO asmtpout026.mac.com) (17.148.16.101) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 16:00:40 +0000 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_2ySxoEYPfHDQc9vhd9jALA)" Received: from [10.0.1.13] (65-78-20-111.c3-0.nwt-ubr2.sbo-nwt.ma.cable.rcn.com [65.78.20.111]) by asmtp026.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KX60026J73L7540@asmtp026.mac.com> for user@pivot.apache.org; Mon, 01 Feb 2010 07:59:51 -0800 (PST) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1002010114 From: Greg Brown Subject: Re: Components made up of Java class and WTKX markup Date: Mon, 01 Feb 2010 10:59:45 -0500 In-reply-to: To: user@pivot.apache.org References: Message-id: <9EDA29E8-C57B-47BF-95B4-A6B6B0DC32EB@mac.com> X-Mailer: Apple Mail (2.1077) --Boundary_(ID_2ySxoEYPfHDQc9vhd9jALA) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT You could do this using the approach I outlined below. You could also define a custom "composite" component. This would be a class that extends Container and installs a skin that manages the various subcomponents. If the component is only going to be used within a single application, the first approach is probably a better choice since it will be easier to implement. If you plan to use it across multiple applications, you may want to consider the second approach. Greg On Feb 1, 2010, at 10:44 AM, Cuong Diep wrote: > Hi, > > Sorry I did't make myself a bit clearer. > > I suppose what I'm trying to work out is how to create a 'black-box component' that consists of many widgets. For example, a 'paging table' component that consists of a TableView but also Labels to show total number of items, starting item number, end item number, LinkButtons for next and previous page, etc. etc. > > I'd like to be reuse the above component but may want to change the position or alignment of the labels or link buttons or hide them completely. > > What would be the best way to do this? > > > > ---------- Forwarded message ---------- > From: Greg Brown > To: user@pivot.apache.org > Date: Fri, 29 Jan 2010 12:45:27 -0500 > Subject: Re: Components made up of Java class and WTKX markup > Hi Cuong, > > > Let's say I have the class AboutPane [extends BoxPane] and I have the markup file AboutPane.wtkx which has the content > > > > > >