minor - remove obsolete comments

This commit is contained in:
Heng Sin Low 2010-03-31 04:10:33 +00:00
parent d2c63f6e70
commit 62ebd70936
1 changed files with 0 additions and 72 deletions

View File

@ -174,78 +174,6 @@ public class WListItemRenderer implements ListitemRenderer, EventListener, Listi
return;
}
/**
* Obtain the foreground colour to be used for the specified field.
*
* @param table The table containing the affected field.
* @param row The row of the field for which the colour is wanted.
* @return The <code>Color</code> to be used.
*/
/* private Color getForegroundColour(WListbox table, int row)
{
Color fg = AdempierePLAF.getTextColor_Normal();
int colourCode = table.getColorCode(row);
//
if (colourCode == 0)
{
// Black
}
else if (colourCode < 0)
{
fg = AdempierePLAF.getTextColor_Issue(); // Red
}
else
{
fg = AdempierePLAF.getTextColor_OK(); // Blue
}
// Highlighted row
if (table.isSelected)
{
//fg = table.getSelectionForeground();
}
return fg;
}
*/
/**
* Obtain the background colour to be used for the specified field.
*
* @param table The table containing the affected field.
* @param row The row of the field for which the colour is wanted.
* @param column The column of the field for which the colour is wanted.
* @return The <code>Color</code> to be used.
*/
/* private Color getBackgroundColour(WListbox table, int row, int column)
{
Color bg = AdempierePLAF.getFieldBackground_Normal();
boolean isCellReadOnly = !table.isCellEditable(row, column);
if (isCellReadOnly)
{
bg = AdempierePLAF.getFieldBackground_Inactive();
if (isSelected && !hasFocus)
{
bg = bg.darker();
}
}
// Highlighted row
if (isSelected)
{
// Windows is white on blue
bg = table.getSelectionBackground();
if (hasFocus)
{
bg = GraphUtil.brighter(bg, .9);
}
}
return bg;
}
*/
/**
* Generate the cell for the given <code>field</code>.
*