org.nakedobjects.plugins.dnd.viewer.basic
Class ApplicationWorkspace

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
      extended by org.nakedobjects.plugins.dnd.viewer.view.simple.ObjectView
          extended by org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractCompositeView
              extended by org.nakedobjects.plugins.dnd.viewer.view.simple.CompositeViewUsingBuilder
                  extended by org.nakedobjects.plugins.dnd.viewer.basic.ApplicationWorkspace
All Implemented Interfaces:
java.lang.Cloneable, View, Workspace

public final class ApplicationWorkspace
extends CompositeViewUsingBuilder
implements Workspace


Field Summary
protected  java.util.Vector<View> iconViews
           
protected  java.util.Vector<View> serviceViews
           
 
Fields inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractCompositeView
views
 
Fields inherited from interface org.nakedobjects.plugins.dnd.View
HPADDING, VPADDING
 
Constructor Summary
ApplicationWorkspace(Content content, CompositeViewSpecification specification, ViewAxis axis)
           
 
Method Summary
 void addDialog(View dialogContent)
           
 View addIconFor(NakedObject object, Location at)
           
 void addServiceIconFor(NakedObject service)
           
 void addView(View view)
           
 void addWindow(View containedView)
           
 View addWindowFor(NakedObject object, Location at)
           
 void clearServiceViews()
           
 View createSubviewFor(NakedObject object, boolean asIcon)
           
 Drag dragStart(DragStart drag)
           
 void drop(ContentDrag drag)
          Called when a dragged object is dropped onto this view.
 void drop(ViewDrag drag)
          No default behaviour, views can only be dropped on workspace
 void entered()
          Called as the mouse crosses the bounds, and ends up inside, of this view.
protected  View[] getObjectIconViews()
           
 Padding getPadding()
           
protected  View[] getServiceIconViews()
           
protected  View[] getWindowViews()
           
 Workspace getWorkspace()
           
 void lower(View view)
          Lower the specified view so it is below all the other views.
 void raise(View view)
          Raise the specified view so it is above all the other views.
 void removeView(View view)
          Removes the specifed view from the subviews contained by this view.
 void removeViewsFor(NakedObject object)
          Close all views for the specified object.
 void replaceView(View toReplace, View replacement)
           
 void secondClick(Click click)
          Called when the user double-clicked this view.
protected  View[] subviews()
           
 java.lang.String toString()
           
 void viewMenuOptions(UserActionSet options)
          Called when the popup menu is being populated for this view.
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.CompositeViewUsingBuilder
buildView, debugStructure, doLayout, getMaximumSize
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractCompositeView
add, canDragView, debug, dispose, draw, getBaseline, getFocusManager, getSubviews, invalidateContent, invalidateLayout, isLayoutInvalid, layout, pickupView, refresh, setCanDragView, setFocusManager, subviewFor, update, viewAreaType
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.ObjectView
contentMenuOptions, dragIn, dragOut, firstClick
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
assignId, canChangeValue, canFocus, contains, containsFocus, drag, drag, dragCancel, dragFrom, dragTo, editComplete, exited, focusLost, focusReceived, getAbsoluteLocation, getBounds, getContent, getFeedbackManager, getId, getLocation, getParent, getRequiredSize, getSize, getSpecification, getState, getView, getViewAxis, getViewManager, hasFocus, identify, keyPressed, keyReleased, keyTyped, limitBoundsWithin, limitBoundsWithin, markDamaged, markDamaged, mouseDown, mouseMoved, mouseUp, objectActionResult, pickupContent, print, replaceOptions, setBounds, setContent, setLocation, setMaximumSize, setParent, setSize, setSpecification, setView, setViewAxis, thirdClick, updateView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.plugins.dnd.View
canChangeValue, canFocus, contains, containsFocus, contentMenuOptions, debug, debugStructure, dispose, drag, drag, dragCancel, dragFrom, dragIn, dragOut, dragTo, draw, editComplete, exited, firstClick, focusLost, focusReceived, getAbsoluteLocation, getBaseline, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getMaximumSize, getParent, getRequiredSize, getSize, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, hasFocus, identify, invalidateContent, invalidateLayout, keyPressed, keyReleased, keyTyped, layout, limitBoundsWithin, markDamaged, markDamaged, mouseDown, mouseMoved, mouseUp, objectActionResult, pickupContent, pickupView, print, refresh, setBounds, setFocusManager, setLocation, setMaximumSize, setParent, setSize, setView, subviewFor, thirdClick, update, updateView, viewAreaType
 

