VdexReload 1.1.3 API

uk.ac.reload.editor.contentpackaging.manifestview
Class ManifestTree

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JTree
                  extended byuk.ac.reload.dweezil.gui.tree.ReloadTree
                      extended byuk.ac.reload.dweezil.gui.tree.ReloadDragTree
                          extended byuk.ac.reload.editor.contentpackaging.manifestview.ManifestTree
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.dnd.Autoscroll, java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener, java.awt.dnd.DropTargetListener, DweezilConstants, java.util.EventListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.MenuContainer, ReloadDocumentListener, javax.swing.Scrollable, java.io.Serializable, javax.swing.event.TreeSelectionListener

public class ManifestTree
extends ReloadDragTree
implements javax.swing.event.TreeSelectionListener, ReloadDocumentListener, java.awt.event.FocusListener

A Viewer Tree that will display the CP Manifest.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JTree
javax.swing.JTree.AccessibleJTree, javax.swing.JTree.DynamicUtilTreeNode, javax.swing.JTree.EmptySelectionModel, javax.swing.JTree.TreeModelHandler, javax.swing.JTree.TreeSelectionRedirector
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  ContentPackage _contentPackage
          The CP Document
protected  uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyCopyHandler _copyHandler
          The Proxy Copy Handler
protected  ContentPackageEditor _cpEditor
          The Editor
protected  javax.swing.tree.TreePath _currentTreePath
          Keeping note of the current selected tree node means we don't have to do unneccesary updating
protected  uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyCutHandler _cutHandler
          The Proxy Cut Handler
protected  uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyDeleteHandler _deleteHandler
          The Proxy Delete Handler
protected  Menu_Edit _editMenu
          The Edit menu which we will use
protected  uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyEditMetadataHandler _editMetadataHandler
          The Proxy Edit Metadata Handler
protected  uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyEditSCORMHandler _editSCORMHandler
          The Proxy Edit SCORM Handler
protected  ManifestInfoPanel _infoPanel
          The Element Value/Attribute Edit Panel
protected  uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyLaunchFileHandler _launchFileHandler
          The Proxy View File Handler
protected  uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyMoveDownHandler _moveDownHandler
          The Proxy Move Down Handler
protected  uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyMoveUpHandler _moveUpHandler
          The Proxy Move Up Handler
protected  uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyPasteHandler _pasteHandler
          The Proxy Paste Handler
protected  javax.swing.JPopupMenu _popupMenu
          Popup Menu on Right-clicks
protected  ReloadEditorSchemaController _schemaController
          The Schema Controller
protected  ManifestTreeModel _treeModel
          The Tree Model
 
Fields inherited from class uk.ac.reload.dweezil.gui.tree.ReloadDragTree
prevHilitedNode
 
Fields inherited from class uk.ac.reload.dweezil.gui.tree.ReloadTree
dirtyTree
 
Fields inherited from class javax.swing.JTree
ANCHOR_SELECTION_PATH_PROPERTY, CELL_EDITOR_PROPERTY, CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, editable, EDITABLE_PROPERTY, EXPANDS_SELECTED_PATHS_PROPERTY, INVOKES_STOP_CELL_EDITING_PROPERTY, invokesStopCellEditing, LARGE_MODEL_PROPERTY, largeModel, LEAD_SELECTION_PATH_PROPERTY, ROOT_VISIBLE_PROPERTY, rootVisible, ROW_HEIGHT_PROPERTY, rowHeight, SCROLLS_ON_EXPAND_PROPERTY, scrollsOnExpand, SELECTION_MODEL_PROPERTY, selectionModel, selectionRedirector, SHOWS_ROOT_HANDLES_PROPERTY, showsRootHandles, TOGGLE_CLICK_COUNT_PROPERTY, toggleClickCount, TREE_MODEL_PROPERTY, treeModel, treeModelListener, VISIBLE_ROW_COUNT_PROPERTY, visibleRowCount
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface uk.ac.reload.dweezil.DweezilConstants
CR, DEBUG
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ManifestTree(ContentPackageEditor cpEditor, ManifestInfoPanel infoPanel)
          Constructor
 
Method Summary
protected  void checkPopupTrigger(java.awt.event.MouseEvent e)
          Check to see if we have triggered the popup menu.
