/** * Re-enable a property. This field will appear again in object instances. * * @param name the name of the property to enable * @since 2.4M2 */ public void enableField(String name) { PropertyClass pclass = (PropertyClass) safeget(name); if (pclass != null) { pclass.setDisabled(false); } }
/** * Mark a property as disabled. A disabled property should not be editable, but existing object values are still * kept in the database. * * @param name the name of the property to disable * @since 2.4M2 */ public void disableField(String name) { PropertyClass pclass = (PropertyClass) safeget(name); if (pclass != null) { pclass.setDisabled(true); } }
public PropertyClass(String name, String prettyname, PropertyMetaClass xWikiClass) { super(); setName(name); setPrettyName(prettyname); setxWikiClass(xWikiClass); setUnmodifiable(false); setDisabled(false); }