org.nakedobjects.viewer.lightweight
Class FallbackView
java.lang.Object
org.nakedobjects.viewer.lightweight.AbstractView
org.nakedobjects.viewer.lightweight.AbstractObjectView
org.nakedobjects.viewer.lightweight.ObjectIconView
org.nakedobjects.viewer.lightweight.FallbackView
- All Implemented Interfaces:
- java.lang.Cloneable, DesktopView, DragSource, DragTarget, DragView, InternalView, ObjectView, RootView, View
- public class FallbackView
- extends ObjectIconView
- implements DesktopView, RootView, InternalView, DragSource, DragView, DragTarget
Used when no specific view found to indicate that a viewer needs to be added. Provides no access the object attributes.
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, transparentBackground, viewMenuOptions |
Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractView |
addControl, assignId, calculateRepaintArea, contains, createCanvas, defaultFieldHeight, getAbsoluteLocation, getBorder, getBounds, getId, getLocation, getName, 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, entered, enteredSubview, exited, exitedSubview, firstClick, getAbsoluteLocation, getBaseline, getBorder, getBounds, getId, getLocation, getName, getPadding, getParent, getSize, getWorkspace, identifyView, invalidateLayout, isLayoutInvalid, isReplaceable, layout, makeView, menuOptions, mouseMoved, print, redraw, secondClick, setBorder, setBounds, setLocation, setSize, thirdClick, validateLayout |
VIEW_CONTROL_WIDTH
protected static final int VIEW_CONTROL_WIDTH
- See Also:
- Constant Field Values
FallbackView
public FallbackView()
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
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 ObjectIconView
indicatesForView
public boolean indicatesForView(Location mouseLocation)
- Description copied from interface:
View
- Determines if the user is invoking an action relating to this view, rather than to whatever this view represents.
- Specified by:
indicatesForView
in interface View
- Overrides:
indicatesForView
in class ObjectIconView
objectMenuOptions
public void objectMenuOptions(MenuOptionSet options)
- Specified by:
objectMenuOptions
in interface ObjectView
- Overrides:
objectMenuOptions
in class AbstractObjectView
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