protected  void clearMenus()
          Clear any popup or other menus
 void destroy()
          Clean up
 void documentSaved(ReloadSchemaDocument doc)
          The ReloadDocument is saved
 void dragGestureRecognized(java.awt.dnd.DragGestureEvent event)
          A drag gesture has been initiated from this tree
 void drop(java.awt.dnd.DropTargetDropEvent event)
          We just Dropped something!
protected  void editMetadata(org.jdom.Element mdElement)
          Edit the Metadata in the Metadata dialog Editor
protected  void editSCORM(org.jdom.Element itemElement, ReloadSchemaElement schemaElement)
          Edit the SCORM Elements in the SCORM dialog Editor
 void elementAdded(ReloadDocumentListenerEvent event)
          An Element was added to the Document so we must add a new Tree node
 void elementChanged(ReloadDocumentListenerEvent event)
          An Element was changed in some way (maybe the text or Attribute) so we inform the Tree Table Model
 void elementRemoved(ReloadDocumentListenerEvent event)
          An Element was removed from the Document so we must find its tree node and remove that from the Tree.
 void focusGained(java.awt.event.FocusEvent e)
          We got the focus
 void focusLost(java.awt.event.FocusEvent e)
          We lost the focus
 int getCorrectDropContext(java.awt.dnd.DropTargetDragEvent event)
          Amendment History
 int getCorrectDropContext(java.awt.dnd.DropTargetDropEvent event)
          Amendment History
protected  int getInsertNodePosition(javax.swing.tree.DefaultMutableTreeNode parentNode, org.jdom.Element element)
           
 boolean isDropOK(java.awt.dnd.DropTargetDragEvent event)
          We are dragging and want to know whether we can drop
 void setContentPackage(ContentPackage cp)
          Set a new Content Package to be displayed
protected  void updateInfoPanel(javax.swing.tree.TreePath selPath)
          Update the Info Panel according to the selected node on the tree.
protected  void updateMenus(javax.swing.tree.TreePath selPath)
          Update the menus according to the selected node on the tree.
 void valueChanged(javax.swing.event.TreeSelectionEvent event)
          A node has been selected on the tree.
 
Methods inherited from class uk.ac.reload.dweezil.gui.tree.ReloadDragTree
autoscroll, dragDropEnd, dragEnter, dragEnter, dragExit, dragExit, dragOver, dragOver, dropActionChanged, dropActionChanged, getAutoscrollInsets, getDragImage, getDragOverTreeNode, getDragSourceTreeNode, hiliteNode
 
Methods inherited from class uk.ac.reload.dweezil.gui.tree.ReloadTree
expandedNodes, expandNode, expandNode, expandTree, getExpandedNodes, getNode, getSelectedNode, isDirtyTree, isRootPath, loadState, scrollNodeToVisible, selectNode, selectNodeByObject, treeCollapsed, treeExpanded, updateNodes, updateSelectedNode, writeState
 
