|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.appframe.settings.IlvSettingsNode
ilog.views.appframe.settings.IlvSettingsElement
public class IlvSettingsElement
Settings elements are associated with objects of settings models.
IlvSettings| Field Summary |
|---|
| Fields inherited from class ilog.views.appframe.settings.IlvSettingsNode |
|---|
ATTRIBUTE_NODE, ELEMENT_NODE, ROOT_ELEMENT_NODE |
| Constructor Summary | |
|---|---|
IlvSettingsElement(IlvSettings settings)
Creates a settings element for the specified settings. |
|
| Method Summary | |
|---|---|
void |
add(IlvSettingsElement newChild)
Makes newChild a new child of this settings element by adding
it to the child array of the element. |
static IlvSettingsElement[] |
AddElement(IlvSettingsElement[] elements,
IlvSettingsElement element,
int index)
Adds a settings element to the specified array of settings elements at the specified index. |
Node |
appendChild(Node newChild)
Adds the node newChild to the end of the list of children of
this node. |
Node |
cloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. |
short |
compareDocumentPosition(Node other)
|
IlvSettingsElement |
ensureChildElement(IlvSettingsQuery query)
Ensures a descendant of this element accessible with the specified relative query exists. |
IlvSettingsElement |
ensureChildElement(String type)
Ensures a child element of this element with the specified type exists. |
IlvSettingsElement |
ensureChildElement(String type,
String attributeName,
Object value)
Ensures a child element of this element exists with the specified type and with the value of the attribute
attributeName equal to value. |
boolean |
equals(Object obj)
Returns whether this element is equal to the specified object. |
String |
getAttribute(String name)
Retrieves an attribute value by name. |
String[] |
getAttributeNames()
Returns the name of the attributes of this settings element. |
Attr |
getAttributeNode(String name)
Retrieves an Attr node by name. |
Attr |
getAttributeNodeNS(String namespaceURI,
String localName)
Retrieves an Attr node by local name and namespace URI. |
IlvSettingsAttribute[] |
getAttributeNodes()
Returns the settings attributes of this settings element. |
String |
getAttributeNS(String namespaceURI,
String localName)
Retrieves an attribute value by local name and namespace URI. |
NamedNodeMap |
getAttributes()
A NamedNodeMap containing the attributes of this element. |
Object |
getAttributeValue(String attributeName)
Gets an attribute value. |
String |
getBaseURI()
|
boolean |
getBoolean(String attributeName)
Returns the value of the attribute with the specified name as a boolean. |
boolean |
getBoolean(String attributeName,
boolean defaultValue)
Returns the value of the attribute with the specified name as a boolean. |
Object |
getCascadedElement(IlvSettings settings)
Returns the element of the specified settings that has been cascaded in this settings element |
Object |
getCascadedElement(int level)
Returns the level cascaded element that this settings element
refers to. |
int |
getCascadedElementCount()
Returns the number of elements of settings models that this element refers to. |
IlvSettings |
getCascadedSettings(int level)
Returns the settings that own the level cascaded element
that this settings element refers to. |
IlvSettingsElement |
getChild(String type,
String attributeName,
Object attributeValue)
Returns the child element of this element with the specified type and attribute value. |
NodeList |
getChildNodes()
A NodeList that contains all children of this node. |
IlvSettingsElement[] |
getChildren()
Returns the child elements of this element. |
IlvSettingsElement[] |
getChildren(IlvSettingsQuery query)
Returns the descendent elements that are selected by the specified query, starting the selection from this settings element. |
IlvSettingsElement[] |
getChildren(String type)
Returns the child elements of this element with the specified type. |
Color |
getColor(String attributeName)
Returns the value of the attribute with the specified name as a color. |
Color |
getColor(String attributeName,
Color defaultValue)
Returns the value of the attribute with the specified name as a color. |
Color[] |
getColorArray(String type,
String attributeName)
Returns an array of colors. |
Date |
getDate(String attributeName)
Returns the value of the attribute with the specified name as a date. |
Date |
getDate(String attributeName,
Date defaultValue)
Returns the value of the attribute with the specified name as a double. |
Object |
getDefaultAttributeValue(String attributeName)
Returns an attribute value that does not take into account the value defined in the user settings. |
Element |
getDOMElement()
Returns the DOM element this settings element is associated with. |
double |
getDouble(String attributeName)
Returns the value of the attribute with the specified name as a double. |
double |
getDouble(String attributeName,
double defaultValue)
Returns the value of the attribute with the specified name as a double. |
IlvSettingsElement |
getElement(String type,
String attributeName,
Object value)
Returns the first child element of this element with the specified type and the attributeName attribute with the specified
value. |
NodeList |
getElementsByTagName(String name)
Returns a NodeList of all descendant elements with a given
tag name, in the order in which they would be encountered in a preorder
traversal of the Element tree. |
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName)
Returns a NodeList of all the descendant
Elements with a given local name and namespace URI in
the order in which they are encountered in a preorder traversal of
this Element tree. |
Object |
getFeature(String feature,
String version)
|
Node |
getFirstChild()
The first child of this node. |
IlvSettingsElement |
getFirstChild(String type)
Returns the first settings element that is child of this settings element and that has the specified type. |
float |
getFloat(String attributeName)
Returns the value of the attribute with the specified name as a float. |
float |
getFloat(String attributeName,
float defaultValue)
Returns the value of the attribute with the specified name as a float. |
Font |
getFont(String attributeName)
Returns the value of the attribute with the specified name as a font. |
Font |
getFont(String attributeName,
Font defaultValue)
Returns the value of the attribute with the specified name as a font. |
Object |
getID()
Returns the ID value of this settings element. |
int |
getInt(String attributeName)
Returns the value of the attribute with the specified name as an integer. |
int |
getInt(String attributeName,
int defaultValue)
Returns the value of the attribute with the specified name as an integer. |
Node |
getLastChild()
The last child of this node. |
String |
getLocalName()
Returns the local part of the qualified name of this node. |
String |
getNamespaceURI()
The namespace URI of this node, or null if it is
unspecified. |
Node |
getNextSibling()
The node immediately following this node. |
String |
getNodeName()
Returns the name of this node. |
short |
getNodeType()
Returns IlvSettingsNode.ELEMENT_NODE to specify this node is an element node. |
String |
getNodeValue()
The value of this node. |
Document |
getOwnerDocument()
The Document object associated with this node. |
String |
getPrefix()
The namespace prefix of this node, or null if it is
unspecified. |
Node |
getPreviousSibling()
The node immediately preceding this node. |
Rectangle |
getRectangle()
Returns a rectangle from this settings element. |
Rectangle |
getRectangle(Rectangle defaultRect)
Returns a rectangle from this settings element. |
TypeInfo |
getSchemaTypeInfo()
|
String |
getString(String attributeName)
Returns the value of the attribute with the specified name as a string. |
String |
getString(String attributeName,
String defaultValue)
Returns the value of the attribute with the specified name as a string. |
String[] |
getStringArray(String type,
String attributeName)
Returns an array of string attribute values. |
String |
getTagName()
The name of the element. |
String |
getText()
Returns the text value of this settings element. |
String |
getTextContent()
|
String |
getType()
Returns the type of this settings element. |
Object |
getUserData(String key)
|
boolean |
hasAttribute(String name)
Returns true when an attribute with a given name is
specified on this element or has a default value, false
otherwise. |
boolean |
hasAttributeNS(String namespaceURI,
String localName)
Returns true when an attribute with a given local name and
namespace URI is specified on this element or has a default value,
false otherwise. |
boolean |
hasAttributes()
Returns whether this element has any attributes. |
boolean |
hasChildNodes()
This is a convenience method to allow easy determination of whether a node has any children. |
void |
insert(IlvSettingsElement newChild,
int index)
Makes newChild a new child of this settings element by adding
it to the child array of the element at the specified insertion index. |
Node |
insertBefore(Node newChild,
Node refChild)
Inserts the node newChild before the existing child node
refChild. |
boolean |
isDefaultNamespace(String namespaceURI)
|
boolean |
isDOMElement()
Determines whether this settings element is associated with a unique Element, without any cascading applied on this element. |
boolean |
isEqualNode(Node arg)
|
boolean |
isSameNode(Node other)
|
boolean |
isSupported(String feature,
String version)
Tests whether the DOM implementation implements a specific feature and that feature is supported by this node. |
String |
lookupNamespaceURI(String prefix)
|
String |
lookupPrefix(String namespaceURI)
|
boolean |
matchType(String type)
Determines whether this element matches the specified type. |
void |
normalize()
Puts all Text nodes in the full depth of the sub-tree
underneath this Element into a "normal" form where only
markup (e.g., tags, comments, processing instructions, CDATA sections,
and entity references) separates Text nodes, i.e., there
are no adjacent Text nodes. |
boolean |
remove(IlvSettingsElement aChild)
Removes the specified child element from the child array of the element. |
void |
removeAll(String type)
Removes all the child elements of this element with the specified type. |
void |
removeAttribute(String name)
Removes an attribute by name. |
Attr |
removeAttributeNode(Attr oldAttr)
Removes the specified attribute. |
void |
removeAttributeNS(String namespaceURI,
String localName)
Removes an attribute by local name and namespace URI. |
boolean |
removeCascadedElement(Object element)
Removes the specified cascaded element from the list of cascaded elements stored within this settings element. |
Node |
removeChild(Node oldChild)
Removes the child node indicated by oldChild from the list
of children, and returns it. |
static IlvSettingsElement[] |
RemoveElement(IlvSettingsElement[] elements,
IlvSettingsElement element)
Removes the settings element from the specified array of settings elements. |
void |
removeFromParent()
Removes this settings element from its parent. |
Node |
replaceChild(Node newChild,
Node oldChild)
Replaces the child node oldChild with newChild
in the list of children, and returns the oldChild node. |
void |
resetModifications()
Resets the modifications brought to this element and its child elements. |
void |
setAttribute(String name,
String value)
Adds a new attribute. |
Attr |
setAttributeNode(Attr newAttr)
Adds a new attribute. |
Attr |
setAttributeNodeNS(Attr newAttr)
Adds a new attribute. |
void |
setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
Adds a new attribute. |
void |
setAttributeValue(String attributeName,
Object value)
Sets a new value to the attribute of this element with the specified name. |
void |
setBoolean(String attributeName,
boolean value)
Sets a boolean value to the attribute with the specified name. |
void |
setColor(String attributeName,
Color color)
Sets a color value to the attribute with the specified name. |
void |
setColorArray(String type,
String attributeName,
Color[] colors)
Sets an array of color values. |
void |
setDate(String attributeName,
Date date)
Sets a date value to the attribute with the specified name. |
void |
setDouble(String attributeName,
double value)
Sets a double value to the attribute with the specified name. |
void |
setFloat(String attributeName,
float value)
Sets a float value to the attribute with the specified name. |
void |
setFont(String attributeName,
Font font)
Sets a font value to the attribute with the specified name. |
boolean |
setID(Object id)
Sets an ID value to this settings element. |
void |
setIdAttribute(String name,
boolean isId)
|
void |
setIdAttributeNode(Attr idAttr,
boolean isId)
|
void |
setIdAttributeNS(String namespaceURI,
String localName,
boolean isId)
|
void |
setInt(String attributeName,
int value)
Sets an integer value to the attribute with the specified name. |
void |
setNodeValue(String nodeValue)
Changes the value of this node. |
void |
setPrefix(String prefix)
Sets the prefix of this element. |
void |
setRectangle(Rectangle rect)
Sets the x, y, width, and
height attribute values of this settings element
respectively to the value of the fields x, y,
width, and height of the specified rectangle. |
void |
setString(String attributeName,
String value)
Sets a string value to the attribute with the specified name. |
void |
setStringArray(String type,
String attributeName,
String[] strings)
Sets an array of string values. |
void |
setText(String value)
Sets a new text value. |
void |
setTextContent(String textContent)
|
Object |
setUserData(String key,
Object data,
UserDataHandler handler)
|
String |
toString()
Returns a string representation of the settings element. |
| Methods inherited from class ilog.views.appframe.settings.IlvSettingsNode |
|---|
getParent, getParentNode, getSettings |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
|---|
getParentNode |
| Constructor Detail |
|---|
public IlvSettingsElement(IlvSettings settings)
settings.
settings - The settings of this element.| Method Detail |
|---|
public String getBaseURI()
getBaseURI in interface NodegetBaseURI in class IlvSettingsNode
public short compareDocumentPosition(Node other)
throws DOMException
compareDocumentPosition in interface NodecompareDocumentPosition in class IlvSettingsNodeDOMException
public String getTextContent()
throws DOMException
getTextContent in interface NodegetTextContent in class IlvSettingsNodeDOMException
public void setTextContent(String textContent)
throws DOMException
setTextContent in interface NodesetTextContent in class IlvSettingsNodeDOMExceptionpublic boolean isSameNode(Node other)
isSameNode in interface NodeisSameNode in class IlvSettingsNodepublic String lookupPrefix(String namespaceURI)
lookupPrefix in interface NodelookupPrefix in class IlvSettingsNodepublic boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace in interface NodeisDefaultNamespace in class IlvSettingsNodepublic String lookupNamespaceURI(String prefix)
lookupNamespaceURI in interface NodelookupNamespaceURI in class IlvSettingsNodepublic boolean isEqualNode(Node arg)
isEqualNode in interface NodeisEqualNode in class IlvSettingsNode
public Object getFeature(String feature,
String version)
getFeature in interface NodegetFeature in class IlvSettingsNode
public Object setUserData(String key,
Object data,
UserDataHandler handler)
setUserData in interface NodesetUserData in class IlvSettingsNodepublic Object getUserData(String key)
getUserData in interface NodegetUserData in class IlvSettingsNodepublic TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo in interface Element
public void setIdAttribute(String name,
boolean isId)
throws DOMException
setIdAttribute in interface ElementDOMException
public void setIdAttributeNS(String namespaceURI,
String localName,
boolean isId)
throws DOMException
setIdAttributeNS in interface ElementDOMException
public void setIdAttributeNode(Attr idAttr,
boolean isId)
throws DOMException
setIdAttributeNode in interface ElementDOMExceptionpublic short getNodeType()
IlvSettingsNode.ELEMENT_NODE to specify this node is an element node.
getNodeType in interface NodegetNodeType in class IlvSettingsNodepublic int getInt(String attributeName)
attributeName - The name of the attribute to retrieve the value from.
Integer.MIN_VALUE will be returned.getInt(String, int),
setInt(java.lang.String, int)
public int getInt(String attributeName,
int defaultValue)
attributeName - The name of the attribute to retrieve the value from.defaultValue - The default value that is returned if the attribute
with the specified name is not found.
defaultValue will be returned.getInt(String),
setInt(java.lang.String, int)
public void setInt(String attributeName,
int value)
attributeName - The name of the attribute to set a value to.value - The new value of the attribute.getInt(String),
getInt(String, int)public String getString(String attributeName)
attributeName - The name of the attribute to retrieve the value from.
nul if no attribute is found with the
specified name.getString(String, String),
setString(java.lang.String, java.lang.String)
public String getString(String attributeName,
String defaultValue)
attributeName - The name of the attribute to retrieve the value from.defaultValue - The default value that is returned if the attribute
with the specified name is not found.
defaultValue will be returned.getString(String),
setString(java.lang.String, java.lang.String)
public void setString(String attributeName,
String value)
attributeName - The name of the attribute to set a value to.value - The new value of the attribute.getString(String),
getString(String, String)public String getText()
IlvXMLSettings.DEFAULT_TAG_TEXT_ATTRIBUTEpublic void setText(String value)
value - The new text value of the element.getText()public boolean getBoolean(String attributeName)
attributeName - The name of the attribute to retrieve the value from.
false if no attribute is found with the
specified name.getBoolean(String, boolean),
setBoolean(java.lang.String, boolean)
public boolean getBoolean(String attributeName,
boolean defaultValue)
attributeName - The name of the attribute to retrieve the value from.defaultValue - The default value that is returned if the attribute
with the specified name is not found.
defaultValue will be returned.getBoolean(String),
setBoolean(java.lang.String, boolean)
public void setBoolean(String attributeName,
boolean value)
attributeName - The name of the attribute to set a value to.value - The new value of the attribute.getBoolean(String),
getBoolean(String, boolean)public float getFloat(String attributeName)
attributeName - The name of the attribute to retrieve the value from.
Float.MIN_VALUE will be returned.getFloat(String, float),
setFloat(java.lang.String, float)
public float getFloat(String attributeName,
float defaultValue)
attributeName - The name of the attribute to retrieve the value from.defaultValue - The default value that is returned if the attribute
with the specified name is not found.
defaultValue will be returned.ge