站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.5.0

ConnectionCookie.Event (NetBeans Nodes API) - NetBeans API Javadoc 5.5.0

org.openide.nodes 6.7.22

org.openide.cookies
Class ConnectionCookie.Event

java.lang.Object
  extended by java.util.EventObject
      extended by org.openide.cookies.ConnectionCookie.Event
All Implemented Interfaces:
Serializable
Enclosing interface:
ConnectionCookie

public static class ConnectionCookie.Event
extends EventObject

Event that is fired to listeners.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ConnectionCookie.Event(Node n, ConnectionCookie.Type t)
           
 
Method Summary
 Node getNode()
          Getter for the node that produced the action.
 ConnectionCookie.Type getType()
          Getter for the type of the event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionCookie.Event

public ConnectionCookie.Event(Node n,
                              ConnectionCookie.Type t)
Parameters:
n - the node that produced the action
t - type of the event
Method Detail

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

org.openide.nodes 6.7.22

Built on May 28 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.