org.nakedobjects.viewer.lightweight.view
Class StandardForm

java.lang.Object
  extended byorg.nakedobjects.viewer.lightweight.AbstractView
      extended byorg.nakedobjects.viewer.lightweight.AbstractObjectView
          extended byorg.nakedobjects.viewer.lightweight.ObjectIconView
              extended byorg.nakedobjects.viewer.lightweight.AbstractCompositeView
                  extended byorg.nakedobjects.viewer.lightweight.view.Form
                      extended byorg.nakedobjects.viewer.lightweight.view.StandardForm
All Implemented Interfaces:
java.lang.Cloneable, CompositeView, DragSource, DragTarget, InternalView, LayoutTarget, ObjectView, PrintableView, RootView, View

public class StandardForm
extends Form
implements RootView, InternalView, DragSource, DragTarget, PrintableView


Field Summary
 
Fields inherited from class org.nakedobjects.viewer.lightweight.AbstractObjectView
LOG
 
Fields inherited from class org.nakedobjects.viewer.lightweight.AbstractView
DEBUG, DRAG_HANDLE_WIDTH, HPADDING, ICON_SIZE, VPADDING
 
Fields inherited from interface org.nakedobjects.viewer.lightweight.InternalView
FIELD, NORMAL
 
Constructor Summary
StandardForm()
           
 
Method Summary
 InternalView createFieldElement(Naked object, Field field)
          Creates all internal collections as open views, all others as icons
 void draw(Canvas canvas)
          Called by the frame, or the parent view, when this view must redraw itself.
 Padding getPadding()
           
protected  Style.Text getTitleTextStyle()
          Defines the text style that should be used when rendering the title.
 
Methods inherited from class org.nakedobjects.viewer.lightweight.view.Form
init, objectMenuOptions, objectUpdate
 
Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractCompositeView
addView, calculateRepaintArea, clearRootViewIdentified, clone, debugDetails, debugFieldDetails, dispose, dropView, focusNext, focusPrevious, getBaseline, getComponents, getLayout, getRequiredSize, identifyView, layout, removeAllViews, removeView, replaceView, setLayout, setRootViewIdentified
 
Methods inherited from class org.nakedobjects.viewer.lightweight.ObjectIconView
defaultName, getStyle, includeIcon, includeTitle, indicatesForView, objectLocatedAt, size, titleIconBounds, titleSize, titleTextBounds
 
Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractObjectView
backgroundColor, collectionAddUpdate, collectionRemoveUpdate, createIconImage, dragCancel, dragging, dragObjectIn, dragObjectOut, dropObject, entered, enteredSubview, exited, exitedSubview, firstClick, getFieldOf, getObject, getRoot, getState, isIdentified, isRoot, makeView, menuOptions, mouseMoved, objectInfo, parentObjectView, pickupObject, pickupView, removeViewsFor, secondClick, topView, toString, transparentBackground, viewMenuOptions
 
Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractView
addControl, assignId, contains, createCanvas, defaultFieldHeight, getAbsoluteLocation, getBorder, getBounds, getId, getLocation, getName, getParent, getSize, getWorkspace, invalidateLayout, isLayoutInvalid, isOpen, isReplaceable, limitBounds, print, redraw, removeControl, repaintAll, setBorder, setBounds, setLayoutValid, setLocation, setParent, setSize, setWorkspace, thirdClick, validateLayout
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.View
calculateRepaintArea, contains, debugDetails, dispose, entered, enteredSubview, exited, exitedSubview, firstClick, getAbsoluteLocation, getBaseline, getBorder, getBounds, getId, getLocation, getName, getParent, getRequiredSize, getSize, getWorkspace, identifyView, indicatesForView, invalidateLayout, isLayoutInvalid, isOpen, isReplaceable, layout, makeView, menuOptions, mouseMoved, print, redraw, secondClick, setBorder, setBounds, setLocation, setSize, thirdClick, validateLayout
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.InternalView
getFieldOf, getRoot, parentObjectView, setParent
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.DragSource
dropView, pickupObject, pickupView
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.DragTarget
dragObjectIn, dragObjectOut, dropObject
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.PrintableView
createCanvas, print
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.LayoutTarget
setLayoutValid
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.ObjectView
collectionAddUpdate, collectionRemoveUpdate, getObject, getState, isRoot, objectInfo, objectLocatedAt, pickupObject, pickupView, removeViewsFor, topView, viewMenuOptions
 

Constructor Detail

StandardForm

public StandardForm()
Method Detail

getPadding

public Padding getPadding()
Specified by:
getPadding in interface View
Overrides:
getPadding in class AbstractCompositeView

getTitleTextStyle

protected Style.Text getTitleTextStyle()
Description copied from class: ObjectIconView
Defines the text style that should be used when rendering the title. By default returns the 'normal' text style.

Overrides:
getTitleTextStyle in class ObjectIconView

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 AbstractCompositeView

createFieldElement

public InternalView createFieldElement(Naked object,
                                       Field field)
Creates all internal collections as open views, all others as icons

Specified by:
createFieldElement in class Form