com.tensegrity.gui.swing.control.attributetree
Class DefaultSwingAttributeTreePopupMenuSource

java.lang.Object
  extended bycom.tensegrity.gui.swing.control.attributetree.DefaultSwingAttributeTreePopupMenuSource
All Implemented Interfaces:
AttributeEditorPropertiesListener, Evaluable, JPopupMenuSource

public class DefaultSwingAttributeTreePopupMenuSource
extends java.lang.Object
implements JPopupMenuSource, AttributeEditorPropertiesListener, Evaluable

DefaultSwingAttributeTreePopupMenuSource

Author:
BurkhardWick

Constructor Summary
DefaultSwingAttributeTreePopupMenuSource(SwingAttributeTree tree, UIManager uiManager)
          Constructor
 
Method Summary
 void applyEvList()
          Tells the component to apply its UIItemEvaluationList.
 PopupMenuMarkup getPopupMenu(java.lang.Object eventObject)
          Returns the current popup menu of the popup source.
protected  void initPopupMenu()
          Creates the popup menu
 void installEvList()
          Tells the component to setup its internal state.
 void propertiesChanged()
          Called whenever one or more properties of the AttributeEditorProperties has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSwingAttributeTreePopupMenuSource

public DefaultSwingAttributeTreePopupMenuSource(SwingAttributeTree tree,
                                                UIManager uiManager)
Constructor

Parameters:
tree - The SwingAttributeTree this popup menu source belongs to
uiManager - The uiManager to use
Method Detail

getPopupMenu

public PopupMenuMarkup getPopupMenu(java.lang.Object eventObject)
Description copied from interface: JPopupMenuSource
Returns the current popup menu of the popup source.

Specified by:
getPopupMenu in interface JPopupMenuSource
Parameters:
eventObject - the mouse-event that triggered the request.
Returns:
the current popup menu of the popup source.

initPopupMenu

protected void initPopupMenu()
Creates the popup menu


propertiesChanged

public void propertiesChanged()
Description copied from interface: AttributeEditorPropertiesListener
Called whenever one or more properties of the AttributeEditorProperties has changed.

Specified by:
propertiesChanged in interface AttributeEditorPropertiesListener

installEvList

public void installEvList()
Description copied from interface: Evaluable
Tells the component to setup its internal state.

Specified by:
installEvList in interface Evaluable

applyEvList

public void applyEvList()
Description copied from interface: Evaluable
Tells the component to apply its UIItemEvaluationList.

Specified by:
applyEvList in interface Evaluable


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