|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.jaxfront.core.dom.DOMChangeEvent
public class DOMChangeEvent
Event class used to inform listeners about state changes in the JAXFront DOM.
Field Summary | |
---|---|
static long |
DOM_ABOUT_TO_PERSIST
|
static long |
DOM_ADD_NODE
|
static long |
DOM_CANCELLED
|
static long |
DOM_CHANGE_NODE
|
static long |
DOM_COPY_CONTENT
|
static long |
DOM_DELETED
|
static long |
DOM_FINGERPRINT_CHANGED
|
static long |
DOM_FINISHED_BINDING
|
static long |
DOM_INITIALIZED
|
static long |
DOM_IS_ABOUT_TO_SAVE
|
static long |
DOM_IS_ABOUT_TO_VALIDATE
|
static long |
DOM_LIST_ITEM_DESELECT
|
static long |
DOM_LIST_ITEM_SELECT
|
static long |
DOM_MOVE_NODE
|
static long |
DOM_PASTE_CONTENT
|
static long |
DOM_PERSISTENT
|
static long |
DOM_REMOVE_NODE
|
static long |
DOM_SAVED
|
static long |
DOM_SORTED
|
static long |
DOM_SWAP_NODE
|
static long |
DOM_TREE_CHANGED
|
static long |
DOM_VISUALIZER_INITIALIZED
|
static long |
DOM_VISUALIZER_ONCREATE
|
static long |
NONE
|
static java.lang.String |
NULL_EVENT
|
Method Summary | |
---|---|
static DOMChangeEvent |
DOM_ADD_NODE(Type newType)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_ADD_NODE(Type newType,
int index)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_CANCELLED(java.lang.Object source)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_CHANGE_NODE(Type type)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_COPY_CONTENT(java.lang.Object source)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_DELETED(Document source)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_FINGERPRINT_CHANGED(Document source,
java.lang.String name,
java.lang.String oldValue,
java.lang.String newValue)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_FINISHED_BINDING(Type type)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_INITIALIZED(Document dom)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_IS_ABOUT_TO_PERSIST(Type source)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_IS_ABOUT_TO_SAVE(java.lang.Object source)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_IS_ABOUT_TO_VALIDATE(java.lang.Object source)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_ITEM_DESELECTED(Type deselectedType)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_ITEM_SELECTED(Type selectedType)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_PASTE_CONTENT(java.lang.Object source)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_PERSISTENT(Document source)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_PERSISTENT(Type source)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_REMOVE_NODE(Type type)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_REMOVE_NODE(Type type,
int index)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_SAVED(Document source)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_SAVED(Type source)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_SORTED(ListType listType,
int[] indexes)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_SWAP_NODE(java.lang.Object source,
int movedFrom,
int movedTo)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_TREE_CHANGED(java.lang.Object source)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_VISUALIZER_INITIALIZED(java.lang.Object source)
Factory method for creating a DOMChangeEvent |
static DOMChangeEvent |
DOM_VISUALIZER_ONCREATE(java.lang.Object source)
Factory method for creating a DOMChangeEvent |
java.lang.String |
getChangeName()
|
int |
getIndex()
Returns the position of a removed/add type if type is belonging to a list else return 0. |
int[] |
getIndexes()
Returns the indexes after a sort. |
int |
getMovedFromIndex()
Returns the source index (old index) of a movement. |
int |
getMovedToIndex()
Returns the target index (new index) of a movement. |
java.lang.String |
getNewValue()
|
java.lang.String |
getOldValue()
|
long |
getType()
Return final static type of event. |
boolean |
isAboutToPersist()
|
boolean |
isAboutToSave()
Returns true if this event is an DOM_IS_ABOUT_TO_SAVE event. |
boolean |
isAboutToValidate()
Returns true if this event is an DOM_IS_ABOUT_TO_VALIDATE event. |
boolean |
isAddingNode()
Returns true if this event is an DOM_ADD_NODE event. |
boolean |
isCancelled()
Returns true if this event is an DOM_CANCELLED event. |
boolean |
isChangingNode()
Returns true if this event is an DOM_CHANGE_NODE event. |
boolean |
isCopyContent()
Returns true if this event is an DOM_INITIALIZED event. |
boolean |
isDeleted()
|
boolean |
isFingerprintChanged()
Returns true if this event is an DOM_FINISHED_BINDING event. |
boolean |
isFinishedBinding()
Returns true if this event is an DOM_FINISHED_BINDING event. |
boolean |
isInitialized()
Returns true if this event is an DOM_INITIALIZED event. |
boolean |
isListItemDeselected()
Returns true if this event is an DOM_VISUALIZEDevent. |
boolean |
isListItemSelected()
Returns true if this event is an DOM_VISUALIZEDevent. |
boolean |
isMovingNode()
Returns true if this event is an DOM_MOVE_NODE event. |
boolean |
isNullEvent()
Returns true if this event is an DOM_SAVED event. |
boolean |
isOnCreate()
Returns true if this event is an DOM_INITIALIZED event. |
boolean |
isPasteContent()
Returns true if this event is an DOM_INITIALIZED event. |
boolean |
isPersistent()
|
boolean |
isRemovingNode()
Returns true if this event is an DOM_REMOVE_NODE event. |
boolean |
isSaved()
Returns true if this event is an DOM_SAVED event. |
boolean |
isSorted()
Returns true if this event is an DOM_SORTED event. |
boolean |
isSwappingNode()
Returns true if this event is an DOM_SWAP_NODE event. |
boolean |
isTemporary()
Returns true if this event is just temporarly fired. |
boolean |
isTreeChange()
Returns true if this event is an DOM_TREE_CHANGE event. |
static DOMChangeEvent |
NULL_EVENT()
|
void |
setIsTemporary(boolean temporary)
Makes this event temporary or not. |
java.lang.String |
toString()
|
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NULL_EVENT
public static final long NONE
public static final long DOM_SAVED
public static final long DOM_REMOVE_NODE
public static final long DOM_IS_ABOUT_TO_SAVE
public static final long DOM_IS_ABOUT_TO_VALIDATE
public static final long DOM_VISUALIZER_INITIALIZED
public static final long DOM_SORTED
public static final long DOM_CANCELLED
public static final long DOM_TREE_CHANGED
public static final long DOM_CHANGE_NODE
public static final long DOM_MOVE_NODE
public static final long DOM_SWAP_NODE
public static final long DOM_FINISHED_BINDING
public static final long DOM_ADD_NODE
public static final long DOM_PERSISTENT
public static final long DOM_ABOUT_TO_PERSIST
public static final long DOM_INITIALIZED
public static final long DOM_LIST_ITEM_SELECT
public static final long DOM_LIST_ITEM_DESELECT
public static final long DOM_VISUALIZER_ONCREATE
public static final long DOM_COPY_CONTENT
public static final long DOM_PASTE_CONTENT
public static final long DOM_DELETED
public static final long DOM_FINGERPRINT_CHANGED
Method Detail |
---|
public static DOMChangeEvent DOM_ADD_NODE(Type newType)
newType
- new type added to the DOMpublic static DOMChangeEvent DOM_SORTED(ListType listType, int[] indexes)
listType
- ListType which was sortedindexes
- indexes after the sortpublic static DOMChangeEvent NULL_EVENT()
public static DOMChangeEvent DOM_ADD_NODE(Type newType, int index)
newType
- new type added to the DOMindex
- indicates if listeners needs to check (-1) or not (0) if the added type is represented in the treepublic static DOMChangeEvent DOM_CANCELLED(java.lang.Object source)
source
- source of cancellationpublic static DOMChangeEvent DOM_COPY_CONTENT(java.lang.Object source)
source
- source of copy contentpublic static DOMChangeEvent DOM_PASTE_CONTENT(java.lang.Object source)
source
- source of paste contentpublic static DOMChangeEvent DOM_CHANGE_NODE(Type type)
type
- type which has changedpublic static DOMChangeEvent DOM_INITIALIZED(Document dom)
type
- type which has changedpublic static DOMChangeEvent DOM_ITEM_SELECTED(Type selectedType)
type
- type which has changedpublic static DOMChangeEvent DOM_ITEM_DESELECTED(Type deselectedType)
type
- type which has changedpublic static DOMChangeEvent DOM_FINISHED_BINDING(Type type)
public static DOMChangeEvent DOM_VISUALIZER_INITIALIZED(java.lang.Object source)
source
- source which has been initializedpublic static DOMChangeEvent DOM_VISUALIZER_ONCREATE(java.lang.Object source)
source
- source which has been initializedpublic static DOMChangeEvent DOM_TREE_CHANGED(java.lang.Object source)
source
- source which has been added/remove to/from treepublic static DOMChangeEvent DOM_IS_ABOUT_TO_SAVE(java.lang.Object source)
source
- source which is about to savepublic static DOMChangeEvent DOM_IS_ABOUT_TO_VALIDATE(java.lang.Object source)
source
- source which is about to validatepublic static DOMChangeEvent DOM_REMOVE_NODE(Type type)
type
- type which has been removedpublic static DOMChangeEvent DOM_REMOVE_NODE(Type type, int index)
type
- type which has been removedindex
- index of removed type (in a list)public static DOMChangeEvent DOM_SAVED(Type source)
source
- source of saved typepublic static DOMChangeEvent DOM_SAVED(Document source)
source
- source of saved typepublic static DOMChangeEvent DOM_PERSISTENT(Type source)
source
- source of persistend typepublic static DOMChangeEvent DOM_IS_ABOUT_TO_PERSIST(Type source)
source
- source of persistend typepublic static DOMChangeEvent DOM_PERSISTENT(Document source)
source
- source of persistend typepublic static DOMChangeEvent DOM_DELETED(Document source)
source
- source of persistend typepublic static DOMChangeEvent DOM_FINGERPRINT_CHANGED(Document source, java.lang.String name, java.lang.String oldValue, java.lang.String newValue)
source
- source of persistend typepublic static DOMChangeEvent DOM_SWAP_NODE(java.lang.Object source, int movedFrom, int movedTo)
sourceNode
- source nodetargetNode
- target nodepublic int getIndex()
public int[] getIndexes()
public long getType()
public boolean isAboutToSave()
public boolean isFinishedBinding()
public boolean isFingerprintChanged()
public boolean isAboutToValidate()
public boolean isAddingNode()
public boolean isCancelled()
public boolean isPersistent()
public boolean isDeleted()
public boolean isAboutToPersist()
public boolean isChangingNode()
public boolean isInitialized()
public boolean isOnCreate()
public boolean isCopyContent()
public boolean isPasteContent()
public boolean isMovingNode()
public boolean isSorted()
public boolean isListItemSelected()
public boolean isListItemDeselected()
public boolean isTreeChange()
public boolean isRemovingNode()
public boolean isSaved()
public boolean isNullEvent()
public boolean isSwappingNode()
public boolean isTemporary()
public void setIsTemporary(boolean temporary)
temporary
- indicates if this event is temporary or notpublic int getMovedFromIndex()
public int getMovedToIndex()
public java.lang.String getOldValue()
public java.lang.String getChangeName()
public java.lang.String getNewValue()
public java.lang.String toString()
toString
in class java.util.EventObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |