jGuru Forums

how do i do a row rendering!_NEWLINE_!(Business Domain requirement in many cases)!_NEWLINE_!(i mean a i want do the rendering after i compare the row cell value)
0 posts in topic
Flat View
TOPIC ACTIONS:

Posted By:   sachin_l
Posted On:   Monday, April 16, 2001 02:48 PM

Suppose i have three columns (ID| AGE| MONEY) (1 | 20 | 2000) (2 | 20 | 3000) (3 | 25 | 1000) Now the Business logic that has been set for each column are as follows 1st coloum(ID >1 setColor = blue setlevel= 1) 2ndColumn(AGE > 18 setColor= Red setlevel= 3) 3rd column(MONEY=2000 setColor = Green setlevel =2) what Color mean if one condition for the column is satisfied then render the whole row with repective color if two/more conditions are satisfied then take the level into account put the highest level color for whole row. we want to see the same color on every row to have good view of what is the intensity level for that row   More>>

Suppose i have three columns
(ID| AGE| MONEY)
(1 | 20 | 2000)
(2 | 20 | 3000)
(3 | 25 | 1000)

Now the Business logic that has been set for each column are as follows
1st coloum(ID >1 setColor = blue setlevel= 1)
2ndColumn(AGE > 18 setColor= Red setlevel= 3)
3rd column(MONEY=2000 setColor = Green setlevel =2)

what Color mean if one condition for the column is satisfied
then render the whole row with repective color
if two/more conditions are satisfied then take the level
into account put the highest level color for whole row.
we want to see the same color on every row to have good view
of what is the intensity level for that row.

when i use getTableCellRenderer i render every cell.
so i get different color for every cell.

How do i go ahead/go backward
/ compare the whole row data and
then decide the rendering of the row.

It is important requriement any business logic where u want to
query the view without going to database.

Highlight some stuff differently if the row satisfies
two or more conditions in the cell of the same row.

We want to set the level of intensity of the row color with
the number of the conditions that are satisfied for the row.

In above case row color will be blue if all the condition
are satisfied.

<<Less