Methods inherited from class javax.swing.JTree
addSelectionInterval, addSelectionPath, addSelectionPaths, addSelectionRow, addSelectionRows, addTreeExpansionListener, addTreeSelectionListener, addTreeWillExpandListener, cancelEditing, clearSelection, clearToggledPaths, collapsePath, collapseRow, convertValueToText, createTreeModel, createTreeModelListener, expandPath, expandRow, fireTreeCollapsed, fireTreeExpanded, fireTreeWillCollapse, fireTreeWillExpand, fireValueChanged, getAccessibleContext, getAnchorSelectionPath, getCellEditor, getCellRenderer, getClosestPathForLocation, getClosestRowForLocation, getDefaultTreeModel, getDescendantToggledPaths, getDragEnabled, getEditingPath, getExpandedDescendants, getExpandsSelectedPaths, getInvokesStopCellEditing, getLastSelectedPathComponent, getLeadSelectionPath, getLeadSelectionRow, getMaxSelectionRow, getMinSelectionRow, getModel, getNextMatch, getPathBetweenRows, getPathBounds, getPathForLocation, getPathForRow, getPreferredScrollableViewportSize, getRowBounds, getRowCount, getRowForLocation, getRowForPath, getRowHeight, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollsOnExpand, getSelectionCount, getSelectionModel, getSelectionPath, getSelectionPaths, getSelectionRows, getShowsRootHandles, getToggleClickCount, getToolTipText, getTreeExpansionListeners, getTreeSelectionListeners, getTreeWillExpandListeners, getUI, getUIClassID, getVisibleRowCount, hasBeenExpanded, isCollapsed, isCollapsed, isEditable, isEditing, isExpanded, isExpanded, isFixedRowHeight, isLargeModel, isPathEditable, isPathSelected, isRootVisible, isRowSelected, isSelectionEmpty, isVisible, makeVisible, paramString, removeDescendantSelectedPaths, removeDescendantToggledPaths, removeSelectionInterval, removeSelectionPath, removeSelectionPaths, removeSelectionRow, removeSelectionRows, removeTreeExpansionListener, removeTreeSelectionListener, removeTreeWillExpandListener, scrollPathToVisible, scrollRowToVisible, setAnchorSelectionPath, setCellEditor, setCellRenderer, setDragEnabled, setEditable, setExpandedState, setExpandsSelectedPaths, setInvokesStopCellEditing, setLargeModel, setLeadSelectionPath, setModel, setRootVisible, setRowHeight, setScrollsOnExpand, setSelectionInterval, setSelectionModel, setSelectionPath, setSelectionPaths, setSelectionRow, setSelectionRows, setShowsRootHandles, setToggleClickCount, setUI, setVisibleRowCount, startEditingAtPath, stopEditing, treeDidChange, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_cpEditor

protected ContentPackageEditor _cpEditor
The Editor


_infoPanel

protected ManifestInfoPanel _infoPanel
The Element Value/Attribute Edit Panel


_treeModel

protected ManifestTreeModel _treeModel
The Tree Model


_popupMenu

protected javax.swing.JPopupMenu _popupMenu
Popup Menu on Right-clicks


_currentTreePath

protected javax.swing.tree.TreePath _currentTreePath
Keeping note of the current selected tree node means we don't have to do unneccesary updating


_schemaController

protected ReloadEditorSchemaController _schemaController
The Schema Controller


_editMenu

protected Menu_Edit _editMenu
The Edit menu which we will use


_deleteHandler

protected uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyDeleteHandler _deleteHandler
The Proxy Delete Handler


_cutHandler

protected uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyCutHandler _cutHandler
The Proxy Cut Handler


_copyHandler

protected uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyCopyHandler _copyHandler
The Proxy Copy Handler


_pasteHandler

protected uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyPasteHandler _pasteHandler
The Proxy Paste Handler


_moveUpHandler

protected uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyMoveUpHandler _moveUpHandler
The Proxy Move Up Handler


_moveDownHandler

protected uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyMoveDownHandler _moveDownHandler
The Proxy Move Down Handler


_launchFileHandler

protected uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyLaunchFileHandler _launchFileHandler
The Proxy View File Handler


_editMetadataHandler

protected uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyEditMetadataHandler _editMetadataHandler
The Proxy Edit Metadata Handler


_editSCORMHandler

protected uk.ac.reload.editor.contentpackaging.manifestview.ManifestTree.ProxyEditSCORMHandler _editSCORMHandler
The Proxy Edit SCORM Handler


_contentPackage

protected ContentPackage _contentPackage
The CP Document

Constructor Detail

ManifestTree

public ManifestTree(ContentPackageEditor cpEditor,
                    ManifestInfoPanel infoPanel)
Constructor

Method Detail

setContentPackage

public void setContentPackage(ContentPackage cp)
Set a new Content Package to be displayed

Parameters:
cp -

focusGained

public void focusGained(java.awt.event.FocusEvent e)
We got the focus

Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
We lost the focus

Specified by:
focusLost in interface java.awt.event.FocusListener

destroy

public void destroy()
Clean up


valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent event)
A node has been selected on the tree.

Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener
Parameters:
event - The TreeSelectionEvent fired from us being a TreeSelectionListener

updateInfoPanel

protected void updateInfoPanel(javax.swing.tree.TreePath selPath)
Update the Info Panel according to the selected node on the tree.

Parameters:
selPath - the path of the selected node on the tree

updateMenus

protected void updateMenus(javax.swing.tree.TreePath selPath)
Update the menus according to the selected node on the tree. This has to be synchronized so different threads don't access it at the same time

