org.nakedobjects.plugins.dnd.viewer
Class XViewer

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.XViewer
All Implemented Interfaces:
Viewer

public class XViewer
extends java.lang.Object
implements Viewer


Field Summary
protected  ViewUpdateNotifier updateNotifier
           
 
Constructor Summary
XViewer()
           
 
Method Summary
 void addSpyAction(java.lang.String actionMessage)
           
 void addToNotificationList(View view)
           
 void clearAction()
           
 void clearOverlayView()
           
 void clearOverlayView(View view)
           
 void close()
           
 void disposeOverlayView()
           
 void disposeUnneededViews()
           
 View dragFrom(Location location)
           
 Drag dragStart(DragStart start)
           
 void firstClick(Click click)
           
 void forcePaintOfStatusBar()
           
 java.lang.Object getClipboard(java.lang.Class<?> cls)
           
 Bounds getOverlayBounds()
           
 Size getOverlaySize()
           
 View getOverlayView()
           
 InteractionSpy getSpy()
           
 UndoStack getUndoStack()
           
 boolean hasFocus(View view)
           
 View identifyView(Location location, boolean includeOverlay)
           
 void init()
           
 void initSize()
           
 boolean isOverlayAvailable()
           
 boolean isRunningAsExploration()
           
 boolean isShowingMouseSpy()
           
 void makeRootFocus()
           
 void markDamaged(Bounds bounds)
           
 void menuOptions(UserActionSet options)
           
 void mouseDown(Click click)
           
 void mouseMoved(Location location)
           
 void mouseUp(Click click)
           
 void openHelp(View forView)
           
 void paint(java.awt.Graphics graphic)
           
 View pickupContent(Location location)
           
 View pickupView(Location location)
           
 void popupMenu(View over, Location at, boolean forView, boolean includeExploration, boolean includeDebug)
           
 void quit()
           
 void removeFromNotificationList(View view)
           
 void saveCurrentFieldEntry()
           
 void scheduleRepaint()
          Force a repaint of the damaged area of the viewer.
 void secondClick(Click click)
           
 java.lang.String selectFilePath(java.lang.String title, java.lang.String directory)
           
 void setBackground(Background background)
           
 void setClipboard(java.lang.String clip, java.lang.Class<?> class1)
           
 void setExploration(boolean asExploration)
           
 void setFeedbackManager(XFeedbackManager feedbackManager)
           
 void setHelpViewer(HelpViewer helpViewer)
           
 void setKeyboardFocus(View view)
           
 void setListener(ShutdownListener listener)
           
 void setOverlayView(View view)
           
 void setRenderingArea(RenderingArea renderingArea)
           
 void setRootView(View rootView)
           
 void setShowMouseSpy(boolean showDeveloperStatus)
           
 void setUpdateNotifier(ViewUpdateNotifier updateNotifier)
           
 void showDialog(MessageContent content)
           
 void showInOverlay(Content content, Location location)
           
 void showSpy()
           
 void sizeChange()
           
 void thirdClick(Click click)
           
 java.lang.String toString()
           
 void translate(java.awt.event.MouseEvent me)
           
 ViewAreaType viewAreaType(Location location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

updateNotifier

protected ViewUpdateNotifier updateNotifier
Constructor Detail

XViewer

public XViewer()
Method Detail

addSpyAction

public void addSpyAction(java.lang.String actionMessage)

addToNotificationList

public void addToNotificationList(View view)
Specified by:
addToNotificationList in interface Viewer

selectFilePath

public java.lang.String selectFilePath(java.lang.String title,
                                       java.lang.String directory)
Specified by:
selectFilePath in interface Viewer

setKeyboardFocus

public void setKeyboardFocus(View view)
Specified by:
setKeyboardFocus in interface Viewer

clearOverlayView

public void clearOverlayView()
Specified by:
clearOverlayView in interface Viewer

clearOverlayView

public void clearOverlayView(View view)
Specified by:
clearOverlayView in interface Viewer

quit

public void quit()

disposeOverlayView

public void disposeOverlayView()

disposeUnneededViews

public void disposeUnneededViews()
Specified by:
disposeUnneededViews in interface Viewer

dragFrom

public View dragFrom(Location location)

dragStart

public Drag dragStart(DragStart start)

firstClick

public void firstClick(Click click)

getOverlayBounds

public Bounds getOverlayBounds()

getOverlayView

public View getOverlayView()

getSpy

public InteractionSpy getSpy()
Specified by:
getSpy in interface Viewer

getUndoStack

public UndoStack getUndoStack()
Specified by:
getUndoStack in interface Viewer

hasFocus

public boolean hasFocus(View view)
Specified by:
hasFocus in interface Viewer

identifyView

public View identifyView(Location location,
                         boolean includeOverlay)

init

public void init()

isRunningAsExploration

public boolean isRunningAsExploration()
Specified by:
isRunningAsExploration in interface Viewer

isShowingMouseSpy

public boolean isShowingMouseSpy()

markDamaged

public void markDamaged(Bounds bounds)
Specified by:
markDamaged in interface Viewer

menuOptions

public void menuOptions(UserActionSet options)

mouseDown

public void mouseDown(Click click)

mouseMoved

public void mouseMoved(Location location)

mouseUp

public void mouseUp(Click click)

paint

public void paint(java.awt.Graphics graphic)

pickupContent

public View pickupContent(Location location)

pickupView

public View pickupView(Location location)

popupMenu

public void popupMenu(View over,
                      Location at,
                      boolean forView,
                      boolean includeExploration,
                      boolean includeDebug)

removeFromNotificationList

public void removeFromNotificationList(View view)
Specified by:
removeFromNotificationList in interface Viewer

scheduleRepaint

public void scheduleRepaint()
Force a repaint of the damaged area of the viewer.

Specified by:
scheduleRepaint in interface Viewer

saveCurrentFieldEntry

public void saveCurrentFieldEntry()
Specified by:
saveCurrentFieldEntry in interface Viewer

secondClick

public void secondClick(Click click)

setBackground

public void setBackground(Background background)
Specified by:
setBackground in interface Viewer

setExploration

public void setExploration(boolean asExploration)

setListener

public void setListener(ShutdownListener listener)

setOverlayView

public void setOverlayView(View view)
Specified by:
setOverlayView in interface Viewer

getOverlaySize

public Size getOverlaySize()
Specified by:
getOverlaySize in interface Viewer

showInOverlay

public void showInOverlay(Content content,
                          Location location)
Specified by:
showInOverlay in interface Viewer

setRenderingArea

public void setRenderingArea(RenderingArea renderingArea)

setRootView

public void setRootView(View rootView)

setHelpViewer

public void setHelpViewer(HelpViewer helpViewer)

setShowMouseSpy

public void setShowMouseSpy(boolean showDeveloperStatus)

setUpdateNotifier

public void setUpdateNotifier(ViewUpdateNotifier updateNotifier)

showSpy

public void showSpy()

sizeChange

public void sizeChange()

initSize

public void initSize()

thirdClick

public void thirdClick(Click click)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

translate

public void translate(java.awt.event.MouseEvent me)

viewAreaType

public ViewAreaType viewAreaType(Location location)

isOverlayAvailable

public boolean isOverlayAvailable()

makeRootFocus

public void makeRootFocus()

openHelp

public void openHelp(View forView)

getClipboard

public java.lang.Object getClipboard(java.lang.Class<?> cls)
Specified by:
getClipboard in interface Viewer

setClipboard

public void setClipboard(java.lang.String clip,
                         java.lang.Class<?> class1)
Specified by:
setClipboard in interface Viewer

forcePaintOfStatusBar

public void forcePaintOfStatusBar()

showDialog

public void showDialog(MessageContent content)

clearAction

public void clearAction()
Specified by:
clearAction in interface Viewer

setFeedbackManager

public void setFeedbackManager(XFeedbackManager feedbackManager)

close

public void close()


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.