void () { if (!myPanel.isRebuildUiNeeded()) return; myPanel.clearItems(); for (int index = 0; index < myPanel.getModel().size(); index++) { final Object object = myPanel.getModel().get(index); final NavBarItem label = new NavBarItem(myPanel, object, index, null); myPanel.installActions(index, label); myPanel.addItem(label); } rebuildComponent(); if (myRunWhenListRebuilt != null) { Runnable r = myRunWhenListRebuilt; myRunWhenListRebuilt = null; r.run(); } }