请帮助ListView着色。 我有一个更新列表的内部类:
private class ModelListenerList implements Observer {
@Override
public void update(Observable o, Object arg) {
System.out.println("Show list!");
if (arg instanceof CouponList) {
couponList = (CouponList) arg;
for (Coupon c : couponList.getList())
System.out.println(c.onHands);
ObservableList ol = FXCollections.observableArrayList(couponList.list);
listView.setItems(ol);
}
else if (arg instanceof String)
{
String e = "";
System.out.println("TEXT");
}
}
}
如何为具有必要值的单元格设置颜色?列出内容对象。值它是对象字段