org.nakedobjects.viewer.classic.view
Class DisplayFrame

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

public class DisplayFrame
extends java.awt.Frame
implements Display, UsesViewer, DragSource, DropDestination, MenuOptionTarget

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
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
DisplayFrame()
           
DisplayFrame(ObjectViewer viewer)
           
DisplayFrame(ObjectViewer viewer, boolean resizable)
           
 
Method Summary
 void cancel(DragDropEvent event)
           
 void copy(DragDropEvent event)
           
 java.lang.String debugDetails()
           
 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()
           
 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 setBorder(int width)
           
 void showPopup(java.awt.Point at, boolean developerMenu)
           
 java.lang.String targetName()
           
 java.lang.String toString()
           
 void update(java.awt.Graphics g)
           
 void useViewer(ObjectViewer viewer)
           
 void vacantDrop(DragDropEvent event)
           
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getLayout, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseWheelEvent, 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, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, 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
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Constructor Detail

DisplayFrame

public DisplayFrame()

DisplayFrame

public DisplayFrame(ObjectViewer viewer)

DisplayFrame

public DisplayFrame(ObjectViewer viewer,
                    boolean resizable)
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

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

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

setBorder

public void setBorder(int width)

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()

update

public void update(java.awt.Graphics g)

useViewer

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

vacantDrop

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