@Override public Object prevItemId(Object itemId) { if (ordered) { return ((Container.Ordered) container).prevItemId(itemId); } if (itemId == null) { return null; } return prev.get(itemId); }
/** * Sets the previous value - if the current value is not the first available in the set. */ public void goBack() { Object currentItemId = combobox.getValue(); if (getContainerDataSource().isFirstId(currentItemId)) { return; } setValue(getContainerDataSource().prevItemId(currentItemId)); }
/** * Gets the ID of the Item preceding the Item that corresponds to the * itemId. * * @see Container.Ordered#prevItemId(java.lang.Object) */ @Override public Object prevItemId(Object itemId) { return ((Container.Ordered) items).prevItemId(itemId); }