|
RE: getCellEditor(int row, int col): msg#00160java.ulc.devel
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:mariohc@xxxxxxxxxxxxxxxxx] > Sent: Tuesday, July 25, 2006 4:00 PM > To: Etienne Studer; Ulc-Developer@Canoo. 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" <estuder@xxxxxxxxx> > To: "Mario H. Castillo" <mariohc@xxxxxxxxxxxxxxxxx>; "Ulc-Developer@Canoo. > Com" <ulc-developer@xxxxxxxxx> > 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: ulc-developer-admin@xxxxxxxxxxxxxxx [mailto:ulc-developer- > > admin@xxxxxxxxxxxxxxx] On Behalf Of Mario H. Castillo > > Sent: Tuesday, July 25, 2006 2:57 PM > > To: Ulc-Developer@Canoo. 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 > > ULC-developer@xxxxxxxxxxxxxxx > > http://lists.canoo.com/mailman/listinfo/ulc-developer
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: getCellEditor(int row, int col), Mario H. Castillo |
|---|---|
| Next by Date: | Key Navigation in ULCTable, karthick Rajagopal |
| Previous by Thread: | Re: getCellEditor(int row, int col), Mario H. Castillo |
| Next by Thread: | RE: getCellEditor(int row, int col), Janak Mulani |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |