org.nakedobjects.plugins.dnd.viewer.view.field
Class ColorField

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

public class ColorField
extends TextParseableFieldAbstract


Nested Class Summary
static class ColorField.Specification
           
 
Field Summary
 
Fields inherited from class org.nakedobjects.plugins.dnd.viewer.view.field.AbstractField
TEXT_WIDTH
 
Fields inherited from interface org.nakedobjects.plugins.dnd.View
HPADDING, VPADDING
 
Constructor Summary
ColorField(Content content, ViewSpecification specification, ViewAxis axis)
           
 
Method Summary
 void draw(Canvas canvas)
          Called by the frame, or the parent view, when this view must redraw itself.
 void firstClick(Click click)
          Called when the user clicks the mouse buttone within this view.
 int getBaseline()
           
 Size getMaximumSize()
           
protected  void save()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.field.TextParseableFieldAbstract
canChangeValue, cantClear, clear, copyToClipboard, isEmpty, parseEntry, pasteFromClipboard, provideClearCopyPaste, saveValue
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.field.AbstractField
canFocus, contentMenuOptions, drag, dragCancel, dragFrom, dragTo, entered, exited, getIdentified, getPadding, getRoot, hasFocus, indicatesForView, initiateSave, keyPressed, keyReleased, keyTyped, toString, viewAreaType
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
addView, assignId, contains, containsFocus, debug, debugStructure, dispose, drag, dragIn, dragOut, dragStart, drop, drop, editComplete, focusLost, focusReceived, getAbsoluteLocation, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getParent, getRequiredSize, getSize, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, getWorkspace, identify, invalidateContent, invalidateLayout, 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, update, updateView, viewMenuOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorField

public ColorField(Content content,
                  ViewSpecification specification,
                  ViewAxis axis)
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 AbstractField

firstClick

public void firstClick(Click click)
Description copied from interface: View
Called when the user clicks the mouse buttone within this view.

Specified by:
firstClick in interface View
Overrides:
firstClick in class AbstractView
Parameters:
click - the location within the current view where the mouse click took place

getBaseline

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

getMaximumSize

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

save

protected void save()
Specified by:
save in class AbstractField


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