|
 |
|
|
org.eclipse.rse.core.events
Class SystemResourceChangeEvent
java.lang.Object
java.util.EventObject
org.eclipse.rse.core.events.SystemResourceChangeEvent
-
All Implemented Interfaces:
-
Serializable,
ISystemResourceChangeEvent
-
Direct Known Subclasses:
-
SystemResourceChangeEventUI
-
public class SystemResourceChangeEvent
- extends
EventObject
- implements
ISystemResourceChangeEvent
Event object sent to SystemResourceChangeListeners when a
remote system object is created, changed, removed, etc.
-
See Also:
-
ISystemResourceChangeEvents ,
Serialized Form
SystemResourceChangeEvent
public SystemResourceChangeEvent(
Object source,
int type,
Object parent)
- Constructor for SystemResourceChangeEvent.
-
Parameters:
-
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. -
See Also:
-
ISystemResourceChangeEvents
SystemResourceChangeEvent
public SystemResourceChangeEvent(
Object[] source,
int type,
Object parent)
- Constructor for SystemResourceChangeEvent when the source is multipe resources.
-
Parameters:
-
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. -
See Also:
-
ISystemResourceChangeEvents
getMultiSource
public
Object[] getMultiSource()
- For multi-target events, return the array of source targets.
-
-
Specified by:
-
getMultiSource
in interface
ISystemResourceChangeEvent
-
-
Returns:
- array of source objects.
getParent
public
Object getParent()
- Return the parent of the object added or removed.
-
-
Specified by:
-
getParent
in interface
ISystemResourceChangeEvent
-
-
Returns:
- an object identifying the parent of the source of this event,
or
null if not applicable. -
See Also:
-
ISystemResourceChangeEvent.getParent()
setParent
public void setParent(
Object parent)
- Set the parent
-
-
Specified by:
-
setParent
in interface
ISystemResourceChangeEvent
-
-
Parameters:
-
parent - the parent object.
getGrandParent
public
Object getGrandParent()
- Return the grand parent of the object added or removed.
-
-
Specified by:
-
getGrandParent
in interface
ISystemResourceChangeEvent
-
-
Returns:
- an object identifying the grandparent of the source of this event
-
See Also:
-
ISystemResourceChangeEvent.getParent()
setGrandParent
public void setGrandParent(
Object grandparent)
- Set the grand parent of the object added or removed.
-
-
getPosition
public int getPosition()
- Return the position value. Used in ADD events.
-
-
Specified by:
-
getPosition
in interface
ISystemResourceChangeEvent
-
-
Returns:
- position to add the new item to. A negative number indicates an append operation
setPosition
public void setPosition(int position)
- Set the position value. Used in ADD events.
-
-
Specified by:
-
setPosition
in interface
ISystemResourceChangeEvent
-
-
Parameters:
-
position - zero-based position to insert the new item. A negative number indicates an append operation
getType
public int getType()
- Return the type of the event (add, change, remove, rename, change, property change).
-
-
Specified by:
-
getType
in interface
ISystemResourceChangeEvent
-
-
Returns:
- a type that is one of the constants in ISystemResourceChangeEvents.
-
See Also:
-
ISystemResourceChangeEvents ,
ISystemResourceChangeEvent ,
ISystemResourceChangeEvent.getType()
setType
public void setType(int type)
- Set the type
-
-
Specified by:
-
setType
in interface
ISystemResourceChangeEvent
-
-
Parameters:
-
type - a type that is one of the constants in ISystemResourceChangeEvents. -
See Also:
-
ISystemResourceChangeEvents
getRelativePrevious
public
Object getRelativePrevious()
- For relative add events, return the previous node this is being added after
-
-
Specified by:
-
getRelativePrevious
in interface
ISystemResourceChangeEvent
-
-
Returns:
- the previous node for adding a new node after.
setRelativePrevious
public void setRelativePrevious(
Object previousObject)
- For relative add events, set the previous node this is being added after
-
-
Specified by:
-
setRelativePrevious
in interface
ISystemResourceChangeEvent
-
-
Parameters:
-
previousObject - the object after which to add the new object.
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|
|