org.openide.cookies |
Cookies
are a design pattern used to add behaviors to existing data object
and nodes, or to separate implementation from the main object.
The Loaders API
describes how to use cookies in conjunction with data objects,
including creating new cookie interfaces, creating new cookie support
implementations, and reusing existing supports. The
Nodes API
also permits use of cookies to add behavior to nodes.
|
Java Source File Name | Type | Comment |
CloseCookie.java | Interface | Permits an object which was
OpenCookie opened to be closed. |
ConnectionCookie.java | Interface | Cookie that allows connection between two objects. |
EditCookie.java | Interface | Cookie permitting objects to be edited. |
EditorCookie.java | Interface | Cookie defining standard operations with a text document and
an editor that can display it.
The cookie extends LineCookie
because all implementations of editors should support access
by lines.
The cookie provides interfaces for opening the file, closing the editor,
background loading, saving of the document, and notification of modification.
Warning: it is not guaranteed that the document
returned from this cookie will persist for the full lifetime of the
cookie. |
FilterCookie.java | Interface | Cookie for node groups which can somehow be filtered. |
InstanceCookie.java | Interface | Cookie that should be provided by all nodes that are able
to create a "instance". |
LineCookie.java | Interface | Cookie for data objects that want to provide support for accessing
lines in a document. |
OpenCookie.java | Interface | Cookie for opening an object. |
PrintCookie.java | Interface | Cookie permitting an object to be printed. |
SaveCookie.java | Interface | The cookie for the save operation. |
ViewCookie.java | Interface | Cookie permitting objects to be viewed. |