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

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
All Implemented Interfaces:
java.lang.Cloneable, View
Direct Known Subclasses:
DroppableLabelBorder

public class LabelBorder
extends AbstractBorder


Field Summary
static int DISABLED
           
static int MANDATORY
           
static int 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
protected LabelBorder(FieldContent fieldContent, View wrappedView)
           
protected LabelBorder(ParameterContent fieldContent, View wrappedView)
           
 
Method Summary
static View createFieldLabelBorder(View wrappedView)
           
static View createValueParameterLabelBorder(View wrappedView)
           
 void debugDetails(DebugString debug)
           
 void draw(Canvas canvas)
          Called by the frame, or the parent view, when this view must redraw itself.
protected  int getLeft()
           
protected  Color textColor()
           
 java.lang.String toString()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractBorder
contentArea, dragFrom, dragIn, dragOut, dragStart, drop, drop, exited, firstClick, getBaseline, getBottom, getPadding, getRequiredSize, getRight, getSize, getTop, identify, isOnBorder, mouseDown, mouseMoved, mouseUp, overBorder, overContent, pickupContent, pickupView, secondClick, setBounds, setMaximumSize, setSize, thirdClick, viewAreaType
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractViewDecorator
addView, canChangeValue, canFocus, contains, containsFocus, contentMenuOptions, debug, debugStructure, dispose, drag, drag, dragCancel, 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
 

Field Detail

NORMAL

public static final int NORMAL
See Also:
Constant Field Values

DISABLED

public static final int DISABLED
See Also:
Constant Field Values

MANDATORY

public static final int MANDATORY
See Also:
Constant Field Values
Constructor Detail

LabelBorder

protected LabelBorder(FieldContent fieldContent,
                      View wrappedView)

LabelBorder

protected LabelBorder(ParameterContent fieldContent,
                      View wrappedView)
Method Detail

createFieldLabelBorder

public static View createFieldLabelBorder(View wrappedView)

createValueParameterLabelBorder

public static View createValueParameterLabelBorder(View wrappedView)

getLeft

protected int getLeft()
Overrides:
getLeft in class AbstractBorder

debugDetails

public void debugDetails(DebugString debug)
Overrides:
debugDetails in class AbstractBorder

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 AbstractBorder

textColor

protected Color textColor()

toString

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


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