@Override public boolean isLastId(Object itemId) { if (ordered) { return ((Container.Ordered) container).isLastId(itemId); } return last != null && last.equals(itemId); }
/** * Sets the next value - if the current value is not the last available in the set. */ public void goForward() { Object currentItemId = combobox.getValue(); if (getContainerDataSource().isLastId(currentItemId)) { return; } setValue(getContainerDataSource().nextItemId(currentItemId)); }
/** * Tests if the Item corresponding to the given Item ID is the last Item in * the Container. * * @see Container.Ordered#isLastId(java.lang.Object) */ @Override public boolean isLastId(Object itemId) { return ((Container.Ordered) items).isLastId(itemId); }