org.nakedobjects.viewer.lightweight
Class FallbackView

java.lang.Object
  extended byorg.nakedobjects.viewer.lightweight.AbstractView
      extended byorg.nakedobjects.viewer.lightweight.AbstractObjectView
          extended byorg.nakedobjects.viewer.lightweight.ObjectIconView
              extended byorg.nakedobjects.viewer.lightweight.FallbackView
All Implemented Interfaces:
java.lang.Cloneable, DesktopView, DragSource, DragTarget, DragView, InternalView, ObjectView, RootView, View

public class FallbackView
extends ObjectIconView
implements DesktopView, RootView, InternalView, DragSource, DragView, DragTarget

Used when no specific view found to indicate that a viewer needs to be added. Provides no access the object attributes.


Field Summary
protected static int VIEW_CONTROL_WIDTH
           
 
Fields inherited from class org.nakedobjects.viewer.lightweight.AbstractObjectView
LOG
 
Fields inherited from class org.nakedobjects.viewer.lightweight.AbstractView
DEBUG, DRAG_HANDLE_WIDTH, HPADDING, ICON_SIZE, VPADDING
 
Fields inherited from interface org.nakedobjects.viewer.lightweight.InternalView
FIELD, NORMAL
 
Constructor Summary
FallbackView()
           
 
Method Summary
 void draw(Canvas canvas)
          Called by the frame, or the parent view, when this view must redraw itself.
 Size getRequiredSize()
           
protected  Style.Text getTitleTextStyle()
          Defines the text style that should be used when rendering the title.
 boolean indicatesForView(Location mouseLocation)
          Determines if the user is invoking an action relating to this view, rather than to whatever this view represents.
 boolean isOpen()
          Returns true to show that this view is an icon.
 void objectMenuOptions(MenuOptionSet options)
           
 
Methods inherited from class org.nakedobjects.viewer.lightweight.ObjectIconView
defaultName, getBaseline, getStyle, includeIcon, includeTitle, objectLocatedAt, size, titleIconBounds, titleSize, titleTextBounds
 
Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractObjectView
backgroundColor, clearRootViewIdentified, clone, collectionAddUpdate, collectionRemoveUpdate, createIconImage, debugDetails, dispose, dragCancel, dragging, dragObjectIn, dragObjectOut, dropObject, dropView, entered, enteredSubview, exited, exitedSubview, firstClick, getFieldOf, getObject, getRoot, getState, init, isIdentified, isRoot, makeView, menuOptions, mouseMoved, objectInfo, objectUpdate, parentObjectView, pickupObject, pickupView, removeViewsFor, secondClick, setRootViewIdentified, topView, toString, transparentBackground, viewMenuOptions
 
Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractView
addControl, assignId, calculateRepaintArea, contains, createCanvas, defaultFieldHeight, getAbsoluteLocation, getBorder, getBounds, getId, getLocation, getName, getPadding, getParent, getSize, getWorkspace, identifyView, invalidateLayout, isLayoutInvalid, isReplaceable, layout, limitBounds, print, redraw, removeControl, repaintAll, setBorder, setBounds, setLayoutValid, setLocation, setParent, setSize, setWorkspace, thirdClick, validateLayout
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.View
calculateRepaintArea, contains, debugDetails, dispose, entered, enteredSubview, exited, exitedSubview, firstClick, getAbsoluteLocation, getBaseline, getBorder, getBounds, getId, getLocation, getName, getPadding, getParent, getSize, getWorkspace, identifyView, invalidateLayout, isLayoutInvalid, isReplaceable, layout, makeView, menuOptions, mouseMoved, print, redraw, secondClick, setBorder, setBounds, setLocation, setSize, thirdClick, validateLayout
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.InternalView
getFieldOf, getRoot, parentObjectView, setParent
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.DragSource
dropView, pickupObject, pickupView
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.DragView
dragCancel, dragging
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.DragTarget
dragObjectIn, dragObjectOut, dropObject
 

Field Detail

VIEW_CONTROL_WIDTH

protected static final int VIEW_CONTROL_WIDTH
See Also:
Constant Field Values
Constructor Detail

FallbackView

public FallbackView()
Method Detail

isOpen

public boolean isOpen()
Returns true to show that this view is an icon.

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

getRequiredSize

public Size getRequiredSize()
Specified by:
getRequiredSize in interface View
Overrides:
getRequiredSize in class AbstractObjectView

draw

public void draw(Canvas canvas)
Description copied from interface: View
Called by the frame, or the parent view, when this view must redraw itself.

Specified by:
draw in interface View
Overrides:
draw in class ObjectIconView

indicatesForView

public boolean indicatesForView(Location mouseLocation)
Description copied from interface: View
Determines if the user is invoking an action relating to this view, rather than to whatever this view represents.

Specified by:
indicatesForView in interface View
Overrides:
indicatesForView in class ObjectIconView

objectMenuOptions

public void objectMenuOptions(MenuOptionSet options)
Specified by:
objectMenuOptions in interface ObjectView
Overrides:
objectMenuOptions in class AbstractObjectView

getTitleTextStyle

protected Style.Text getTitleTextStyle()
Description copied from class: ObjectIconView
Defines the text style that should be used when rendering the title. By default returns the 'normal' text style.

Overrides:
getTitleTextStyle in class ObjectIconView