|
org.openide.loaders 5.9.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.loaders.ConnectionSupport
public class ConnectionSupport
Support implementing ConnectionCookie, that stores listeners in extended attributes of associated entry.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.openide.cookies.ConnectionCookie |
---|
ConnectionCookie.Event, ConnectionCookie.Listener, ConnectionCookie.Type |
Constructor Summary | |
---|---|
ConnectionSupport(MultiDataObject.Entry entry,
ConnectionCookie.Type[] types)
Deprecated. Creates new connection support for given file entry. |
Method Summary | |
---|---|
void |
fireEvent(ConnectionCookie.Event ev)
Deprecated. Fires info for all listeners of given type. |
List |
getRegisteredTypes()
Deprecated. Get the list of all registered types in every (persistent or not persistent) connections. |
Set |
getTypes()
Deprecated. Unmutable set of types supported by this connection source. |
Set |
listenersFor(ConnectionCookie.Type type)
Deprecated. Obtains a set of all listeners for given type. |
void |
register(ConnectionCookie.Type type,
Node listener)
Deprecated. Attaches new node to listen to events produced by this event. |
void |
unregister(ConnectionCookie.Type type,
Node listener)
Deprecated. Unregisters an listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionSupport(MultiDataObject.Entry entry, ConnectionCookie.Type[] types)
entry
- entry to store listener to its extended attributestypes
- a list of event types to supportMethod Detail |
---|
public void register(ConnectionCookie.Type type, Node listener) throws IOException
register
in interface ConnectionCookie
type
- the type of event, must be supported by the cookielistener
- the node that should be notified
InvalidObjectException
- 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(ConnectionCookie.Type type, Node listener) throws IOException
unregister
in interface ConnectionCookie
type
- type of event to unregister the listener from listening tolistener
- to unregister
IOException
- if there is I/O operation error when the removing
the listener from persistent storagepublic Set getTypes()
getTypes
in interface ConnectionCookie
public List getRegisteredTypes()
public void fireEvent(ConnectionCookie.Event ev)
ev
- the eventpublic Set listenersFor(ConnectionCookie.Type type)
type
- type of events to test
|
org.openide.loaders 5.9.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |