public class ViewTree extends AbstractView implements javax.swing.event.TreeSelectionListener, javax.swing.event.CellEditorListener, java.awt.dnd.DropTargetListener
Modifier and Type | Class and Description |
---|---|
class |
ViewTree.MultiSelectionPanelDisplayer |
(package private) class |
ViewTree.PathSelector |
class |
ViewTree.RightPaneObjectLoader |
(package private) class |
ViewTree.TreeKeyAdapter
Allows the tree to receive key events.
|
(package private) class |
ViewTree.TreeMouseAdapter
Allows the tree to receive mouse events.
|
(package private) class |
ViewTree.TreeMouseMotionAdapter
Allows the tree to receive mouse motion events.
|
(package private) class |
ViewTree.TreeTransferHandler |
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
Constructor and Description |
---|
ViewTree()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dtde) |
void |
dragExit(java.awt.dnd.DropTargetDragEvent dtde) |
void |
dragExit(java.awt.dnd.DropTargetEvent dtde) |
void |
dragOver(java.awt.dnd.DropTargetDragEvent dtde) |
void |
drop(java.awt.dnd.DropTargetDropEvent dtde) |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde) |
void |
editingCanceled(javax.swing.event.ChangeEvent event)
Indicates that the user canceled editing a node.
|
void |
editingStopped(javax.swing.event.ChangeEvent event)
Indicates that the user stopped editing a node.
|
java.awt.Component |
getRenderer()
Returns the component this view is rendered on, in the event that it needs to be referenced by an external source.
|
void |
handleAppEvent(AppEvent ape)
Allows the class to handle AppEvents.
|
void |
init()
Initializes the class.
|
void |
loadObjectInRightPane(java.lang.Object object)
Causes an object to be loaded in the right-hand pane.
|
void |
updateNameOnGUI(java.lang.Object object)
Causes the name of the given object to be updated in the GUI if the object is the one currently loaded.
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent event)
Handles nodes being selected on the tree.
|
getController, setController
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
public void init()
public void updateNameOnGUI(java.lang.Object object)
public void loadObjectInRightPane(java.lang.Object object)
public void valueChanged(javax.swing.event.TreeSelectionEvent event)
valueChanged
in interface javax.swing.event.TreeSelectionListener
event
- The event that occurred.public void editingCanceled(javax.swing.event.ChangeEvent event)
editingCanceled
in interface javax.swing.event.CellEditorListener
public void editingStopped(javax.swing.event.ChangeEvent event)
editingStopped
in interface javax.swing.event.CellEditorListener
public void handleAppEvent(AppEvent ape)
handleAppEvent
in class AbstractView
ape
- An AppEvent
.public java.awt.Component getRenderer()
getRenderer
in class AbstractView
public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
dragEnter
in interface java.awt.dnd.DropTargetListener
public void dragExit(java.awt.dnd.DropTargetDragEvent dtde)
public void dragExit(java.awt.dnd.DropTargetEvent dtde)
dragExit
in interface java.awt.dnd.DropTargetListener
public void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
dragOver
in interface java.awt.dnd.DropTargetListener
public void drop(java.awt.dnd.DropTargetDropEvent dtde)
drop
in interface java.awt.dnd.DropTargetListener
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
dropActionChanged
in interface java.awt.dnd.DropTargetListener