com.tensegrity.gui.swing.repository
Class ActionRepositoryItem.ClickActionProvider

java.lang.Object
  extended bycom.tensegrity.gui.swing.repository.ActionRepositoryItem.ClickActionProvider
Enclosing class:
ActionRepositoryItem

public static class ActionRepositoryItem.ClickActionProvider
extends java.lang.Object

ActionRepositoryItemClickActionProvider

Version:
$Id: ActionRepositoryItem.java,v 1.15 2005/11/22 17:02:59 BurkhardWick Exp $
Author:
BurkhardWick

Constructor Summary
ActionRepositoryItem.ClickActionProvider()
           
 
Method Summary
 boolean actionEnabled(ActionRepositoryItem item)
          Subclasses can override this to disable the item according to the state of the application, document, etc.
 void leftClicked(ActionRepositoryItem item, java.awt.event.MouseEvent e)
          Called whenever a user clicks on an item using the left mouse button.
 void rightClicked(ActionRepositoryItem item, java.awt.event.MouseEvent e)
          Called whenever a user clicks on an item using the right mouse button.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionRepositoryItem.ClickActionProvider

public ActionRepositoryItem.ClickActionProvider()
Method Detail

leftClicked

public void leftClicked(ActionRepositoryItem item,
                        java.awt.event.MouseEvent e)
Called whenever a user clicks on an item using the left mouse button.

Parameters:
item - The item that has been clicked on
e - The mouseevent representing the click

rightClicked

public void rightClicked(ActionRepositoryItem item,
                         java.awt.event.MouseEvent e)
Called whenever a user clicks on an item using the right mouse button.

Parameters:
item - The item that has been clicked on
e - The mouseevent representing the click

actionEnabled

public boolean actionEnabled(ActionRepositoryItem item)
Subclasses can override this to disable the item according to the state of the application, document, etc.

Parameters:
item - The item that should be checked
Returns:
true, if the item is enabled


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.