org.nakedobjects.viewer.classic.view
Class DisplayPane

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byorg.nakedobjects.viewer.classic.view.DisplayPane
All Implemented Interfaces:
Display, DragSource, DropDestination, java.awt.image.ImageObserver, java.awt.MenuContainer, MenuOptionTarget, java.io.Serializable, UsesViewer

public class DisplayPane
extends java.awt.Container
implements Display, UsesViewer, DragSource, DropDestination, MenuOptionTarget

See Also:
Serialized Form

Nested Class Summary
 
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
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface org.nakedobjects.viewer.classic.view.Display
DE_IDENTIFIED, DESELECTED, DRAG_FROM, DROP_OK, DROP_VETOED, END_DRAG, END_DROP, IDENTIFIED, SELECTED
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DisplayPane()
           
DisplayPane(ObjectViewer viewer)
           
 
Method Summary
 void cancel(DragDropEvent event)
           
 void copy(DragDropEvent event)
           
 java.lang.String debugDetails()
           
 void doubleClicked(ObjectActionEvent event)
           
 void drag(DragDropEvent event)
           
 void dragEnter(DragDropEvent event)
           
 void dragExit(DragDropEvent event)
           
 void dragging(DragDropEvent event)
           
 void drop(DragDropEvent event)
           
 java.awt.Component getComponent()
           
 java.awt.Insets getInsets()
           
 java.awt.Dimension getMinimumSize()
           
 java.awt.Dimension getPreferredSize()
           
 ObjectViewer getViewer()
           
 java.lang.String idString()
           
 boolean isFocusTraversable()
          Tell system that views are traversable using TAB and Shift-TAB
 void menuOptions(MenuOptionSet menuOptionSet)
          MenuOptions for this component.
 void move(DragDropEvent event)
           
 void paint(java.awt.Graphics g)
           
 void paintContent()
           
 void processMouseEvent(java.awt.event.MouseEvent evt)
           
 void processMouseMotionEvent(java.awt.event.MouseEvent evt)
           
 void refresh()
           
 void showPopup(java.awt.Point at, boolean developerMenu)
           
 java.lang.String targetName()
           
 java.lang.String toString()
           
 void useViewer(ObjectViewer viewer)
           
 void vacantDrop(DragDropEvent event)
           
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.viewer.classic.view.Display
add, add, add, getBounds, getComponents, getLayout, getLocationOnScreen, getParent, getSize, invalidate, isShowing, remove, remove, removeAll, repaint, requestFocus, setCursor, setLayout, setLocation, setSize
 
Methods inherited from interface org.nakedobjects.viewer.classic.event.popup.MenuOptionTarget
add, remove
 

Constructor Detail

DisplayPane

public DisplayPane()

DisplayPane

public DisplayPane(ObjectViewer viewer)
Method Detail

cancel

public void cancel(DragDropEvent event)
Specified by:
cancel in interface DragSource

copy

public void copy(DragDropEvent event)
Specified by:
copy in interface DragSource

debugDetails

public java.lang.String debugDetails()
Specified by:
debugDetails in interface Display

doubleClicked

public void doubleClicked(ObjectActionEvent event)

drag

public void drag(DragDropEvent event)
Specified by:
drag in interface DragSource

dragEnter

public void dragEnter(DragDropEvent event)
Specified by:
dragEnter in interface DropDestination

dragExit

public void dragExit(DragDropEvent event)
Specified by:
dragExit in interface DropDestination

dragging

public void dragging(DragDropEvent event)
Specified by:
dragging in interface DragSource

drop

public void drop(DragDropEvent event)
Specified by:
drop in interface DropDestination

getComponent

public java.awt.Component getComponent()
Specified by:
getComponent in interface DragSource

getInsets

public java.awt.Insets getInsets()
Specified by:
getInsets in interface Display

getMinimumSize

public java.awt.Dimension getMinimumSize()
Specified by:
getMinimumSize in interface Display

getPreferredSize

public java.awt.Dimension getPreferredSize()
Specified by:
getPreferredSize in interface Display

getViewer

public ObjectViewer getViewer()
Specified by:
getViewer in interface Display

idString

public java.lang.String idString()
Specified by:
idString in interface Display

isFocusTraversable

public boolean isFocusTraversable()
Tell system that views are traversable using TAB and Shift-TAB


menuOptions

public void menuOptions(MenuOptionSet menuOptionSet)
MenuOptions for this component.

Specified by:
menuOptions in interface Display

move

public void move(DragDropEvent event)
Specified by:
move in interface DragSource

paint

public void paint(java.awt.Graphics g)

paintContent

public void paintContent()
Specified by:
paintContent in interface Display

processMouseEvent

public void processMouseEvent(java.awt.event.MouseEvent evt)

processMouseMotionEvent

public void processMouseMotionEvent(java.awt.event.MouseEvent evt)

refresh

public void refresh()
Specified by:
refresh in interface Display

showPopup

public void showPopup(java.awt.Point at,
                      boolean developerMenu)
Specified by:
showPopup in interface Display

targetName

public java.lang.String targetName()
Specified by:
targetName in interface MenuOptionTarget

toString

public java.lang.String toString()

useViewer

public void useViewer(ObjectViewer viewer)
Specified by:
useViewer in interface Display

vacantDrop

public void vacantDrop(DragDropEvent event)
Specified by:
vacantDrop in interface DragSource