Mario, now I don't uderstand you anymore... ;-)
The ULC API below passes the row as the third argument. Using this row value and the column value passed to the editor instance at creation time (as explained in the last email), you have all the information to return any kind of editor for any kind of row/column permutation in the getTableCellEditorComponent() method. ITableCellEditor#getTableCellEditorComponent(ULCTable, Object, int) Are you aware that you don't have to return 'this' in the API below? Regards, Etienne > -----Original Message----- > From: Mario H. Castillo [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 25, 2006 4:00 PM > To: Etienne Studer; [EMAIL PROTECTED] Com > Subject: Re: [ULC-developer] getCellEditor(int row, int col) > > Etienne, > > I do not quite understand, since I also need to know the row. You see the > row "yype" determines what Render/Editor to use where one row can be a > string render/editor, another row an int render/editor and other a > boolean > render/editor, etc. > > Mario > > ----- Original Message ----- > From: "Etienne Studer" <[EMAIL PROTECTED]> > To: "Mario H. Castillo" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED] > Com" <[EMAIL PROTECTED]> > Sent: Tuesday, July 25, 2006 6:08 PM > Subject: RE: [ULC-developer] getCellEditor(int row, int col) > > > Hi Mario > > I recommend to add a renderer/editor to each column explicitly. This > way, you can easily pass the column id or something else that is unique > in the constructor of the renderer/editor. > > ULCTableColumn#setCellRenderer(ITableCellRenderer) > ULCTableColumn#setCellEditor(ITableCellEditor) > > We use this approach and I feel quite comfortable with it since it gives > me full control. > > Regards, Etienne > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:ulc-developer- > > [EMAIL PROTECTED] On Behalf Of Mario H. Castillo > > Sent: Tuesday, July 25, 2006 2:57 PM > > To: [EMAIL PROTECTED] Com > > Subject: [ULC-developer] getCellEditor(int row, int col) > > > > Hello, > > > > I am pretty sure you answered these question dozen of times before, in > > Swing > > I can augment the function "TableCellEditor getCellEditor(int row, int > > col)" > > in order to create a TableCellEditor per row/col rather than column > > based, > > in my case I need to know the row also. > > > > How do I do this in ULC? > > > > Mario > > > > _______________________________________________ > > ULC-developer mailing list > > [email protected] > > http://lists.canoo.com/mailman/listinfo/ulc-developer _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
