/** * Construct the model, setting the given object as the wrapped object. * * @param object * The model object proper */ public Model(final T object) { setObject(object); }
/** * Construct the model, setting the given object as the wrapped object. * * @param object * The model object proper */ public Model(final T object) { setObject(object); }
/** * Construct the model, setting the given object as the wrapped object. * * @param object * The model object proper */ public Model(final T object) { setObject(object); }
public Object component(Component component) { insideModal.setObject(true); return IVisitor.STOP_TRAVERSAL; } });
@Override public void setObject(T object) { super.setObject(object); needToReload = false; }
/** * Construct the model, setting the given object as the wrapped object. * * @param object * The model object proper */ public Model(final Serializable object) { setObject(object); }
@Override protected void beforeShowDialog(final Map<String, String> parameters) { dialogModel.setObject(parameters.get("uuid")); } };
/** * sets the position of the pagination component * * @param position The position * @return this instance for chaining */ public BootstrapPagingNavigator setPosition(Position position) { positionModel.setObject(position.cssClassName()); return this; } }
@Override protected void onUpdate(final AjaxRequestTarget target) { BigDecimal availableVacationDays = getAvailableVacationDays(data); availableVacationDaysModel.setObject(availableVacationDays.toString()); target.add(availableVacationDaysLabel); } });
public RealmTO moveToParentRealm(final String key) { for (Pair<RealmTO, List<RealmTO>> subtree : tree.values()) { for (RealmTO child : subtree.getRight()) { if (child.getKey() != null && child.getKey().equals(key)) { model.setObject(subtree.getLeft()); return subtree.getLeft(); } } } return null; }
@Override protected List<Pair<String, RealmTO>> load() { Map<String, Pair<RealmTO, List<RealmTO>>> map = reloadRealmParentMap(); model.setObject(map.get(null).getKey()); final List<Pair<String, RealmTO>> full = new ArrayList<>(); getChildren(full, null, map, StringUtils.EMPTY); return full; } };
@Override public void setObject(DocumentLinkInfo documentLinkInfo) { super.setObject(documentLinkInfo); if (enabledEvents) { fireLinkPickerFactoryEvent("picked", documentLinkInfo.getPath(), documentLinkInfo.getDocumentName()); } } }
@Override protected void onUpdate(AjaxRequestTarget target) { onCloseCancel(target); // reset selected topic type, choice group and tree model selectedTypeModel.setObject(null); treePanel.setDefaultModel(getTreeModel(null)); radioGroupModel.setObject(null); checkGroupModel.clear(); } });
private void updateChoicesOfDateDropDown(final boolean selectRowForCurrentDate) { final List<T> attrRowsSorted = getTimeableAttrRowsOfThisGroupSorted(); if (selectRowForCurrentDate) { final T attrRowForCurrentDate = getAttrRowForCurrentDate(attrRowsSorted); selectedAttrRowModel.setObject(attrRowForCurrentDate); } dateDropDown.setChoices(attrRowsSorted); }
@Override protected void onUpdate(AjaxRequestTarget target) { onCloseCancel(target); // reset selected topic type, choice group and tree model selectedTypeModel.setObject(null); treePanel.setDefaultModel(getTreeModel(null)); radioGroupModel.setObject(null); checkGroupModel.clear(); } });
@Override public void setObject(Date object) { Calendar calendar = new GregorianCalendar(); calendar.setTime(object); try { valueModel.setValue(valueModel.getJcrPropertymodel().getProperty().getSession().getValueFactory() .createValue(calendar)); } catch (RepositoryException ex) { log.error(ex.getMessage(), ex); } super.setObject(object); }
@Override public void setObject(Date object) { Calendar calendar = new GregorianCalendar(); calendar.setTime(object); try { valueModel.setValue(valueModel.getJcrPropertymodel().getProperty().getSession().getValueFactory() .createValue(calendar)); } catch (RepositoryException ex) { log.error(ex.getMessage(), ex); } super.setObject(object); }
@Override public void setObject(T object) { boolean wasObserving = observing; if (observing) { stopObservation(); } super.setObject(object); if (wasObserving) { startObservation(); } notifyObservers(new EventCollection()); }
@Override public void setObject(T object) { boolean wasObserving = observing; if (observing) { stopObservation(); } super.setObject(object); if (wasObserving) { startObservation(); } notifyObservers(new EventCollection()); }