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

ConnectionCookie.Event (NetBeans APIs) - NetBeans API Javadoc 4.1.0


org.openide.cookies
Class ConnectionCookie.Event

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.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

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


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