Field Detail

serviceViews

protected java.util.Vector<View> serviceViews

iconViews

protected java.util.Vector<View> iconViews
Constructor Detail

ApplicationWorkspace

public ApplicationWorkspace(Content content,
                            CompositeViewSpecification specification,
                            ViewAxis axis)
Method Detail

addDialog

public void addDialog(View dialogContent)
Specified by:
addDialog in interface Workspace

addWindow

public void addWindow(View containedView)
Specified by:
addWindow in interface Workspace

addView

public void addView(View view)
Specified by:
addView in interface View
Overrides:
addView in class AbstractCompositeView

replaceView

public void replaceView(View toReplace,
                        View replacement)
Specified by:
replaceView in interface View
Overrides:
replaceView in class AbstractCompositeView

addWindowFor

public View addWindowFor(NakedObject object,
                         Location at)
Specified by:
addWindowFor in interface Workspace

addIconFor

public View addIconFor(NakedObject object,
                       Location at)
Specified by:
addIconFor in interface Workspace

addServiceIconFor

public void addServiceIconFor(NakedObject service)

dragStart

public Drag dragStart(DragStart drag)
Specified by:
dragStart in interface View
Overrides:
dragStart in class ObjectView

drop

public void drop(ContentDrag drag)
Description copied from class: ObjectView
Called when a dragged object is dropped onto this view. The default behaviour implemented here calls the action method on the target, passing the source object in as the only parameter.

Specified by:
drop in interface View
Overrides:
drop in class ObjectView

entered

public void entered()
Description copied from interface: View
Called as the mouse crosses the bounds, and ends up inside, of this view. Is also called as the mouse returns into this view from a contained view.

Specified by:
entered in interface View
Overrides:
entered in class AbstractView

createSubviewFor

public View createSubviewFor(NakedObject object,
                             boolean asIcon)
Specified by:
createSubviewFor in interface Workspace

drop

public void drop(ViewDrag drag)
Description copied from class: AbstractView
No default behaviour, views can only be dropped on workspace

Specified by:
drop in interface View
Overrides:
drop in class AbstractView

getPadding

public Padding getPadding()
Specified by:
getPadding in interface View
Overrides:
getPadding in class AbstractView

getWorkspace

public Workspace getWorkspace()
Specified by:
getWorkspace in interface View
Overrides:
getWorkspace in class AbstractView

lower

public void lower(View view)
Description copied from interface: Workspace
Lower the specified view so it is below all the other views.

Specified by:
lower in interface Workspace

raise

public void raise(View view)
Description copied from interface: Workspace
Raise the specified view so it is above all the other views.

Specified by:
raise in interface Workspace

removeView

public void removeView(View view)
Description copied from interface: View
Removes the specifed view from the subviews contained by this view.

Specified by:
removeView in interface View
Overrides:
removeView in class AbstractCompositeView

removeViewsFor

public void removeViewsFor(NakedObject object)
Description copied from interface: Workspace
Close all views for the specified object.

Specified by:
removeViewsFor in interface Workspace

secondClick

public void secondClick(Click click)
Description copied from interface: View
Called when the user double-clicked this view. This method will have been preceded by a call to click.

Specified by:
secondClick in interface View
Overrides:
secondClick in class ObjectView

toString

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

viewMenuOptions

public void viewMenuOptions(UserActionSet options)
Description copied from interface: View
Called when the popup menu is being populated for this view. Any view options that need to appear on the menu should be added to the menuOptions object.

Specified by:
viewMenuOptions in interface View
Overrides:
viewMenuOptions in class AbstractView

subviews

protected View[] subviews()
Overrides:
subviews in class AbstractCompositeView

clearServiceViews

public void clearServiceViews()

getWindowViews

protected View[] getWindowViews()

getServiceIconViews

protected View[] getServiceIconViews()

getObjectIconViews

protected View[] getObjectIconViews()


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