|
org.openide.nodes 6.7.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.nodes.CookieSet
public final class CookieSet
Support class for storing cookies and retriving them by representation class. Provides simple notifications about changes in cookies.
Nested Class Summary | |
---|---|
static interface |
CookieSet.Factory
Factory for creating cookies of given Class |
Constructor Summary | |
---|---|
CookieSet()
Default constructor. |
Method Summary | |
---|---|
void |
add(Class[] cookieClass,
CookieSet.Factory factory)
Registers a Factory for given cookie classes |
void |
add(Class cookieClass,
CookieSet.Factory factory)
Registers a Factory for given cookie class |
void |
add(Node.Cookie cookie)
Add a new cookie to the set. |
void |
addChangeListener(ChangeListener l)
Add a listener to changes in the cookie set. |
Node.Cookie |
getCookie(Class clazz)
Get a cookie. |
void |
remove(Class[] cookieClass,
CookieSet.Factory factory)
Unregisters a Factory for given cookie classes |
void |
remove(Class cookieClass,
CookieSet.Factory factory)
Unregisters a Factory for given cookie class |
void |
remove(Node.Cookie cookie)
Remove a cookie from the set. |
void |
removeChangeListener(ChangeListener l)
Remove a listener to changes in the cookie set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CookieSet()
Method Detail |
---|
public void add(Node.Cookie cookie)
Cookies inserted earlier are given preference during lookup, in case a supplied representation class matches more than one cookie in the set.
cookie
- cookie to addpublic void remove(Node.Cookie cookie)
cookie
- the cookie to removepublic Node.Cookie getCookie(Class clazz)
clazz
- the representation class
null
if there is nonepublic void addChangeListener(ChangeListener l)
l
- the listener to addpublic void removeChangeListener(ChangeListener l)
l
- the listener to removepublic void add(Class cookieClass, CookieSet.Factory factory)
public void add(Class[] cookieClass, CookieSet.Factory factory)
public void remove(Class cookieClass, CookieSet.Factory factory)
public void remove(Class[] cookieClass, CookieSet.Factory factory)
|
org.openide.nodes 6.7.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |