public interface IlvMutableSettingsModel extends IlvSettingsModel
| Modifier and Type | Method and Description |
|---|---|
void |
addSettingsElement(Object parent,
Object object,
int index)
Adds the specified object to the model.
|
void |
commit()
Commits the current edited data contained by this model into their
original source.
|
Object |
createSettingsElement(String typeName)
Creates a new object of the model with the specified type name.
|
boolean |
removeSettingsElement(Object parent,
Object object)
Removes the specified settings element from the settings.
|
void |
setAttributeValue(Object object,
String attributeName,
Object value)
Sets an attribute value to the specified element.
|
getAttributes, getAttributeValue, getChildren, getParent, getTypevoid setAttributeValue(Object object, String attributeName, Object value)
object - The object to change a value of.attributeName - The name of the attribute to change.value - The new value of the attribute.void addSettingsElement(Object parent, Object object, int index)
parent - The object of this model that will be parent of the
specified object. If null, the element is added as a root
of the model.object - The object to add.index - The index at which the specified object must be inserted in
the parent's child array. If index
equals to -1, the object must be added at the last position.removeSettingsElement(java.lang.Object, java.lang.Object)boolean removeSettingsElement(Object parent, Object object)
parent - The parent element that owns the element to remove. If
null, the object to remove was previously added as a root
object of the model.object - The object to remove from the model.true if the specified object could be
removed; false otherwise.addSettingsElement(java.lang.Object, java.lang.Object, int)Object createSettingsElement(String typeName)
typeName - The name of the type of the object of the model to instantiate.void commit()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.