use of de.lessvoid.nifty.EndNotify in project TeachingInSimulation by ScOrPiOzzy.
the class ConnectionController method removeXianLanItem.
private void removeXianLanItem(int index) {
final Element parent = findById("xianlanColorsContent");
Element item = parent.getElements().get(index);
item.markForRemoval(new EndNotify() {
@Override
public void perform() {
refreshxianlanColorsContent();
currentCableIndex = currentCableIndex == parent.getElements().size() ? 0 : currentCableIndex;
}
});
}