org.nakedobjects.plugins.dnd.viewer.view.simple
Class ObjectView

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
      extended by org.nakedobjects.plugins.dnd.viewer.view.simple.ObjectView
All Implemented Interfaces:
java.lang.Cloneable, View
Direct Known Subclasses:
AbstractCompositeView, FallbackView, Icon

public abstract class ObjectView
extends AbstractView


Field Summary
 
Fields inherited from interface org.nakedobjects.plugins.dnd.View
HPADDING, VPADDING
 
Constructor Summary
ObjectView(Content content, ViewSpecification specification, ViewAxis axis)
           
 
Method Summary
 void contentMenuOptions(UserActionSet options)
          Called when the popup menu is being populated for this view.
 void dragIn(ContentDrag drag)
          Called as the content being dragged is dragged into this view.
 void dragOut(ContentDrag drag)
          Called as the content being dragged is dragged out of this view.
 Drag dragStart(DragStart drag)
           
 void drop(ContentDrag drag)
          Called when a dragged object is dropped onto this view.
 void firstClick(Click click)
          Called when the user clicks the mouse buttone within this view.
 void invalidateContent()
          Flags that the views do not properly represent the content, and hence it needs rebuilding.
 void secondClick(Click click)
          Called when the user double-clicked this view.
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
addView, assignId, canChangeValue, canFocus, contains, containsFocus, debug, debugStructure, dispose, drag, drag, dragCancel, dragFrom, dragTo, draw, drop, editComplete, entered, exited, focusLost, focusReceived, getAbsoluteLocation, getBaseline, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getMaximumSize, getPadding, getParent, getRequiredSize, getSize, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, getWorkspace, hasFocus, identify, invalidateLayout, keyPressed, keyReleased, keyTyped, layout, limitBoundsWithin, limitBoundsWithin, markDamaged, markDamaged, mouseDown, mouseMoved, mouseUp, objectActionResult, pickupContent, pickupView, print, refresh, removeView, replaceOptions, replaceView, setBounds, setContent, setFocusManager, setLocation, setMaximumSize, setParent, setSize, setSpecification, setView, setViewAxis, subviewFor, thirdClick, toString, update, updateView, viewAreaType, viewMenuOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectView

public ObjectView(Content content,
                  ViewSpecification specification,
                  ViewAxis axis)
Method Detail

dragIn

public void dragIn(ContentDrag drag)
Description copied from interface: View
Called as the content being dragged is dragged into this view. This only occurs when view contents are being dragged, and not when views themselves are being dragged.

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

dragOut

public void dragOut(ContentDrag drag)
Description copied from interface: View
Called as the content being dragged is dragged out of this view. This only occurs when view contents are being dragged, and not when views themselves are being dragged.

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

dragStart

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

drop

public void drop(ContentDrag drag)
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 AbstractView

firstClick

public void firstClick(Click click)
Description copied from interface: View
Called when the user clicks the mouse buttone within this view.

Specified by:
firstClick in interface View
Overrides:
firstClick in class AbstractView
Parameters:
click - the location within the current view where the mouse click took place

invalidateContent

public void invalidateContent()
Description copied from interface: View
Flags that the views do not properly represent the content, and hence it needs rebuilding. Contrast this with invalidateLayout(), which deals with an a complete view, but one that is not showing properly.

Specified by:
invalidateContent in interface View
Overrides:
invalidateContent in class AbstractView
See Also:
View.invalidateLayout()

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 AbstractView

contentMenuOptions

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

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


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