/** * Sets the Property's read-only mode to the specified status. * * @param newStatus * the new read-only status of the Property. */ @Override public void setReadOnly(boolean newStatus) { if (dataSource != null) { dataSource.setReadOnly(newStatus); } }
/** * Sets the Property's read-only mode to the specified status. * * This functionality is optional, but all properties must implement the * <code>isReadOnly</code> mode query correctly. * * @param newStatus new read-only status of the Property * @return this (for method chaining) * @see #setReadOnly(boolean) */ public default S withReadOnly(boolean newStatus) { ((Property) this).setReadOnly(newStatus); return (S) this; }
@Override public void setReadOnly(boolean newStatus) { itemProperty.setReadOnly(newStatus); }
@Override public void setReadOnly(boolean newStatus) { boolean oldStatus = isReadOnly(); wrappedProperty.setReadOnly(newStatus); if (oldStatus != isReadOnly()) { fireReadOnlyStatusChange(); } }
newProperty.setReadOnly(true); adapter.addItemProperty(id_3, newProperty); jcrProperty.setReadOnly(true); Node res = adapter.applyChanges();