(T item, boolean empty)
| 4 | |
| 5 | abstract class StyledListCell<T> extends ListCell<T> { |
| 6 | @Override |
| 7 | protected void updateItem(T item, boolean empty) { |
| 8 | super.updateItem(item, empty); |
| 9 | |
| 10 | if (empty || item == null) { |
| 11 | setText(null); |
| 12 | setStyle(""); |
| 13 | } else { |
| 14 | setText(getText(item)); |
| 15 | setCustomStyle(this, item); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | protected abstract String getText(T item); |
| 20 |
nothing calls this directly
no test coverage detected