please get the latest version from cvs and look at the new IDataSetViewer class
I think that class should get a setCellRenderer(int column (or type??), IRenderer renderer)
then look at the implementations of IDataSetViewer to let them work with that renderer
(table should use it inside the CellRenderer of its own)
----- Original Message -----
From: "Brad Lyon" <bradlyon@...>
Sent: Sunday, March 10, 2002 6:35 PM
Subject: Re: [Squirrel-sql-develop] "Date" field display options?
> So, I guess I'll do nothing here? Fine with me, of course. Let me know
> what you want me to do - can't wait to test it.
> At 05:39 PM 3/10/2002 +0100, you wrote:
> >Almost finished with that.
> >I will check it in this evening
> >I am just adding 2 more things to the changes
> >But about that rendering problem:
> >You can't do that anymore at that place!
> >For example the IDataSetViewer (a combination of IDataSetViewerDestination
> >and DataSetViewer class)
> >is now incontrol of how it will render it!!
> >A IDataSetViewer implementation is for example the JTable view or the
> >JTextArea view
> >And the JTable view doesn't do toString() on the object when inserting them
> >in the model
> >like before. Because is need Date's and Numbers in the output and not a
> >String representation
> >of that, this is because i implemented Sorting on column now.
> >So i need real numbers or date's in them to get the sorting right.
> >So if you want to set some dateformatter then we need that for the different
> >implementations of IDataSetViewer.
> >For exasmple the JTable implementation has to do that through the normal
> >So we could make a special Interface which definces how a renderer works
> >giving it a object and getting back a string. Then the
> >DataSetViewerJTablePanel class
> >should be able to get that interface for a specific column and it access
> >that through
> >its CellRenderer. This is not to much work.
> >So i think:
> >IDataSetViewer has to get a setRenderer(int iColumn, IRenderer) method
> >this must be set right after the creation of it. How it is used depends on
> >the implementation.
> >The current changes:
> >- TableSorting by pressing column headers, need small icons
> >- Icon shown for drivers, instead of colors, that are loaded or not (Need
> >better Icons!!)
> >- If only one cell selected in table when pressing copy then no header will
> >be appended.
> >- longvarchars will also be displayed now instead of <null>
> >- If selected String are longer then 50 chars then 45 chars + "......" wil
> >be displayed.
> >- Those strings (and everything else) can also be displayed in a TextArea if
> > you double click on it, so that you can display the whole value of a cell
> >2 i am busy on right now:
> >- Drop table menu item on the ObjectTree (i personally really need this :-)
> >- Refresh table menu item option (so that you can refresh the selected item
> >instead of the complete tree)
> >P.S. Why doesn't this list set the reply adress? (If i press reply then i
> >get the senders adress not the
> > list adress filled in. The list should set this to itself.