379 |
boolean selected, boolean expanded, boolean leaf, int row, |
boolean selected, boolean expanded, boolean leaf, int row, |
380 |
boolean hasFocus) |
boolean hasFocus) |
381 |
{ |
{ |
382 |
this.selected = selected; |
if (val instanceof Icon) |
383 |
this.hasFocus = hasFocus; |
setIcon((Icon) val); |
384 |
|
else |
385 |
setText(val.toString()); |
{ |
386 |
setHorizontalAlignment(LEFT); |
setText(val.toString()); |
387 |
setOpaque(true); |
setIcon(null); |
388 |
setVerticalAlignment(TOP); |
this.selected = selected; |
389 |
setEnabled(true); |
this.hasFocus = hasFocus; |
390 |
setFont(getFont()); |
setHorizontalAlignment(LEFT); |
391 |
|
setOpaque(true); |
392 |
if (leaf) |
setVerticalAlignment(TOP); |
393 |
setIcon(getLeafIcon()); |
setEnabled(true); |
394 |
else if (expanded) |
setFont(getFont()); |
395 |
setIcon(getOpenIcon()); |
} |
|
else |
|
|
setIcon(getClosedIcon()); |
|
396 |
|
|
397 |
if (selected) |
if (selected) |
398 |
{ |
{ |