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

  




 

 

Eclipse Rich Ajax Platform
Release 1.2

org.eclipse.rwt
Interface Adaptable

All Known Implementing Classes:
Display, Widget

public interface Adaptable

Adaptable objects lets you add interfaces to a class and lets clients query whether an object has a particular extension. This means adaptable objects can be dynamically extended. Adapters are created by adapter factories, which are registered with an global adapter manager.

     Adaptable a = ...;
     IMyExtension x = ( IMyExtension )a.getAdapter( IMyExtension.class );
     if( x != null ) {
       // invoke IMyExtension methods on x ...
     }
 

Since:
1.0
See Also:
AdapterFactory

Method Summary
  Object getAdapter ( Class adapter)
          Returns an object which is an instance of the given class parameter associated with this object or null if no association exists.
 

Method Detail

getAdapter

public 
Object getAdapter(
Class adapter)

Returns an object which is an instance of the given class parameter associated with this object or null if no association exists.

Parameters:
adapter - the lookup class
Returns:
a object castable to the given class or null if there is no adapter associated with the given class.

Eclipse Rich Ajax Platform
Release 1.2

Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2008. All rights reserved.


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