ca.sqlpower.wabit.swingui
Class WorkspaceTreeListener
java.lang.Object
java.awt.event.MouseAdapter
ca.sqlpower.wabit.swingui.WorkspaceTreeListener
- All Implemented Interfaces:
- java.awt.event.MouseListener, java.util.EventListener
public class WorkspaceTreeListener
- extends java.awt.event.MouseAdapter
This listener is the main listener on the workspace tree in Wabit.
It will listen and handle all tree events from creating new elements
to changing the view based on selected nodes.
|
Method Summary |
javax.swing.JMenu |
createDataSourcesMenu()
Creates a JMenu with an item for each data source defined in the context's
data source collection. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
| Methods inherited from class java.awt.event.MouseAdapter |
mouseEntered, mouseExited |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DB_ICON
public static final javax.swing.Icon DB_ICON
OLAP_DB_ICON
public static final javax.swing.Icon OLAP_DB_ICON
WorkspaceTreeListener
public WorkspaceTreeListener(WabitSwingSession session)
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClicked in interface java.awt.event.MouseListener- Overrides:
mouseClicked in class java.awt.event.MouseAdapter
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed in interface java.awt.event.MouseListener- Overrides:
mousePressed in class java.awt.event.MouseAdapter
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased in interface java.awt.event.MouseListener- Overrides:
mouseReleased in class java.awt.event.MouseAdapter
createDataSourcesMenu
public javax.swing.JMenu createDataSourcesMenu()
- Creates a JMenu with an item for each data source defined in the context's
data source collection. When one of these items is selected, it invokes an
action that adds that data source to the workspace.
Copyright © 2009. All Rights Reserved.