|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.eclipse.rse.core.events.SystemResourceChangeEvent
public class SystemResourceChangeEvent
Event object sent to SystemResourceChangeListeners when a remote system object is created, changed, removed, etc.
ISystemResourceChangeEvents
,
Serialized FormField Summary |
---|
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. |
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). |
void |
setGrandParent(Object grandparent)
Set the grand parent of the object added or removed. |
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 |
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 org.eclipse.rse.core.events.ISystemResourceChangeEvent |
---|
getSource |
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
null
if not applicable.ISystemResourceChangeEvent.getParent()
public void setParent(Object parent)
setParent
in interface ISystemResourceChangeEvent
parent
- the parent object.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 int getType()
getType
in interface ISystemResourceChangeEvent
ISystemResourceChangeEvents
,
ISystemResourceChangeEvent
,
ISystemResourceChangeEvent.getType()
public void setType(int type)
setType
in interface ISystemResourceChangeEvent
type
- a type that is one of the constants in ISystemResourceChangeEvents.ISystemResourceChangeEvents
public Object getRelativePrevious()
getRelativePrevious
in interface ISystemResourceChangeEvent
public void setRelativePrevious(Object previousObject)
setRelativePrevious
in interface ISystemResourceChangeEvent
previousObject
- the object after which to add the new object.
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |