Search in sources :

Example 1 with EndNotify

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;
        }
    });
}
Also used : Element(de.lessvoid.nifty.elements.Element) EndNotify(de.lessvoid.nifty.EndNotify)

Aggregations

EndNotify (de.lessvoid.nifty.EndNotify)1 Element (de.lessvoid.nifty.elements.Element)1