MCPcopy Create free account
hub / github.com/FabricMC/Matcher / updateItem

Method updateItem

src/main/java/matcher/gui/StyledListCell.java:6–17  ·  view source on GitHub ↗
(T item, boolean empty)

Source from the content-addressed store, hash-verified

4
5abstract 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

Callers

nothing calls this directly

Calls 2

getTextMethod · 0.95
setCustomStyleMethod · 0.95

Tested by

no test coverage detected