|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject java.awt.AWTEvent issrg.utils.gui.xml.XMLChangeEvent
public class XMLChangeEvent
An event which indicates that a change has occured in the Document (DOM).
This is a low-level event that is generated when a user creates a new policy,
or modifies an open policy.
The event is passed to every XMLChangeListener
object
that is registered to receive such events using the component's
addXMLChangeListener
method.
The object that implements the XMLChangeListener
interface
gets this XMLChangeEvent
when the event occurs.
XMLChangeListener
,
Serialized FormField Summary |
---|
Fields inherited from class java.awt.AWTEvent |
---|
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
XMLChangeEvent(XMLEditor xmled,
org.w3c.dom.Element parentNode,
org.w3c.dom.Element oldChildNode,
org.w3c.dom.Element newChildNode,
java.lang.String action)
Constructs an XMLChangeEvent object. |
|
XMLChangeEvent(XMLEditor xmled,
org.w3c.dom.Element childNode,
org.w3c.dom.Element parentNode,
java.lang.String action)
Constructs an XMLChangeEvent object. |
|
XMLChangeEvent(XMLEditor xmled,
org.w3c.dom.Element childNode,
org.w3c.dom.Element parentNode,
java.lang.String action,
int childIndex)
Constructs an XMLChangeEvent object. |
|
XMLChangeEvent(XMLEditor xmled,
org.w3c.dom.Element childNode,
java.lang.String action)
Constructs an XMLChangeEvent object, which is normally used
to delete an Element from a Document. |
|
XMLChangeEvent(XMLEditor xmled,
org.w3c.dom.Element parentNode,
java.lang.String[] attribNames,
java.lang.String[] attribValues,
java.lang.String[] oldAttribValues,
java.lang.String action)
Constructs an XMLChangeEvent object, which is normally used
to modify some attributes of a particular element. |
|
XMLChangeEvent(XMLEditor xmled,
java.lang.String action)
Constructs an XMLChangeEvent object, which is normally used
only to notify that an XML modification was made, and what type. |
Method Summary | |
---|---|
java.lang.String |
getAction()
Returns the type of event. |
java.lang.String[] |
getAttributeNames()
Returns a sequential list of attribute names and Element has. |
java.lang.String[] |
getAttributeValues()
Returns a sequential list of attributes values of a particular element. |
int |
getChildIndex()
Returns an integer value, of the hierarchical level of the child with respect to the parent element |
org.w3c.dom.Element |
getChildNode()
Returns the child Element that this event is occuring on. |
static int |
getIndexOfChild(org.w3c.dom.Node parent,
org.w3c.dom.Node child)
Static method that is used to determine the hierarchical level of the child Node with respect to the parent's Node |
org.w3c.dom.Element |
getNewChildNode()
|
java.lang.String[] |
getOldAttribValues()
Returns a sequential list of attributes values of a particular element that have been modified. |
org.w3c.dom.Element |
getParentNode()
Returns the parent Element that this event is occurring on. |
java.util.Set<XMLChangeEvent> |
getSubEventList()
|
XMLEditor |
getXMLEditor()
Returns the timestamp of when this event occurred. |
void |
setSubEventList(java.util.Set<XMLChangeEvent> subEventList)
|
Methods inherited from class java.awt.AWTEvent |
---|
consume, getID, isConsumed, paramString, setSource, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XMLChangeEvent(XMLEditor xmled, org.w3c.dom.Element childNode, org.w3c.dom.Element parentNode, java.lang.String action)
XMLChangeEvent
object.
xmled
- the xml Editor reference from which event has occuredchildNode
- the child Element that the event is occuring onparentNode
- the parent Element that the action is occuring onaction
- string identifying the event typepublic XMLChangeEvent(XMLEditor xmled, org.w3c.dom.Element parentNode, org.w3c.dom.Element oldChildNode, org.w3c.dom.Element newChildNode, java.lang.String action)
XMLChangeEvent
object.
xmled
- the xml Editor reference from which event has occuredchildNode
- the child Element that the event is occuring onparentNode
- the parent Element that the action is occuring onaction
- string identifying the event typepublic XMLChangeEvent(XMLEditor xmled, org.w3c.dom.Element childNode, org.w3c.dom.Element parentNode, java.lang.String action, int childIndex)
XMLChangeEvent
object.
xmled
- the xml Editor reference from which event has occuredchildNode
- the child Element that the event is occuring onparentNode
- the parent Element that the action is occuring onaction
- string identifying the event typechildIndex
- hierarchical level of the child with respect to the parentpublic XMLChangeEvent(XMLEditor xmled, org.w3c.dom.Element childNode, java.lang.String action)
XMLChangeEvent
object, which is normally used
to delete an Element from a Document.
xmled
- the xml Editor reference from which event has occuredchildNode
- the Element that the event is occuring onaction
- string identifying the event typepublic XMLChangeEvent(XMLEditor xmled, org.w3c.dom.Element parentNode, java.lang.String[] attribNames, java.lang.String[] attribValues, java.lang.String[] oldAttribValues, java.lang.String action)
XMLChangeEvent
object, which is normally used
to modify some attributes of a particular element.
xmled
- the xml Editor reference from which event has occuredparentNode
- the Element that the action is occuring onattribNames
- a sequential array of Names of the Attributes that need to be modifiedattribValues
- a sequential array of Values that will be placed when modifiedoldAttribValues
- a sequential array of old Attribute Valuesaction
- string identifying the event typepublic XMLChangeEvent(XMLEditor xmled, java.lang.String action)
XMLChangeEvent
object, which is normally used
only to notify that an XML modification was made, and what type.
xmled
- the xml Editor reference from which event has occuredaction
- string identifying the event typeMethod Detail |
---|
public static int getIndexOfChild(org.w3c.dom.Node parent, org.w3c.dom.Node child)
parent
- parent nodechild
- child node
public org.w3c.dom.Element getChildNode()
public org.w3c.dom.Element getParentNode()
public XMLEditor getXMLEditor()
public java.lang.String getAction()
Further types can be specified later, although they must modify the
XMLEditor
's way of processing the event.
public java.lang.String[] getAttributeValues()
public java.lang.String[] getAttributeNames()
public java.lang.String[] getOldAttribValues()
public int getChildIndex()
public org.w3c.dom.Element getNewChildNode()
public java.util.Set<XMLChangeEvent> getSubEventList()
public void setSubEventList(java.util.Set<XMLChangeEvent> subEventList)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |