public class LeafListener extends java.lang.Object implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, javax.swing.event.TreeSelectionListener, ClipboardActionInterface, ClipboardPasteInterface, ToolSelectionHandler, Actions
ADD_TRIGGER_NODE_ACTION, CLEAR_ACTION, CLOSE_ACTION, COMPILE_ACTION, CONFIGURE_PEER_ACTION, CONTROL_PROERTIES_ACTION, COPY_ACTION, CREATE_IMAGE, CREATE_SERVICE_ACTION, CUT_ACTION, DART_DISTRIBUTE_ACTION, DEC_INPUT_NODES_ACTION, DEC_OUTPUT_NODES_ACTION, DELETE_ACTION, DELETE_REFERENCES_ACTION, DESKTOP_CHANGE_PROPERTY, DISCOVER_SERVICES_ACTION, DISTRIBUTE_PROTOSERVICES_ACTION, EDIT_DESC_ACTION, EDIT_GUI_ACTION, EDIT_HTML_ACTION, EDIT_SOURCE_ACTION, EDIT_TOOLBOXES, EDIT_XML_ACTION, EXPORT_ACTION, FIND_ACTION, FLUSH_ACTION, GROUP_ACTION, HELP_ACTION, HISTORY_TRACKING_ACTION, IMPORT_ACTION, IMPORT_SERVICE_ACTION, INC_INPUT_NODES_ACTION, INC_OUTPUT_NODES_ACTION, NEW_ACTION, NODE_EDITOR_ACTION, OPEN_ACTION, OPEN_FILE_ACTION, OPTIONS, ORGANIZE_ACTION, PASTE_ACTION, PASTE_INTO_ACTION, PAUSE_ACTION, PRINT_ACTION, PROPERTIES_ACTION, REMOVE_TRIGGER_NODE_ACTION, RENAME_ACTION, RENDER_ACTION, RESET_ACTION, RETRACT_GROUP_ACTION, RETRACT_SERVICE_ACTION, RUN_ACTION, RUN_HISTORY_ACTION, RUN_SCRIPT_ACTION, SAVE_ACTION, SAVE_AS_ACTION, SAVE_AS_FILE, SELECT_ALL_ACTION, TABBED_DESKTOP_VIEW, TOGGLE_ERROR_NODE_ACTION, UNGROUP_ACTION, VIRTUAL_DESKTOP_VIEW, ZOOMIN_ACTION, ZOOMOUT_ACTION
Constructor and Description |
---|
LeafListener(javax.swing.JTree tree,
ApplicationFrame frame,
ToolTable tools) |
Modifier and Type | Method and Description |
---|---|
void |
addToolSelectionListener(ToolSelectionListener listener)
Adds a listener to be notified when the tool selection changes
|
void |
copyToClipboard()
Copy selected Tools to the Clipboard.
|
void |
createTool(TaskGraphPanel cont,
Tool tool,
int x,
int y) |
void |
cutToClipboard()
Copy selected Tools to the Clipboard and delete them from the Container they are located in.
|
void |
deleteTools(boolean files)
Delete the selected Tool.
|
void |
doubleClick(java.awt.event.MouseEvent e)
Acts upon a double-Click event
|
TaskGraph |
getSelectedTaskgraph() |
Tool |
getSelectedTool() |
Tool[] |
getSelectedTools() |
TrianaClient |
getSelectedTrianaClient() |
boolean |
isSingleSelectedTool() |
void |
mouseClicked(java.awt.event.MouseEvent e)
This handles the double clicking of the toolTables and pop-up menu selection.
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged.
|
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component.
|
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.
|
void |
mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons no down).
|
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.
|
void |
pasteFromClipboard()
Paste Tools from the Clipboard to this container.
|
void |
removeToolSelectionListener(ToolSelectionListener listener)
Removes a listener from being notified when the tool selection changes
|
void |
renameTool()
Rename the selected Tool or Group.
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent event)
Called whenever the value of the selection changes.
|
public LeafListener(javax.swing.JTree tree, ApplicationFrame frame, ToolTable tools)
public void addToolSelectionListener(ToolSelectionListener listener)
addToolSelectionListener
in interface ToolSelectionHandler
public void removeToolSelectionListener(ToolSelectionListener listener)
removeToolSelectionListener
in interface ToolSelectionHandler
public boolean isSingleSelectedTool()
isSingleSelectedTool
in interface ToolSelectionHandler
public Tool getSelectedTool()
getSelectedTool
in interface ToolSelectionHandler
public Tool[] getSelectedTools()
getSelectedTools
in interface ToolSelectionHandler
public TaskGraph getSelectedTaskgraph()
getSelectedTaskgraph
in interface ToolSelectionHandler
public TrianaClient getSelectedTrianaClient()
getSelectedTrianaClient
in interface ToolSelectionHandler
public void copyToClipboard() throws TaskException
copyToClipboard
in interface ClipboardActionInterface
TaskException
public void cutToClipboard() throws TaskException
cutToClipboard
in interface ClipboardActionInterface
TaskException
public void deleteTools(boolean files)
deleteTools
in interface ClipboardActionInterface
public void renameTool()
renameTool
in interface ClipboardActionInterface
public void pasteFromClipboard() throws TaskException
pasteFromClipboard
in interface ClipboardPasteInterface
TaskException
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void doubleClick(java.awt.event.MouseEvent e)
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void createTool(TaskGraphPanel cont, Tool tool, int x, int y)
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void valueChanged(javax.swing.event.TreeSelectionEvent event)
valueChanged
in interface javax.swing.event.TreeSelectionListener
event
- the event that characterizes the change.