Parameters:
selPath - the path of the selected node on the tree

clearMenus

protected void clearMenus()
Clear any popup or other menus


checkPopupTrigger

protected void checkPopupTrigger(java.awt.event.MouseEvent e)
Check to see if we have triggered the popup menu.

Parameters:
e - The MouseEvent that has been triggered.

editMetadata

protected void editMetadata(org.jdom.Element mdElement)
Edit the Metadata in the Metadata dialog Editor


editSCORM

protected void editSCORM(org.jdom.Element itemElement,
                         ReloadSchemaElement schemaElement)
Edit the SCORM Elements in the SCORM dialog Editor


elementAdded

public void elementAdded(ReloadDocumentListenerEvent event)
An Element was added to the Document so we must add a new Tree node

Specified by:
elementAdded in interface ReloadDocumentListener
Parameters:
event - the ReloadDocumentListenerEvent

getInsertNodePosition

protected int getInsertNodePosition(javax.swing.tree.DefaultMutableTreeNode parentNode,
                                    org.jdom.Element element)
Returns:
where to correctly insert the node for an Element. Some nodes might not be visible and therefore the node to Elements count is wrong Return -1 if we shouldn't insert it

elementRemoved

public void elementRemoved(ReloadDocumentListenerEvent event)
An Element was removed from the Document so we must find its tree node and remove that from the Tree.

Specified by:
elementRemoved in interface ReloadDocumentListener
Parameters:
event - the ReloadDocumentListenerEvent

elementChanged

public void elementChanged(ReloadDocumentListenerEvent event)
An Element was changed in some way (maybe the text or Attribute) so we inform the Tree Table Model

Specified by:
elementChanged in interface ReloadDocumentListener
Parameters:
event - the ReloadDocumentListenerEvent

documentSaved

public void documentSaved(ReloadSchemaDocument doc)
Description copied from interface: ReloadDocumentListener
The ReloadDocument is saved

Specified by:
documentSaved in interface ReloadDocumentListener
Parameters:
doc - the ReloadDocument concerned

dragGestureRecognized

public void dragGestureRecognized(java.awt.dnd.DragGestureEvent event)
A drag gesture has been initiated from this tree

Specified by:
dragGestureRecognized in interface java.awt.dnd.DragGestureListener
Overrides:
dragGestureRecognized in class ReloadDragTree
Parameters:
event - the DragGestureEvent

isDropOK

public boolean isDropOK(java.awt.dnd.DropTargetDragEvent event)
We are dragging and want to know whether we can drop

Specified by:
isDropOK in class ReloadDragTree
Parameters:
event - the DropTargetDragEvent
Returns:
true if it is OK to drop here, false otherwise

drop

public void drop(java.awt.dnd.DropTargetDropEvent event)
We just Dropped something!

Specified by:
drop in interface java.awt.dnd.DropTargetListener
Overrides:
drop in class ReloadDragTree
Parameters:
event - the DropTargetDropEvent

getCorrectDropContext

public int getCorrectDropContext(java.awt.dnd.DropTargetDragEvent event)

Amendment History

Due to Mac specific issues, this method has been added to ensure that the correct drop target event is recorded. On MacOS X "event.getDropAction()" does not return 1 for move and 2 for copy as it should do (like it does on PC). This method checks to see if the OS is Mac and then makes sure the correct int value is returned. It ask the superclass method - getCorrectDropContext(event) for this value

Overrides:
getCorrectDropContext in class ReloadDragTree
Parameters:
event - a DropTargetDragEvent
Returns:
int representing the type of action - move or copy

getCorrectDropContext

public int getCorrectDropContext(java.awt.dnd.DropTargetDropEvent event)

Amendment History

Due to Mac specific issues, this method has been added to ensure that the correct drop target event is recorded. On MacOS X "event.getDropAction()" does not return 1 for move and 2 for copy as it should do (like it does on PC). This method checks to see if the OS is Mac and then makes sure the correct int value is returned. It ask the superclass method - getCorrectDropContext(event) for this value

Overrides:
getCorrectDropContext in class ReloadDragTree
Parameters:
event - a DropTargetDropEvent
Returns:
int representing the type of action - move or copy

VdexReload 1.1.3 API