Apply code review suggestions from @CyB3RC0nN0R 2
This commit is contained in:
parent
71bb329857
commit
2491812ba0
@ -35,8 +35,10 @@ public abstract class AbstractListCell<T, U extends Node> extends ListCell<T> {
|
|||||||
@Override
|
@Override
|
||||||
protected final void updateItem(T item, boolean empty) {
|
protected final void updateItem(T item, boolean empty) {
|
||||||
super.updateItem(item, empty);
|
super.updateItem(item, empty);
|
||||||
setGraphic(empty || item == null ? null : renderItem(item));
|
if (!(empty || item == null)) {
|
||||||
if (!empty) setCursor(Cursor.HAND);
|
setCursor(Cursor.HAND);
|
||||||
|
setGraphic(renderItem(item));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user