public class TaurusNotification
extends java.lang.Object
Observer and Observable classes
(e.g. AWM views). Observable classes should use this when calling the
Observable.notifyObservers(Object) method.
Not intended to be sub-classed by clients.
| Constructor and Description |
|---|
TaurusNotification(ETaurusNotification pType)
Basic constructor used for general notifications.
|
TaurusNotification(ETaurusNotification pType,
IElement pElement)
Constructor used for notifications which evolve an element.
|
TaurusNotification(ETaurusNotification pType,
IElementList pEleList)
Constructor used for notifications which evolve an element list.
|
TaurusNotification(ETaurusNotification pType,
IElementListEntry pEntry)
Constructor used for notifications which evolve an element list entry.
|
TaurusNotification(ETaurusNotification pType,
IElementList pEleList,
java.lang.String pTableViewID)
Constructor used for notifications which evolve an element list in a
secondary element views.
|
TaurusNotification(IElement pDeletedElement,
java.util.Collection<IElementListEntry> pDeletedElementListEntries)
Constructor for a
ETaurusNotification.ELEMENT_REMOVED
notification. |
| Modifier and Type | Method and Description |
|---|---|
IResource |
getChangedResource()
Gets the a resource that has been changed.
|
IResource[] |
getChangedResources()
Gets the resources that have been changed.
|
IElement |
getElement()
|
IElementList |
getElementList()
|
java.util.Collection<IElementListEntry> |
getElementListEntries()
Gets the element list entries which have been affected by the event.
|
IElementListEntry |
getElementListEntry()
Gets the the element list entry of the notification, which can be
null. |
ITaurusSystem |
getSystem()
Gets the
ITaurusSystem of this notification or null. |
java.lang.String |
getTableViewSecondaryId()
Gets the secondary view ID of this notification or
null if
there is none. |
ETaurusNotification |
getType()
Gets the notification type.
|
void |
setChangedResource(IResource... pChangedResource)
Sets the resource that has been changed.
|
void |
setElement(IElement pElement)
Sets the element for element based notification.
|
void |
setElementList(IElementList pEleList)
Sets the element list of this notification.
|
void |
setSystem(ITaurusSystem pSystem)
Sets the system for system based notifications.
|
void |
setTableViewSecondaryId(java.lang.String pTableViewSecondaryId)
Sets the secondary view ID of this notification.
|
java.lang.String |
toString() |
public TaurusNotification(ETaurusNotification pType)
pType - the notification typepublic TaurusNotification(IElement pDeletedElement, java.util.Collection<IElementListEntry> pDeletedElementListEntries)
ETaurusNotification.ELEMENT_REMOVED
notification.pDeletedElement - the element which has been deletedpDeletedElementListEntries - the collection of element list entries which belonged to the
elementpublic TaurusNotification(ETaurusNotification pType, IElementList pEleList)
pType - the notification typepEleList - the element listpublic TaurusNotification(ETaurusNotification pType, IElementList pEleList, java.lang.String pTableViewID)
pType - the notification typepEleList - the element listpTableViewID - the secondary view IDpublic TaurusNotification(ETaurusNotification pType, IElement pElement)
pType - notification typepElement - element that causes this notification to be issuedpublic TaurusNotification(ETaurusNotification pType, IElementListEntry pEntry)
ETaurusNotification.ELEMENT_INSERTEDETaurusNotification.ELEMENT_REMOVEDETaurusNotification.ELEMENT_UPDATEDpType - the notification typepEntry - the element list entrypublic java.lang.String getTableViewSecondaryId()
null if
there is none.nullpublic void setTableViewSecondaryId(java.lang.String pTableViewSecondaryId)
pTableViewSecondaryId - the secondary view IDpublic ETaurusNotification getType()
public IElementList getElementList()
nullpublic void setElementList(IElementList pEleList)
pEleList - the element list to set.public IElement getElement()
null.public IElementListEntry getElementListEntry()
null.null.public void setElement(IElement pElement)
TaurusNotification(ETaurusNotification, IElementListEntry) was
used.pElement - the element to setpublic void setSystem(ITaurusSystem pSystem)
pSystem - the system to setpublic ITaurusSystem getSystem()
ITaurusSystem of this notification or null.nullpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Collection<IElementListEntry> getElementListEntries()
getElementList().#TaurusNotification(IElement, List)public void setChangedResource(IResource... pChangedResource)
pChangedResource - the changed resourcegetChangedResource()public IResource getChangedResource()
null, if none has been set by
the notifiersetChangedResource(IResource...),
getChangedResources()public IResource[] getChangedResources()
null, if none has been set
by the notifiersetChangedResource(IResource...)Copyright © 2015 Micro Focus GmbH. All rights reserved.