org.nakedobjects.plugins.dnd.viewer.view.help
Class HelpView

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
      extended by org.nakedobjects.plugins.dnd.viewer.view.help.HelpView
All Implemented Interfaces:
java.lang.Cloneable, View, TextBlockTarget

public class HelpView
extends AbstractView
implements TextBlockTarget


Field Summary
 
Fields inherited from interface org.nakedobjects.plugins.dnd.View
HPADDING, VPADDING
 
Constructor Summary
HelpView(java.lang.String name, java.lang.String description, java.lang.String help)
           
 
Method Summary
 void draw(Canvas canvas)
          Called by the frame, or the parent view, when this view must redraw itself.
 void firstClick(Click click)
          Removes the help view when clicked on.
 int getMaxFieldWidth()
          Maximum text entry width.
 Size getMaximumSize()
           
 Size getRequiredSize(Size maximumSize)
           
 Text getText()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
addView, assignId, canChangeValue, canFocus, contains, containsFocus, contentMenuOptions, debug, debugStructure, dispose, drag, drag, dragCancel, dragFrom, dragIn, dragOut, dragStart, dragTo, drop, drop, editComplete, entered, exited, focusLost, focusReceived, getAbsoluteLocation, getBaseline, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getPadding, getParent, getSize, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, getWorkspace, hasFocus, identify, invalidateContent, invalidateLayout, keyPressed, keyReleased, keyTyped, 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, toString, update, updateView, viewAreaType, viewMenuOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HelpView

public HelpView(java.lang.String name,
                java.lang.String description,
                java.lang.String help)
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 AbstractView

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

firstClick

public void firstClick(Click click)
Removes the help view when clicked on.

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

getMaxFieldWidth

public int getMaxFieldWidth()
Description copied from interface: TextBlockTarget
Maximum text entry width.

Specified by:
getMaxFieldWidth in interface TextBlockTarget

getText

public Text getText()
Specified by:
getText in interface TextBlockTarget


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