org.openide.loaders
Class OpenSupport
java.lang.Object
|
+--org.openide.windows.CloneableOpenSupport
|
+--org.openide.loaders.OpenSupport
- Direct Known Subclasses:
- EditorSupport
- public abstract class OpenSupport
- extends CloneableOpenSupport
Simple support for an openable file.
Can be used either as an OpenCookie
, ViewCookie
, or CloseCookie
,
depending on which cookies the subclass implements.
Inner Class Summary |
static class |
OpenSupport.Env
Environment that connects the support together with DataObject. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entry
protected MultiDataObject.Entry entry
- Entry to work with.
OpenSupport
public OpenSupport(MultiDataObject.Entry entry)
- New support for a given entry. The file is taken from the
entry and is updated if the entry moves or renames itself.
- Parameters:
entry
- entry to create instance from
OpenSupport
protected OpenSupport(MultiDataObject.Entry entry,
OpenSupport.Env env)
- Constructor that allows subclasses to provide their own environment.
Used probably only by EditorSupport.
- Parameters:
entry
- the entry to work onenv
- the environment to work on
messageOpening
protected String messageOpening()
- Message to display when an object is being opened.
- Overrides:
messageOpening
in class CloneableOpenSupport
- Returns:
- the message or null if nothing should be displayed
messageOpened
protected String messageOpened()
- Message to display when an object has been opened.
- Overrides:
messageOpened
in class CloneableOpenSupport
- Returns:
- the message or null if nothing should be displayed
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.