org.noos.xing.mydoggy.event
Class ToolWindowTabEvent

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

public class ToolWindowTabEvent
extends EventObject

An event which indicates that an action occurred in a tool window with a tab as object.

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

Nested Class Summary
static class ToolWindowTabEvent.ActionId
           
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ToolWindowTabEvent(Object source, ToolWindowTabEvent.ActionId actionId, ToolWindow toolWindow, ToolWindowTab toolWindowTab)
          Constructs a ToolWindowTabEvent object with the specified source, actionId, tool window and tab.
 
Method Summary
 ToolWindowTabEvent.ActionId getActionId()
          Returns the action identifier.
 ToolWindow getToolWindow()
          Returns the tool window involved in the action.
 ToolWindowTab getToolWindowTab()
          Returns the tab involved in 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

ToolWindowTabEvent

public ToolWindowTabEvent(Object source,
                          ToolWindowTabEvent.ActionId actionId,
                          ToolWindow toolWindow,
                          ToolWindowTab toolWindowTab)
Constructs a ToolWindowTabEvent object with the specified source, actionId, tool window and tab.

This constructor throws an IllegalArgumentException if the source or the actionId or the toolWindow or the toolWindowTab is null.

Parameters:
source - the source where the action has occured.
actionId - the action identifier
toolWindow - the tool window on wicht the action is occurred.
toolWindowTab - the tab involved in the action.
See Also:
ToolWindowTabEvent.ActionId, ToolWindow, ToolWindowTab
Method Detail

getActionId

public ToolWindowTabEvent.ActionId getActionId()
Returns the action identifier.

Returns:
the action identifier.

getToolWindow

public ToolWindow getToolWindow()
Returns the tool window involved in the action.

Returns:
the tool window.

getToolWindowTab

public ToolWindowTab getToolWindowTab()
Returns the tab involved in the action.

Returns:
the tool window.

toString

public String toString()
Overrides:
toString in class EventObject


Copyright © 2012. All Rights Reserved.