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

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.CheckboxField
All Implemented Interfaces:
java.lang.Cloneable, View

public class CheckboxField
extends AbstractField


Nested Class Summary
static class CheckboxField.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
CheckboxField(Content content, ViewSpecification specification, ViewAxis axis)
           
 
Method Summary
 Consent canChangeValue()
          Determines if the user is able to change the held value.
 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()
           
 void keyTyped(char keyCode)
          Called when the user presses a non-control key (i.e.
protected  void save()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.field.AbstractField
canFocus, cantClear, clear, contentMenuOptions, copyToClipboard, drag, dragCancel, dragFrom, dragTo, entered, exited, getIdentified, getPadding, getRoot, hasFocus, indicatesForView, initiateSave, isEmpty, keyPressed, keyReleased, pasteFromClipboard, provideClearCopyPaste, 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

CheckboxField

public CheckboxField(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

keyTyped

public void keyTyped(char keyCode)
Description copied from class: AbstractField
Called when the user presses a non-control key (i.e. data entry keys and not shift, up-arrow etc). Such a key press will result in a prior call to keyPressed and a subsequent call to keyReleased.

Specified by:
keyTyped in interface View
Overrides:
keyTyped in class AbstractField

canChangeValue

public Consent canChangeValue()
Description copied from interface: View
Determines if the user is able to change the held value.

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

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.