org.nakedobjects.viewer.lightweight
Interface ObjectView

All Superinterfaces:
java.lang.Cloneable, View
All Known Subinterfaces:
CompositeView
All Known Implementing Classes:
AbstractCompositeView, AbstractObjectView

public interface ObjectView
extends View


Method Summary
 void clearRootViewIdentified()
           
 void collectionAddUpdate(NakedCollection collection, NakedObject element)
           
 void collectionRemoveUpdate(NakedCollection collection, NakedObject element)
           
 void dropView(ViewDrag drag)
           
 NakedObject getObject()
           
 ObjectViewState getState()
           
 boolean isRoot()
           
 java.lang.String objectInfo()
          The information about this object to be displayed on the status bar.
 boolean objectLocatedAt(Location mouseLocation)
           
 void objectMenuOptions(MenuOptionSet options)
           
 void objectUpdate(NakedObject object)
           
 DragView pickupObject(ObjectDrag drag)
          Returns the view that logically contains this view, i.e., for the associated object.
 DragView pickupView(ViewDrag drag)
           
 void removeViewsFor(NakedObject object, java.util.Vector toRemove)
          Called when this view is dropped onto the workspace.
 void setRootViewIdentified()
           
 ObjectView topView()
           
 void viewMenuOptions(MenuOptionSet options)
           
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.View
calculateRepaintArea, contains, debugDetails, dispose, draw, entered, enteredSubview, exited, exitedSubview, firstClick, getAbsoluteLocation, getBaseline, getBorder, getBounds, getId, getLocation, getName, getPadding, getParent, getRequiredSize, getSize, getWorkspace, identifyView, indicatesForView, invalidateLayout, isLayoutInvalid, isOpen, isReplaceable, layout, makeView, menuOptions, mouseMoved, print, redraw, secondClick, setBorder, setBounds, setLocation, setSize, thirdClick, validateLayout
 

Method Detail

getObject

public NakedObject getObject()

isRoot

public boolean isRoot()

setRootViewIdentified

public void setRootViewIdentified()

getState

public ObjectViewState getState()

clearRootViewIdentified

public void clearRootViewIdentified()

collectionAddUpdate

public void collectionAddUpdate(NakedCollection collection,
                                NakedObject element)

collectionRemoveUpdate

public void collectionRemoveUpdate(NakedCollection collection,
                                   NakedObject element)

dropView

public void dropView(ViewDrag drag)

objectInfo

public java.lang.String objectInfo()
The information about this object to be displayed on the status bar.


objectLocatedAt

public boolean objectLocatedAt(Location mouseLocation)

objectMenuOptions

public void objectMenuOptions(MenuOptionSet options)

objectUpdate

public void objectUpdate(NakedObject object)

pickupObject

public DragView pickupObject(ObjectDrag drag)
Returns the view that logically contains this view, i.e., for the associated object. If this view is for a one to one to one association, then the view will be the view up one level in the view tree. However, if this view is for a one to many association, then the view will be view, not of the internal collection, but of the parent of the collection, i.e. up two levels.


pickupView

public DragView pickupView(ViewDrag drag)

removeViewsFor

public void removeViewsFor(NakedObject object,
                           java.util.Vector toRemove)
Called when this view is dropped onto the workspace. The default behaviour implemented here creates a new Form view for the object in this view. This view is then removed from the workspace and the new form view is added, effectively replacing it.


topView

public ObjectView topView()

viewMenuOptions

public void viewMenuOptions(MenuOptionSet options)