RE: [Essentialdata-discuss] VirtualTable
Brought to you by:
dankib01
|
From: Kibler, D. (HQP) <Dan...@rh...> - 2005-06-06 17:55:29
|
I've not used VirtualTable.=20
=20
I have a semi-active prototype project using ED. I use MROTable to meet =
my table needs. Since I fixed a couple of small bugs in MRO that were =
causing some scrolling problems, it seems to work fine. My fix is in =
CVS.
-----Original Message-----
From: ess...@li... =
[mailto:ess...@li...]On Behalf Of =
Michael Cheung
Sent: Monday, June 06, 2005 10:16 AM
To: ess...@li...
Subject: [Essentialdata-discuss] VirtualTable
Anyone try using VirtualTable? I cannot find any examples online and =
this is the closest code I can find in their documentation. Does anyone =
still use this API at all?
=20
LinkedList employees =3D new LinkedList();
employees.add(new Employee("123-45-6789"));
employees.add(new Employee("098-76-5432"));
parent.setLayout(new FillLayout());
VirtualTable table =3D new VirtualTable(parent, SWT.BORDER | SWT.MULTI);
table.setLinesVisible(true);
Table realTable =3D table.getControl();
// Columns...
table.setHeaderVisible(true);
TableColumn tc =3D new TableColumn(realTable, SWT.CENTER);
tc.setWidth(150);
tc.setText("SSN");
// A single prototype row...
TableItem item =3D new TableItem(realTable, SWT.NULL);
// Editor for column 0...
Text text =3D new Text(realTable, SWT.NULL);
TableEditor editor =3D new TableEditor(realTable);
editor.grabHorizontal=3Dtrue;
editor.setEditor(text, item, 0);
// Edit the employees linked list...
table.addColumnProperty("
=20
=20
=20
Michael Cheung
Equilar, Inc.
1710 South Amphlett Boulevard
Suite 312
San Mateo, CA 94402
650-286-4576 (phone)
650-286-4513 (fax)
mc...@eq...
=20
CONFIDENTIALITY NOTICE:=20
This is a transmission from Equilar, Inc. and may contain information =
which is confidential and proprietary. If you are not the addressee, =
any disclosure, copying or distribution or use of the contents of this =
message is expressly prohibited. If you have received this transmission =
in error, please destroy it and notify us immediately at 650-286-4512. =
Internet and e-mail communications are Equilar's property and Equilar =
reserves the right to retrieve and read any message created, sent and =
received.
=20
|