|
||||||||||
| 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 ViewgetName in class AbstractViewpublic NakedObject getObject()
getObject in interface ObjectViewgetObject in class AbstractObjectViewpublic boolean isOpen()
isOpen in interface ViewisOpen in class AbstractViewpublic boolean isReplaceable()
isReplaceable in interface ViewisReplaceable in class AbstractViewpublic Size getRequiredSize()
getRequiredSize in interface ViewgetRequiredSize in class AbstractObjectViewpublic void dragObjectIn(ObjectDrag drag)
DragTarget
dragObjectIn in interface DragTargetdragObjectIn in class AbstractObjectViewpublic void draw(Canvas canvas)
View
draw in interface Viewdraw in class AbstractObjectViewpublic void dropObject(ObjectDrag drag)
DragTarget
dropObject in interface DragTargetdropObject in class AbstractObjectViewpublic NakedClass forNakedClass()
forNakedClass in interface ClassViewpublic boolean indicatesForView(Location mouseLocation)
View
indicatesForView in interface ViewindicatesForView in class AbstractViewprotected void init(NakedObject object)
init in class AbstractObjectViewpublic boolean objectLocatedAt(Location mouseLocation)
objectLocatedAt in interface ObjectViewobjectLocatedAt in class AbstractObjectViewpublic void objectMenuOptions(MenuOptionSet options)
objectMenuOptions in interface ObjectViewobjectMenuOptions in class AbstractObjectViewpublic DragView pickupObject(ObjectDrag drag)
ObjectView
pickupObject in interface DragSourcepickupObject in class AbstractObjectViewpublic DragView pickupView(ViewDrag drag)
pickupView in interface DragSourcepickupView in class AbstractObjectViewpublic void secondClick(Click click)
Viewclick.
secondClick in interface ViewsecondClick in class AbstractObjectViewprotected boolean transparentBackground()
AbstractObjectView
transparentBackground in class AbstractObjectView
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||