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
Answertopia.com

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

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.viewers.deferred
Class AbstractConcurrentModel


java.lang.Object
  extended by 
org.eclipse.jface.viewers.deferred.AbstractConcurrentModel
All Implemented Interfaces:
IConcurrentModel
Direct Known Subclasses:
SetModel

public abstract class AbstractConcurrentModel
extends Object
implements IConcurrentModel

Abstract base class for all IConcurrentModel implementations. Clients should subclass this class instead of implementing IConcurrentModel directly.

Since:
3.1

Constructor Summary
AbstractConcurrentModel ()
           
 
Method Summary
 void addListener ( IConcurrentModelListener listener)
          Adds a listener to this model.
protected  void fireAdd ( Object[] added)
          Fires an add notification to all listeners
protected  void fireRemove ( Object[] removed)
          Fires a remove notification to all listeners
protected  void fireUpdate ( Object[] updated)
          Fires an update notification to all listeners
protected   IConcurrentModelListener[] getListeners ()
          Returns the array of listeners for this model
 void removeListener ( IConcurrentModelListener listener)
          Removes a listener from this model.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.viewers.deferred. IConcurrentModel
requestUpdate
 

Constructor Detail

AbstractConcurrentModel

public AbstractConcurrentModel()
Method Detail

addListener

public void addListener(
IConcurrentModelListener listener)
Description copied from interface: IConcurrentModel
Adds a listener to this model. The listener should be given the model's current contents (either through setContents or a sequence of adds) at the receiver's earliest convenience. The receiver will notify the listener about any changes in state until the listener is removed.

Has no effect if an identical listener is already registered.

Specified by:
addListener in interface IConcurrentModel
Parameters:
listener - listener to add

fireAdd

protected final void fireAdd(
Object[] added)
Fires an add notification to all listeners

Parameters:
added - objects added to the set

fireRemove

protected final void fireRemove(
Object[] removed)
Fires a remove notification to all listeners

Parameters:
removed - objects removed from the set

fireUpdate

protected final void fireUpdate(
Object[] updated)
Fires an update notification to all listeners

Parameters:
updated - objects that have changed

getListeners

protected final 
IConcurrentModelListener[] getListeners()
Returns the array of listeners for this model

Returns:
the array of listeners for this model

removeListener

public void removeListener(
IConcurrentModelListener listener)
Description copied from interface: IConcurrentModel
Removes a listener from this model. The receiver will stop sending notifications to the given listener as soon as possible (although some additional notifications may still if arrive if the receiver was in the process of sending notifications in another thread). Any pending updates for this listener will be cancelled.

Has no effect if the given listener is not known to this model.

Specified by:
removeListener in interface IConcurrentModel
Parameters:
listener - listener to remove

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


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