Skip navigation links


com.essbase.eas.essbase.ui.outline
Class ETreeAdapter

java.lang.Object
  extended by com.essbase.eas.essbase.ui.outline.ETreeAdapter

All Implemented Interfaces:
java.awt.event.MouseListener, java.util.EventListener, javax.swing.event.TreeExpansionListener, javax.swing.event.TreeSelectionListener, javax.swing.event.TreeWillExpandListener

public class ETreeAdapter
extends java.lang.Object
implements java.awt.event.MouseListener, javax.swing.event.TreeSelectionListener, javax.swing.event.TreeWillExpandListener, javax.swing.event.TreeExpansionListener

implements all of the listener interfaces for an ETree object.

Version:
1.00, 10/04/2001
Author:
Hank Cox

Constructor Summary
ETreeAdapter(ETree etree)
          constructor used to associate a EreeAdapter with a ETree.

 

Method Summary
 ETreePopupMenu getPopupMenu()
           
 void mouseClicked(java.awt.event.MouseEvent e)
          implementation of the MouseListener.mouseClicked() method.
 void mouseEntered(java.awt.event.MouseEvent e)
          empty implementation of the MouseListener.mouseEntered() method.
 void mouseExited(java.awt.event.MouseEvent e)
          empty implementation of the MouseListener.mouseExited() method.
 void mousePressed(java.awt.event.MouseEvent e)
          implementation of the MouseListener.mousePressed() method.
 void mouseReleased(java.awt.event.MouseEvent e)
          implementation of the MouseListener.mouseReleased() method.
 void release()
           
 void setPopupMenu(ETreePopupMenu menu)
           
 void treeCollapsed(javax.swing.event.TreeExpansionEvent event)
          Called whenever an item in the tree has been collapsed.
 void treeExpanded(javax.swing.event.TreeExpansionEvent event)
          Called whenever an item in the tree has been expanded.
 void treeWillCollapse(javax.swing.event.TreeExpansionEvent event)
          implementation of the TreeWillExpandListener.treeWillCollapse() method.
 void treeWillExpand(javax.swing.event.TreeExpansionEvent event)
           
 void valueChanged(javax.swing.event.TreeSelectionEvent e)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ETreeAdapter

public ETreeAdapter(ETree etree)
constructor used to associate a EreeAdapter with a ETree.

Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
implementation of the MouseListener.mouseClicked() method. Checks for popup menu event.
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
implementation of the MouseListener.mousePressed() method. Sets the tree's selection to the correct object, if necessary. Checks for a popup menu event.
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
implementation of the MouseListener.mouseReleased() method. Checks for a popup menu event.
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
empty implementation of the MouseListener.mouseEntered() method.
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
empty implementation of the MouseListener.mouseExited() method.
Specified by:
mouseExited in interface java.awt.event.MouseListener

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener

treeWillExpand

public void treeWillExpand(javax.swing.event.TreeExpansionEvent event)
                    throws javax.swing.tree.ExpandVetoException
Specified by:
treeWillExpand in interface javax.swing.event.TreeWillExpandListener
Throws:
javax.swing.tree.ExpandVetoException

treeWillCollapse

public void treeWillCollapse(javax.swing.event.TreeExpansionEvent event)
                      throws javax.swing.tree.ExpandVetoException
implementation of the TreeWillExpandListener.treeWillCollapse() method. Currently, we don't do anything when a node collapses.
Specified by:
treeWillCollapse in interface javax.swing.event.TreeWillExpandListener
Throws:
javax.swing.tree.ExpandVetoException

treeExpanded

public void treeExpanded(javax.swing.event.TreeExpansionEvent event)
Called whenever an item in the tree has been expanded.
Specified by:
treeExpanded in interface javax.swing.event.TreeExpansionListener

treeCollapsed

public void treeCollapsed(javax.swing.event.TreeExpansionEvent event)
Called whenever an item in the tree has been collapsed.
Specified by:
treeCollapsed in interface javax.swing.event.TreeExpansionListener

release

public void release()

setPopupMenu

public void setPopupMenu(ETreePopupMenu menu)

getPopupMenu

public ETreePopupMenu getPopupMenu()

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.