Hi Janak

Thanks for the pointers! This helps.

Regards, Etienne



> -----Original Message-----
> From: Janak Mulani [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 10, 2006 11:49 PM
> To: Etienne Studer
> Cc: [EMAIL PROTECTED] Com
> Subject: RE: [ULC-developer] hook when table data is uploaded
> 
> Hi Etienne,
> 
> The UITableModelAdapter sends requestData and in response the server
sends
> setData.
> 
> UITableModelAdapter.setData sets the data and fires TableChanged on
> TableModelListeners. So you could listen to that on the TableModel
(i.e.
> UITableModelAdapter). However, it is also fired when server-side table
> changes and it will be hard to distinguish. Extending
UITableModelAdapter
> is
> not advisable.
> 
> If you are using custom renderers, then you could override
> UITable.setCellRendererComponents. There you can know the size.
> 
> Alternatively, you could override UiJTable's paint() method. Here you
can
> find out if the TableModel is valid by calling:
> 
> getBasicTable().getModel() - this will give you UITableModelAdapter.
To
> find
> out if data is up-to-date or not, on UITableModelAdapter you can call
> isValueUpToDate(), getInvalidColumns(), getInvalidRowRange().
> 
> If the TableModel is up-to-date, you can get column sizes and paint
cell
> rectangles accordingly.
> 
> Mind you, since you are using 6.0.4, you may have to worry about
migrating
> your extensions to 6.1.
> 
> I hope this helps.
> 
> Thanks and regards,
> 
> Janak
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Etienne
Studer
> Sent: Wednesday, August 02, 2006 6:12 AM
> To: [EMAIL PROTECTED] Com
> Subject: [ULC-developer] hook when table data is uploaded
> 
> 
> Hi
> 
> ULC 6.0.4
> Priority: High
> 
> I want to modify the initial table column widths based on the table
data
> displayed (I can only do the column width calculation on the client
since
> I
> need the client-side Swing rendering information to achieve this).
> 
> Question: how can I be notified that the table data has been uploaded
by
> ULC? If I query the table model to early, all rows/cols return null.
> 
> Thanks for your support.
> 
> Regards, Etienne

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to