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

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
      extended by org.nakedobjects.plugins.dnd.viewer.view.simple.FieldErrorView
All Implemented Interfaces:
java.lang.Cloneable, View

public class FieldErrorView
extends AbstractView

Displays an error message in place of a normal field when a problem occurs, usually due to a programming error, and the normal field cannot be created. A example of this is where value field is declared in a naked object, but the programmer forgot to instantiate the value object, causing null to be returned instead, which is an illegal value.


Nested Class Summary
static class FieldErrorView.Specification
           
 
Field Summary
 
Fields inherited from interface org.nakedobjects.plugins.dnd.View
HPADDING, VPADDING
 
Constructor Summary
FieldErrorView(java.lang.String errorMessage)
           
 
Method Summary
 void draw(Canvas canvas)
          Called by the frame, or the parent view, when this view must redraw itself.
 int getBaseline()
           
 Size getMaximumSize()
           
 ViewAreaType viewAreaType(Location mouseLocation)
          Determines if the user is invoking an action relating to this view, rather than to whatever this view represents.
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
addView, assignId, canChangeValue, canFocus, contains, containsFocus, contentMenuOptions, debug, debugStructure, dispose, drag, drag, dragCancel, dragFrom, dragIn, dragOut, dragStart, dragTo, drop, drop, editComplete, entered, exited, firstClick, focusLost, focusReceived, getAbsoluteLocation, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getPadding, getParent, getRequiredSize, getSize, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, getWorkspace, hasFocus, identify, invalidateContent, invalidateLayout, keyPressed, keyReleased, keyTyped, layout, limitBoundsWithin, limitBoundsWithin, markDamaged, markDamaged, mouseDown, mouseMoved, mouseUp, objectActionResult, pickupContent, pickupView, print, refresh, removeView, replaceOptions, replaceView, secondClick, setBounds, setContent, setFocusManager, setLocation, setMaximumSize, setParent, setSize, setSpecification, setView, setViewAxis, subviewFor, thirdClick, toString, update, updateView, viewMenuOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldErrorView

public FieldErrorView(java.lang.String errorMessage)
Method Detail

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 AbstractView

getBaseline

public int getBaseline()
Specified by:
getBaseline in interface View
Overrides:
getBaseline in class AbstractView

getMaximumSize

public Size getMaximumSize()
Specified by:
getMaximumSize in interface View
Overrides:
getMaximumSize in class AbstractView

viewAreaType

public ViewAreaType viewAreaType(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:
viewAreaType in interface View
Overrides:
viewAreaType in class AbstractView
Returns:
true if the user is targeting the view itself, false if the user is targeting what is being represented


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