|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.ibm.etools.systems.model.impl.SystemResourceChangeEvent
Event object sent to SystemResourceChangeListeners when a remote system object is created, changed, removed, etc.
ISystemResourceChangeEvents
,
Serialized FormField Summary | |
---|---|
static String |
copyright
|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
SystemResourceChangeEvent(Object[] source,
int type,
Object parent)
Constructor for SystemResourceChangeEvent when the source is multipe resources. |
|
SystemResourceChangeEvent(Object source,
int type,
Object parent)
Constructor for SystemResourceChangeEvent. |
Method Summary | |
---|---|
Object |
getGrandParent()
Return the grand parent of the object added or removed. |
Object[] |
getMultiSource()
For multi-target events, return the array of source targets. |
Viewer |
getOriginatingViewer()
Get the originating viewer. |
Object |
getParent()
Return the parent of the object added or removed. |
int |
getPosition()
Return the position value. |
Object |
getRelativePrevious()
For relative add events, return the previous node this is being added after |
int |
getType()
Return the type of the event (add, change, remove, rename, change, property change). |
Item |
getViewerItem()
Get the viewer Item of the currently selected object. |
void |
setGrandParent(Object grandparent)
Set the grand parent of the object added or removed. |
void |
setOriginatingViewer(Viewer viewer)
Set the originating viewer. |
void |
setParent(Object parent)
Set the parent |
void |
setPosition(int position)
Set the position value. |
void |
setRelativePrevious(Object previousObject)
For relative add events, set the previous node this is being added after |
void |
setType(int type)
Set the type |
void |
setViewerItem(Item item)
Set the viewer Item of the currently selected object. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.etools.systems.model.ISystemResourceChangeEvent |
---|
getSource |
Field Detail |
public static final String copyright
Constructor Detail |
public SystemResourceChangeEvent(Object source, int type, Object parent)
source
- The object that was added,deleted,renamed,changed.type
- The type of event, one of ISystemChangeEvent constants.parent
- The parent of the object that was added or deleted.ISystemResourceChangeEvents
public SystemResourceChangeEvent(Object[] source, int type, Object parent)
source
- The array of objects that were added,deleted,renamed,changed.type
- The type of event, one of ISystemChangeEvent constants.parent
- The parent of the object that was added or deleted.ISystemResourceChangeEvents
Method Detail |
public Object[] getMultiSource()
getMultiSource
in interface ISystemResourceChangeEvent
public Object getParent()
getParent
in interface ISystemResourceChangeEvent
ISystemResourceChangeEvent.getParent()
public void setParent(Object parent)
setParent
in interface ISystemResourceChangeEvent
public Object getGrandParent()
getGrandParent
in interface ISystemResourceChangeEvent
ISystemResourceChangeEvent.getParent()
public void setGrandParent(Object grandparent)
public int getPosition()
getPosition
in interface ISystemResourceChangeEvent
public void setPosition(int position)
setPosition
in interface ISystemResourceChangeEvent
position
- zero-based position to insert the new item. A negative number indicates an append operationpublic void setViewerItem(Item item)
setViewerItem
in interface ISystemResourceChangeEvent
public int getType()
getType
in interface ISystemResourceChangeEvent
ISystemResourceChangeEvents
,
ISystemResourceChangeEvent
,
ISystemResourceChangeEvent.getType()
public void setType(int type)
setType
in interface ISystemResourceChangeEvent
ISystemResourceChangeEvents
public Object getRelativePrevious()
getRelativePrevious
in interface ISystemResourceChangeEvent
public void setRelativePrevious(Object previousObject)
setRelativePrevious
in interface ISystemResourceChangeEvent
public void setOriginatingViewer(Viewer viewer)
setOriginatingViewer
in interface ISystemResourceChangeEvent
public Viewer getOriginatingViewer()
getOriginatingViewer
in interface ISystemResourceChangeEvent
public Item getViewerItem()
getViewerItem
in interface ISystemResourceChangeEvent
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |