org.noos.xing.mydoggy.event
Class ToolWindowManagerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.noos.xing.mydoggy.event.ToolWindowManagerEvent
All Implemented Interfaces:
Serializable

public class ToolWindowManagerEvent
extends EventObject

An event which indicates that an action occurred in the tool window manager.

Since:
1.0.0
Author:
Angelo De Caro (angelo.decaro@gmail.com)
See Also:
Serialized Form

Nested Class Summary
static class ToolWindowManagerEvent.ActionId
          Action Identifier Enum.
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ToolWindowManagerEvent(ToolWindowManager source, ToolWindowManagerEvent.ActionId actionId, ToolWindow toolWindow)
          Constructs a ToolWindowManagerEvent object with the specified source tool window manager, actionId, toolWindow.
ToolWindowManagerEvent(ToolWindowManager source, ToolWindowManagerEvent.ActionId actionId, ToolWindowGroup toolWindowGroup)
          Constructs a ToolWindowManagerEvent object with the specified source tool window manager, actionId, toolWindowGroup.
 
Method Summary
 ToolWindowManagerEvent.ActionId getId()
          Returns the action identifier.
 ToolWindow getToolWindow()
          Returns the tool window subject of the action.
 ToolWindowGroup getToolWindowGroup()
          Returns the tool window group subject of the action.
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ToolWindowManagerEvent

public ToolWindowManagerEvent(ToolWindowManager source,
                              ToolWindowManagerEvent.ActionId actionId,
                              ToolWindow toolWindow)
Constructs a ToolWindowManagerEvent object with the specified source tool window manager, actionId, toolWindow. Creating an invalid event (such as by using ActionId.TOOL_REGISTERED with a null tool window) results in unspecified behavior.

This method throws an IllegalArgumentException if source is null.

Parameters:
source - the tool window manager where the action has occured.
actionId - the action identifier
toolWindow - the tool window subject of the action.
See Also:
ToolWindowManager, ToolWindowManagerEvent.ActionId, ToolWindow

ToolWindowManagerEvent

public ToolWindowManagerEvent(ToolWindowManager source,
                              ToolWindowManagerEvent.ActionId actionId,
                              ToolWindowGroup toolWindowGroup)
Constructs a ToolWindowManagerEvent object with the specified source tool window manager, actionId, toolWindowGroup. Creating an invalid event (such as by using ActionId.GROUP_ADDED with a null tool window group) results in unspecified behavior.

This method throws an IllegalArgumentException if source is null.

Parameters:
source - the tool window manager where the action has occured.
actionId - the action identifier
toolWindowGroup - the tool window group subject of the action.
See Also:
ToolWindowManager, ToolWindowManagerEvent.ActionId, ToolWindowGroup
Method Detail

getId

public ToolWindowManagerEvent.ActionId getId()
Returns the action identifier.

Returns:
the action identifier.

getToolWindow

public ToolWindow getToolWindow()
Returns the tool window subject of the action.

Returns:
the tool window.

getToolWindowGroup

public ToolWindowGroup getToolWindowGroup()
Returns the tool window group subject of the action.

Returns:
the tool window group.

toString

public String toString()
Overrides:
toString in class EventObject


Copyright © 2012. All Rights Reserved.