当前页面:
在线文档首页 >
NetBeans API Javadoc 5.0.0
ConnectionCookie.Event (NetBeans Nodes API) - NetBeans API Javadoc 5.0.0
org.openide.cookies
Class ConnectionCookie.Event
java.lang.Object
java.util.EventObject
org.openide.cookies.ConnectionCookie.Event
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- ConnectionCookie
- public static class ConnectionCookie.Event
- extends EventObject
Event that is fired to listeners.
- See Also:
- Serialized Form
ConnectionCookie.Event
public ConnectionCookie.Event(Node n,
ConnectionCookie.Type t)
- Parameters:
n
- the node that produced the actiont
- type of the event
getNode
public Node getNode()
- Getter for the node that produced the action.
The node can be used to obtain additional information like cookies, etc.
- Returns:
- the node
getType
public ConnectionCookie.Type getType()
- Getter for the type of the event.
There can be more types of events and the listener can compare
if two events are of the same type by using type1.equals (type2)
- Returns:
- type of the event