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

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

public class EmptyField
extends AbstractView


Nested Class Summary
static class EmptyField.Specification
           
 
Field Summary
 
Fields inherited from interface org.nakedobjects.plugins.dnd.View
HPADDING, VPADDING
 
Constructor Summary
EmptyField(Content content, ViewSpecification specification, ViewAxis axis, Text style)
           
 
Method Summary
 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.
 void draw(Canvas canvas)
          Called by the frame, or the parent view, when this view must redraw itself.
 void drop(ContentDrag drag)
          Called as another view's contents (the source) is dropped on this view's contents (the target).
 int getBaseline()
           
 Size getMaximumSize()
           
 void objectActionResult(NakedObject result, Location at)
          Objects returned by menus are used to set this field before passing the call on to the parent.
 java.lang.String toString()
           
 
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, dragStart, dragTo, 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, pickupContent, pickupView, print, refresh, removeView, replaceOptions, replaceView, secondClick, setBounds, setContent, setFocusManager, setLocation, setMaximumSize, setParent, setSize, setSpecification, setView, setViewAxis, subviewFor, thirdClick, update, updateView, viewAreaType, viewMenuOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmptyField

public EmptyField(Content content,
                  ViewSpecification specification,
                  ViewAxis axis,
                  Text style)
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

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

drop

public void drop(ContentDrag drag)
Description copied from interface: View
Called as another view's contents (the source) is dropped on this view's contents (the target). The source view can be obtained from the ViewDrag object.

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

objectActionResult

public void objectActionResult(NakedObject result,
                               Location at)
Objects returned by menus are used to set this field before passing the call on to the parent.

Specified by:
objectActionResult in interface View
Overrides:
objectActionResult in class AbstractView
at - the location where the action took place

toString

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


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