org.nakedobjects.plugins.dnd.viewer.border
Class DroppableLabelBorder

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.border.AbstractViewDecorator
      extended by org.nakedobjects.plugins.dnd.viewer.border.AbstractBorder
          extended by org.nakedobjects.plugins.dnd.viewer.border.LabelBorder
              extended by org.nakedobjects.plugins.dnd.viewer.border.DroppableLabelBorder
All Implemented Interfaces:
java.lang.Cloneable, View

public class DroppableLabelBorder
extends LabelBorder


Field Summary
 
Fields inherited from class org.nakedobjects.plugins.dnd.viewer.border.LabelBorder
DISABLED, MANDATORY, NORMAL
 
Fields inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractBorder
bottom, left, right, top
 
Fields inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractViewDecorator
wrappedView
 
Fields inherited from interface org.nakedobjects.plugins.dnd.View
HPADDING, VPADDING
 
Constructor Summary
DroppableLabelBorder(FieldContent fieldContent, View wrappedView)
           
DroppableLabelBorder(ParameterContent fieldContent, View wrappedView)
           
 
Method Summary
protected  Consent canDrop(Content dropContent)
           
static View createObjectFieldLabelBorder(View wrappedView)
           
static View createObjectParameterLabelBorder(View wrappedView)
           
 void drag(ContentDrag drag)
           
 void dragCancel(InternalDrag drag)
           
 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.
protected  void drop(Content dropContent)
           
 void drop(ContentDrag drag)
          Called as another view's contents (the source) is dropped on this view's contents (the target).
protected  Color textColor()
           
 ViewAreaType viewAreaType(Location location)
          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.border.LabelBorder
createFieldLabelBorder, createValueParameterLabelBorder, debugDetails, draw, getLeft, toString
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractBorder
contentArea, dragFrom, dragStart, drop, exited, firstClick, getBaseline, getBottom, getPadding, getRequiredSize, getRight, getSize, getTop, identify, isOnBorder, mouseDown, mouseMoved, mouseUp, overBorder, overContent, pickupContent, pickupView, secondClick, setBounds, setMaximumSize, setSize, thirdClick
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractViewDecorator
addView, canChangeValue, canFocus, contains, containsFocus, contentMenuOptions, debug, debugStructure, dispose, drag, dragTo, editComplete, entered, focusLost, focusReceived, getAbsoluteLocation, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getMaximumSize, getParent, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, getWorkspace, hasFocus, invalidateContent, invalidateLayout, keyPressed, keyReleased, keyTyped, layout, limitBoundsWithin, markDamaged, markDamaged, objectActionResult, print, refresh, removeView, replaceView, setFocusManager, setLocation, setParent, setView, subviewFor, update, updateView, viewMenuOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DroppableLabelBorder

public DroppableLabelBorder(FieldContent fieldContent,
                            View wrappedView)

DroppableLabelBorder

public DroppableLabelBorder(ParameterContent fieldContent,
                            View wrappedView)
Method Detail

createObjectFieldLabelBorder

public static View createObjectFieldLabelBorder(View wrappedView)

createObjectParameterLabelBorder

public static View createObjectParameterLabelBorder(View wrappedView)

viewAreaType

public ViewAreaType viewAreaType(Location location)
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 AbstractBorder
Returns:
true if the user is targeting the view itself, false if the user is targeting what is being represented

dragCancel

public void dragCancel(InternalDrag drag)
Specified by:
dragCancel in interface View
Overrides:
dragCancel in class AbstractViewDecorator

drag

public void drag(ContentDrag drag)
Specified by:
drag in interface View
Overrides:
drag in class AbstractViewDecorator

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 AbstractBorder

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 AbstractBorder

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 AbstractBorder

canDrop

protected Consent canDrop(Content dropContent)

drop

protected void drop(Content dropContent)

textColor

protected Color textColor()
Overrides:
textColor in class LabelBorder


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