org.nakedobjects.viewer.lightweight.view
Class ObjectIcon

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.view.ObjectIcon
All Implemented Interfaces:
java.lang.Cloneable, DesktopView, DragSource, DragTarget, DragView, InternalView, ObjectView, View

public class ObjectIcon
extends ObjectIconView
implements DesktopView, DragSource, DragView, DragTarget, InternalView


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
ObjectIcon()
           
 
Method Summary
 java.lang.String getName()
           
 Size getRequiredSize()
           
 Style.Text getTitleTextStyle()
          Defines the text style that should be used when rendering the title.
 boolean isOpen()
          Returns true to show that this view is an icon.
 void objectMenuOptions(MenuOptionSet options)
           
protected  boolean transparentBackground()
          Root views should be opaque
 
Methods inherited from class org.nakedobjects.viewer.lightweight.ObjectIconView
defaultName, draw, getBaseline, getStyle, includeIcon, includeTitle, indicatesForView, objectLocatedAt, size, titleIconBounds, titleSize, titleTextBounds
 
Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractObjectView
backgroundColor, clearRootViewIdentified, clone, collectionAddUpdate, collectionRemoveUpdate, createIconImage, debugDetails, dispose, dragCancel, dragging, dragObjectIn, dragObjectOut, dropObject, dropView, entered, enteredSubview, exited, exitedSubview, firstClick, getFieldOf, getObject, getRoot, getState, init, isIdentified, isRoot, makeView, menuOptions, mouseMoved, objectInfo, objectUpdate, parentObjectView, pickupObject, pickupView, removeViewsFor, secondClick, setRootViewIdentified, topView, toString, viewMenuOptions
 
Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractView
addControl, assignId, calculateRepaintArea, contains, createCanvas, defaultFieldHeight, getAbsoluteLocation, getBorder, getBounds, getId, getLocation, getPadding, getParent, getSize, getWorkspace, identifyView, invalidateLayout, isLayoutInvalid, isReplaceable, layout, 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, draw, entered, enteredSubview, exited, exitedSubview, firstClick, getAbsoluteLocation, getBaseline, getBorder, getBounds, getId, getLocation, getPadding, getParent, getSize, getWorkspace, identifyView, indicatesForView, invalidateLayout, isLayoutInvalid, isReplaceable, layout, makeView, menuOptions, mouseMoved, print, redraw, secondClick, setBorder, setBounds, setLocation, setSize, thirdClick, validateLayout
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.DragSource
dropView, pickupObject, pickupView
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.DragView
dragCancel, dragging
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.DragTarget
dragObjectIn, dragObjectOut, dropObject
 
Methods inherited from interface org.nakedobjects.viewer.lightweight.InternalView
getFieldOf, getRoot, parentObjectView, setParent
 

Constructor Detail

ObjectIcon

public ObjectIcon()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface View
Overrides:
getName in class AbstractView

getTitleTextStyle

public 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

isOpen

public boolean isOpen()
Returns true to show that this view is an icon.

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

getRequiredSize

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

objectMenuOptions

public void objectMenuOptions(MenuOptionSet options)
Specified by:
objectMenuOptions in interface ObjectView
Overrides:
objectMenuOptions in class AbstractObjectView

transparentBackground

protected boolean transparentBackground()
Description copied from class: AbstractObjectView
Root views should be opaque

Overrides:
transparentBackground in class AbstractObjectView