org.openide.cookies.ConnectionCookie
, org.openide.nodes.Node.Cookie
@Deprecated public class ConnectionSupport extends Object implements org.openide.cookies.ConnectionCookie
Constructor | Description |
---|---|
ConnectionSupport(MultiDataObject.Entry entry,
org.openide.cookies.ConnectionCookie.Type[] types) |
Deprecated.
Creates new connection support for given file entry.
|
Modifier and Type | Method | Description |
---|---|---|
void |
fireEvent(org.openide.cookies.ConnectionCookie.Event ev) |
Deprecated.
Fires info for all listeners of given type.
|
List<org.openide.cookies.ConnectionCookie.Type> |
getRegisteredTypes() |
Deprecated.
Get the list of all registered types in every (persistent
or not persistent) connections.
|
Set<org.openide.cookies.ConnectionCookie.Type> |
getTypes() |
Deprecated.
Unmutable set of types supported by this connection source.
|
Set |
listenersFor(org.openide.cookies.ConnectionCookie.Type type) |
Deprecated.
Obtains a set of all listeners for given type.
|
void |
register(org.openide.cookies.ConnectionCookie.Type type,
org.openide.nodes.Node listener) |
Deprecated.
Attaches new node to listen to events produced by this
event.
|
void |
unregister(org.openide.cookies.ConnectionCookie.Type type,
org.openide.nodes.Node listener) |
Deprecated.
Unregisters an listener.
|
public ConnectionSupport(MultiDataObject.Entry entry, org.openide.cookies.ConnectionCookie.Type[] types)
entry
- entry to store listener to its extended attributestypes
- a list of event types to supportpublic void register(org.openide.cookies.ConnectionCookie.Type type, org.openide.nodes.Node listener) throws IOException
register
in interface org.openide.cookies.ConnectionCookie
type
- the type of event, must be supported by the cookielistener
- the node that should be notifiedInvalidObjectException
- if the type is not supported by the cookie (subclass of IOException)IOException
- if the type is persistent and the listener does not
have serializable handle (listener.getHandle () is null or its serialization
throws an exception)public void unregister(org.openide.cookies.ConnectionCookie.Type type, org.openide.nodes.Node listener) throws IOException
unregister
in interface org.openide.cookies.ConnectionCookie
type
- type of event to unregister the listener from listening tolistener
- to unregisterIOException
- if there is I/O operation error when the removing
the listener from persistent storagepublic Set<org.openide.cookies.ConnectionCookie.Type> getTypes()
getTypes
in interface org.openide.cookies.ConnectionCookie
public List<org.openide.cookies.ConnectionCookie.Type> getRegisteredTypes()
public void fireEvent(org.openide.cookies.ConnectionCookie.Event ev)
ev
- the eventpublic Set listenersFor(org.openide.cookies.ConnectionCookie.Type type)
type
- type of events to testBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.