/** * Enables or disables possibility to add new options by the user. * * @param allowNewOptions * the New value of property allowNewOptions. */ public void setNewItemsAllowed(boolean allowNewOptions) { // Only handle change requests if (this.allowNewOptions != allowNewOptions) { this.allowNewOptions = allowNewOptions; markAsDirty(); } }
@Override public void markAsDirty() { super.markAsDirty(); partialUpdate = false; }
@Override public void itemPropertySetChange(Item.PropertySetChangeEvent event) { markAsDirty(); }
/** * Requests that the Table should be repainted as soon as possible. * * Note that a {@code Table} does not necessarily repaint its contents when * this method has been called. See {@link #refreshRowCache()} for forcing * an update of the contents. */ @Override public void markAsDirty() { // Overridden only for javadoc super.markAsDirty(); }
private void requestPartialRepaint() { super.markAsDirty(); partialUpdate = true; }
@Override public void valueChange(Property.ValueChangeEvent event) { markAsDirty(); }
/** * Sets the item caption mode. * * See {@link ItemCaptionMode} for a description of the modes. * <p> * {@link ItemCaptionMode#EXPLICIT_DEFAULTS_ID} is the default mode. * </p> * * @param mode * the One of the modes listed above. */ public void setItemCaptionMode(ItemCaptionMode mode) { if (mode != null) { itemCaptionMode = mode; markAsDirty(); } }
/** * Allow or disallow empty selection by the user. If the select is in * single-select mode, you can make an item represent the empty selection by * calling <code>setNullSelectionItemId()</code>. This way you can for * instance set an icon and caption for the null selection item. * * @param nullSelectionAllowed * whether or not to allow empty selection * @see #setNullSelectionItemId(Object) * @see #isNullSelectionAllowed() */ public void setNullSelectionAllowed(boolean nullSelectionAllowed) { if (nullSelectionAllowed != this.nullSelectionAllowed) { this.nullSelectionAllowed = nullSelectionAllowed; markAsDirty(); } }
/** * Override the caption of an item. Setting caption explicitly overrides id, * item and index captions. * * @param itemId * the id of the item to be recaptioned. * @param caption * the New caption. */ public void setItemCaption(Object itemId, String caption) { if (itemId != null) { itemCaptions.put(itemId, caption); markAsDirty(); } }
/** * Sets the icon for an item. * * @param itemId * the id of the item to be assigned an icon. * @param icon * the icon to use or null. */ public void setItemIcon(Object itemId, Resource icon) { if (itemId != null) { if (icon == null) { itemIcons.remove(itemId); } else { itemIcons.put(itemId, icon); } markAsDirty(); } }
/** * Fires the item set change event. */ protected void fireItemSetChange() { if (itemSetEventListeners != null && !itemSetEventListeners.isEmpty()) { final Container.ItemSetChangeEvent event = new ItemSetChangeEvent( this); for (Object l : itemSetEventListeners.toArray()) { ((Container.ItemSetChangeListener) l) .containerItemSetChange(event); } } markAsDirty(); }
/** * Fires the property set change event. */ protected void firePropertySetChange() { if (propertySetEventListeners != null && !propertySetEventListeners.isEmpty()) { final Container.PropertySetChangeEvent event = new PropertySetChangeEvent( this); for (Object l : propertySetEventListeners.toArray()) { ((Container.PropertySetChangeListener) l) .containerPropertySetChange(event); } } markAsDirty(); }
"Property type must be assignable to Resource"); markAsDirty();
itemCaptionPropertyId = propertyId; setItemCaptionMode(ITEM_CAPTION_MODE_PROPERTY); markAsDirty(); } else { itemCaptionPropertyId = null; setItemCaptionMode(ITEM_CAPTION_MODE_EXPLICIT_DEFAULTS_ID); markAsDirty();
&& (id == null || id == getNullSelectionItemId())) { markAsDirty(); } else if (id != null && containsId(id)) { acceptedSelections.add(id); markAsDirty(); return; || clientSideSelectedKeys[0] == null || clientSideSelectedKeys[0] == getNullSelectionItemId())) { markAsDirty(); return; markAsDirty(); } else if (id != null && id.equals(getNullSelectionItemId())) {