| |
|
| java.lang.Object jsx3.xml.Node jsx3.xml.Record
Record | final public class Record extends Node (Code) | | The Record class somewhat mirrors a W3C Element, but simplified because we do
not need namespaces, and things like Attr and NodeList.
It is also vaguely similar to the
List interface in that it is a
container for attributes, however being also a container for other Records
the interface has some name changes and is greatly simplified.
author: Joe Walker [joe at getahead dot ltd dot uk] |
Record | public Record(String id)(Code) | | Ensure all Records have unique IDs
Parameters: id - the jsxid for this record |
getAttribute | public String getAttribute(String name)(Code) | | Retrieves an attribute value by name.
Parameters: name - The name of the attribute to retrieve. The attribute value as a string, or null if thenamed attribute does not exist |
getAttributeNames | public Iterator<String> getAttributeNames()(Code) | | Iterate over the names of the attributes (excluding the special JSX
attributes) contained in this
Record .
an attribute name Iterator |
getGroupName | public String getGroupName()(Code) | | the groupName |
getKeycodeString | public String getKeycodeString()(Code) | | the keycodeString |
getUnselectable | public Boolean getUnselectable()(Code) | | the unselectable |
removeAttribute | public String removeAttribute(String name)(Code) | | Removes an attribute by name.
If no attribute with this name is found, this method has no effect.
Parameters: name - The name of the attribute to remove. The old attribute value or null if it did not exist. |
setAttribute | public Record setAttribute(String name, String value)(Code) | | Adds a new attribute. If an attribute with that name is already present
in the element, its value is changed to be that of the value
parameter.
Parameters: name - The name of the attribute to create or alter. Parameters: value - Value to set in string form. |
setDisabled | public Record setDisabled(Boolean disabled)(Code) | | Parameters: disabled - the disabled to set |
setDivider | public Record setDivider(Boolean divider)(Code) | | Parameters: divider - the divider to set |
setExecute | public Record setExecute(String execute)(Code) | | Parameters: execute - the execute to set |
setGroupName | public Record setGroupName(String groupName)(Code) | | Parameters: groupName - the groupName to set |
setKeycodeString | public Record setKeycodeString(String keycodeString)(Code) | | Parameters: keycodeString - the keycodeString to set |
setNoMask | public Record setNoMask(String noMask)(Code) | | Parameters: noMask - the noMask to set |
setSelected | public Record setSelected(Boolean selected)(Code) | | Parameters: selected - the selected to set |
setUnselectable | public Record setUnselectable(Boolean unselectable)(Code) | | Parameters: unselectable - the unselectable to set |
toXml | protected String toXml(int depth)(Code) | | Parameters: depth - The string version of this record |
|
|
|