minor - remove obsolete comments
This commit is contained in:
parent
d2c63f6e70
commit
62ebd70936
|
@ -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>.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue