org.openide.cookies
Interface InstanceCookie.Origin

All Superinterfaces:
InstanceCookie, Node.Cookie
All Known Implementing Classes:
InstanceSupport.Origin
Enclosing class:
InstanceCookie

public static interface InstanceCookie.Origin
extends InstanceCookie

Enhanced instance cookie that also knows the file it was created from and can be serialized back to. This could be used, e.g., for Beans that could be saved back to their original location after instantiation and customization.


Inner classes inherited from class org.openide.cookies.InstanceCookie
InstanceCookie.Of, InstanceCookie.Origin
 
Method Summary
 FileObject instanceOrigin()
          Returns the origin of the instance.
 
Methods inherited from interface org.openide.cookies.InstanceCookie
instanceClass, instanceCreate, instanceName
 

Method Detail

instanceOrigin

public FileObject instanceOrigin()
Returns the origin of the instance.
Returns:
the original file


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.