org.openide.cookies.ConnectionCookie, org.openide.nodes.Node.Cookie@Deprecated
public class ConnectionSupport
extends java.lang.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.
|
java.util.List<org.openide.cookies.ConnectionCookie.Type> |
getRegisteredTypes() |
Deprecated.
Get the list of all registered types in every (persistent
or not persistent) connections.
|
java.util.Set<org.openide.cookies.ConnectionCookie.Type> |
getTypes() |
Deprecated.
Unmutable set of types supported by this connection source.
|
java.util.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 java.io.IOException
register in interface org.openide.cookies.ConnectionCookietype - the type of event, must be supported by the cookielistener - the node that should be notifiedjava.io.InvalidObjectException - if the type is not supported by the cookie (subclass of IOException)java.io.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 java.io.IOException
unregister in interface org.openide.cookies.ConnectionCookietype - type of event to unregister the listener from listening tolistener - to unregisterjava.io.IOException - if there is I/O operation error when the removing
the listener from persistent storagepublic java.util.Set<org.openide.cookies.ConnectionCookie.Type> getTypes()
getTypes in interface org.openide.cookies.ConnectionCookiepublic java.util.List<org.openide.cookies.ConnectionCookie.Type> getRegisteredTypes()
public void fireEvent(org.openide.cookies.ConnectionCookie.Event ev)
ev - the eventpublic java.util.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.