|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nakedobjects.viewer.lightweight.AbstractView
org.nakedobjects.viewer.lightweight.AbstractObjectView
org.nakedobjects.viewer.lightweight.view.ClassIcon
Field Summary | |
protected NakedClass |
cls
|
protected Icon |
icon
|
protected static int |
ICON_SIZE
|
Fields inherited from class org.nakedobjects.viewer.lightweight.AbstractObjectView |
LOG |
Fields inherited from class org.nakedobjects.viewer.lightweight.AbstractView |
DEBUG, DRAG_HANDLE_WIDTH, HPADDING, VPADDING |
Constructor Summary | |
ClassIcon()
|
Method Summary | |
void |
dragObjectIn(ObjectDrag drag)
Called as an object drag moves into this view |
void |
draw(Canvas canvas)
Called by the frame, or the parent view, when this view must redraw itself. |
void |
dropObject(ObjectDrag drag)
Called when a dragged object is dropped onto this view. |
NakedClass |
forNakedClass()
|
java.lang.String |
getName()
|
NakedObject |
getObject()
|
Size |
getRequiredSize()
|
boolean |
indicatesForView(Location mouseLocation)
Determines if the user is invoking an action relating to this view, rather than to whatever this view represents. |
protected void |
init(NakedObject object)
|
boolean |
isOpen()
Class icons are alway icons. |
boolean |
isReplaceable()
Class icons cannot be replaced by windows |
boolean |
objectLocatedAt(Location mouseLocation)
|
void |
objectMenuOptions(MenuOptionSet options)
|
DragView |
pickupObject(ObjectDrag drag)
Returns the view that logically contains this view, i.e., for the associated object. |
DragView |
pickupView(ViewDrag drag)
|
void |
secondClick(Click click)
Called when the user double-clicked this view. |
protected boolean |
transparentBackground()
Root views should be opaque |
Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractObjectView |
backgroundColor, clearRootViewIdentified, clone, collectionAddUpdate, collectionRemoveUpdate, createIconImage, debugDetails, dispose, dragCancel, dragging, dragObjectOut, dropView, entered, enteredSubview, exited, exitedSubview, firstClick, getFieldOf, getRoot, getState, isIdentified, isRoot, makeView, menuOptions, mouseMoved, objectInfo, objectUpdate, parentObjectView, removeViewsFor, setRootViewIdentified, topView, toString, viewMenuOptions |
Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractView |
addControl, assignId, calculateRepaintArea, contains, createCanvas, defaultFieldHeight, getAbsoluteLocation, getBaseline, getBorder, getBounds, getId, getLocation, getPadding, getParent, getSize, getWorkspace, identifyView, invalidateLayout, isLayoutInvalid, 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.DragSource |
dropView |
Methods inherited from interface org.nakedobjects.viewer.lightweight.View |
calculateRepaintArea, contains, debugDetails, dispose, entered, enteredSubview, exited, exitedSubview, firstClick, getAbsoluteLocation, getBaseline, getBorder, getBounds, getId, getLocation, getPadding, getParent, getSize, getWorkspace, identifyView, invalidateLayout, isLayoutInvalid, layout, makeView, menuOptions, mouseMoved, print, redraw, setBorder, setBounds, setLocation, setSize, thirdClick, validateLayout |
Methods inherited from interface org.nakedobjects.viewer.lightweight.DragView |
dragCancel, dragging |
Methods inherited from interface org.nakedobjects.viewer.lightweight.DragTarget |
dragObjectOut |
Field Detail |
protected static final int ICON_SIZE
protected Icon icon
protected NakedClass cls
Constructor Detail |
public ClassIcon()
Method Detail |
public java.lang.String getName()
getName
in interface View
getName
in class AbstractView
public NakedObject getObject()
getObject
in interface ObjectView
getObject
in class AbstractObjectView
public boolean isOpen()
isOpen
in interface View
isOpen
in class AbstractView
public boolean isReplaceable()
isReplaceable
in interface View
isReplaceable
in class AbstractView
public Size getRequiredSize()
getRequiredSize
in interface View
getRequiredSize
in class AbstractObjectView
public void dragObjectIn(ObjectDrag drag)
DragTarget
dragObjectIn
in interface DragTarget
dragObjectIn
in class AbstractObjectView
public void draw(Canvas canvas)
View
draw
in interface View
draw
in class AbstractObjectView
public void dropObject(ObjectDrag drag)
DragTarget
dropObject
in interface DragTarget
dropObject
in class AbstractObjectView
public NakedClass forNakedClass()
forNakedClass
in interface ClassView
public boolean indicatesForView(Location mouseLocation)
View
indicatesForView
in interface View
indicatesForView
in class AbstractView
protected void init(NakedObject object)
init
in class AbstractObjectView
public boolean objectLocatedAt(Location mouseLocation)
objectLocatedAt
in interface ObjectView
objectLocatedAt
in class AbstractObjectView
public void objectMenuOptions(MenuOptionSet options)
objectMenuOptions
in interface ObjectView
objectMenuOptions
in class AbstractObjectView
public DragView pickupObject(ObjectDrag drag)
ObjectView
pickupObject
in interface DragSource
pickupObject
in class AbstractObjectView
public DragView pickupView(ViewDrag drag)
pickupView
in interface DragSource
pickupView
in class AbstractObjectView
public void secondClick(Click click)
View
click
.
secondClick
in interface View
secondClick
in class AbstractObjectView
protected boolean transparentBackground()
AbstractObjectView
transparentBackground
in class AbstractObjectView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |