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

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

public class ImageField
extends AbstractField


Nested Class Summary
static class ImageField.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
ImageField(Content content, ViewSpecification specification, ViewAxis axis)
           
 
Method Summary
 boolean canFocus()
          Determines whether this view accepts keyboard focus.
 void contentMenuOptions(UserActionSet options)
          Called when the popup menu is being populated for this view.
 void draw(Canvas canvas)
          Called by the frame, or the parent view, when this view must redraw itself.
 int getBaseline()
           
 Size getMaximumSize()
           
 Size getRequiredSize(Size maximumSize)
           
 void keyPressed(KeyboardAction key)
          Called when the user presses any key on the keyboard while this view has the focus.
protected  void pasteFromClipboard()
           
protected  void save()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.field.AbstractField
cantClear, clear, copyToClipboard, drag, dragCancel, dragFrom, dragTo, entered, exited, getIdentified, getPadding, getRoot, hasFocus, indicatesForView, initiateSave, isEmpty, keyReleased, keyTyped, provideClearCopyPaste, toString, viewAreaType
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
addView, assignId, canChangeValue, contains, containsFocus, debug, debugStructure, dispose, drag, dragIn, dragOut, dragStart, drop, drop, editComplete, firstClick, focusLost, focusReceived, getAbsoluteLocation, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getParent, 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

ImageField

public ImageField(Content content,
                  ViewSpecification specification,
                  ViewAxis axis)
Method Detail

canFocus

public boolean canFocus()
Description copied from interface: View
Determines whether this view accepts keyboard focus. If so focusLost and focusReceived will be called.

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

contentMenuOptions

public void contentMenuOptions(UserActionSet options)
Description copied from interface: View
Called when the popup menu is being populated for this view. Any content options that need to appear on the menu should be added to the menuOptions object.

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

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

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

getRequiredSize

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

keyPressed

public void keyPressed(KeyboardAction key)
Description copied from class: AbstractField
Called when the user presses any key on the keyboard while this view has the focus.

Specified by:
keyPressed in interface View
Overrides:
keyPressed in class AbstractField
Parameters:
key - TODO

pasteFromClipboard

protected void pasteFromClipboard()
Overrides:
pasteFromClipboard in class AbstractField

save

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


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