Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.core.events
Class SystemResourceChangeEvent

java.lang.Object
  extended by 

java.util.EventObject
      extended by 
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

Field 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

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
Method Detail

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.

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire