|
||||||||||
| 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
| Field Summary | |
protected static org.apache.log4j.Logger |
LOG
|
| Fields inherited from class org.nakedobjects.viewer.lightweight.AbstractView |
DEBUG, DRAG_HANDLE_WIDTH, HPADDING, ICON_SIZE, VPADDING |
| Constructor Summary | |
AbstractObjectView()
|
|
| Method Summary | |
protected Color |
backgroundColor()
|
void |
clearRootViewIdentified()
|
protected java.lang.Object |
clone()
|
void |
collectionAddUpdate(NakedCollection collection,
NakedObject element)
|
void |
collectionRemoveUpdate(NakedCollection collection,
NakedObject element)
|
protected Icon |
createIconImage(int size)
|
java.lang.String |
debugDetails()
Returns debug details about this view. |
void |
dispose()
Called when a view is no longer needed and its resources can be disposed of. |
void |
dragCancel(DragHandler drag)
|
void |
dragging(DragHandler drag)
|
void |
dragObjectIn(ObjectDrag drag)
|
void |
dragObjectOut(ObjectDrag drag)
|
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. |
void |
dropView(ViewDrag drag)
Default view drop behaviour that moves a dragged top level window, or creates a new top-level window for a dragged internal view |
void |
entered()
Called as the mouse crosses the bounds, and ends up inside, of this view. |
void |
enteredSubview()
Called as the mouse moves into one of this view's contained views. |
void |
exited()
Called as the mouse crosses the bounds, and ends up outside, of this view. |
void |
exitedSubview()
Called as the mouse moves back into view from one its contained views. |
void |
firstClick(Click click)
Raises/lowers this view if it is a root view. |
Field |
getFieldOf()
The object field that this view is for. |
NakedObject |
getObject()
|
Size |
getRequiredSize()
|
View |
getRoot()
|
ObjectViewState |
getState()
|
protected void |
init(NakedObject object)
|
boolean |
isIdentified()
|
boolean |
isRoot()
|
View |
makeView(Naked object,
Field fieldOf)
Creates a new concrete view, using this view as a prototype, reassigning the naked object in the process. |
void |
menuOptions(MenuOptionSet options)
Called when the popup menu is being populated for this view. |
void |
mouseMoved(Location at)
Called as the mouse is moved around within this view. |
java.lang.String |
objectInfo()
The information about this object to be displayed on the status bar. |
boolean |
objectLocatedAt(Location mouseLocation)
|
void |
objectMenuOptions(MenuOptionSet options)
|
void |
objectUpdate(NakedObject object)
|
ObjectView |
parentObjectView()
Returns the view that logically contains this view, i.e., for the associated object. |
DragView |
pickupObject(ObjectDrag drag)
Returns the view that logically contains this view, i.e., for the associated object. |
DragView |
pickupView(ViewDrag drag)
|
void |
removeViewsFor(NakedObject object,
java.util.Vector toRemove)
Called when this view is dropped onto the workspace. |
void |
secondClick(Click click)
Called when the user double-clicked this view. |
void |
setRootViewIdentified()
|
ObjectView |
topView()
|
java.lang.String |
toString()
|
protected boolean |
transparentBackground()
Root views should be opaque |
void |
viewMenuOptions(MenuOptionSet options)
|
| Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractView |
addControl, assignId, calculateRepaintArea, contains, createCanvas, defaultFieldHeight, getAbsoluteLocation, getBaseline, getBorder, getBounds, getId, getLocation, getName, getPadding, getParent, getSize, getWorkspace, identifyView, indicatesForView, invalidateLayout, isLayoutInvalid, isOpen, 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, getAbsoluteLocation, getBaseline, getBorder, getBounds, getId, getLocation, getName, getPadding, getParent, getSize, getWorkspace, identifyView, indicatesForView, invalidateLayout, isLayoutInvalid, isOpen, isReplaceable, layout, print, redraw, setBorder, setBounds, setLocation, setSize, thirdClick, validateLayout |
| Field Detail |
protected static final org.apache.log4j.Logger LOG
| Constructor Detail |
public AbstractObjectView()
| Method Detail |
public Field getFieldOf()
public boolean isIdentified()
public NakedObject getObject()
getObject in interface ObjectViewpublic Size getRequiredSize()
getRequiredSize in interface Viewpublic View getRoot()
public boolean isRoot()
isRoot in interface ObjectViewpublic void setRootViewIdentified()
setRootViewIdentified in interface ObjectViewpublic ObjectViewState getState()
getState in interface ObjectViewpublic void clearRootViewIdentified()
clearRootViewIdentified in interface ObjectView
public void collectionAddUpdate(NakedCollection collection,
NakedObject element)
collectionAddUpdate in interface ObjectView
public void collectionRemoveUpdate(NakedCollection collection,
NakedObject element)
collectionRemoveUpdate in interface ObjectViewpublic java.lang.String debugDetails()
AbstractView
debugDetails in interface ViewdebugDetails in class AbstractViewpublic void dispose()
View
dispose in interface Viewdispose in class AbstractViewpublic void dragCancel(DragHandler drag)
public void dragObjectIn(ObjectDrag drag)
public void dragObjectOut(ObjectDrag drag)
public void dragging(DragHandler drag)
public void draw(Canvas canvas)
View
draw in interface Viewdraw in class AbstractViewpublic void dropObject(ObjectDrag drag)
public void dropView(ViewDrag drag)
dropView in interface ObjectViewpublic void entered()
View
entered in interface Viewentered in class AbstractViewpublic void enteredSubview()
View
enteredSubview in interface ViewenteredSubview in class AbstractViewpublic void exited()
View
exited in interface Viewexited in class AbstractViewpublic void exitedSubview()
View
exitedSubview in interface ViewexitedSubview in class AbstractViewpublic void firstClick(Click click)
firstClick in interface ViewfirstClick in class AbstractView
public final View makeView(Naked object,
Field fieldOf)
View
makeView in interface Viewobject - the object the new view is for
public void menuOptions(MenuOptionSet options)
ViewmenuOptions object.
menuOptions in interface ViewmenuOptions in class AbstractViewpublic void mouseMoved(Location at)
View
mouseMoved in interface ViewmouseMoved in class AbstractViewat - the position relative to the top-left of this viewpublic java.lang.String objectInfo()
objectInfo in interface ObjectViewpublic boolean objectLocatedAt(Location mouseLocation)
objectLocatedAt in interface ObjectViewpublic void objectMenuOptions(MenuOptionSet options)
objectMenuOptions in interface ObjectViewpublic void objectUpdate(NakedObject object)
objectUpdate in interface ObjectViewpublic ObjectView parentObjectView()
public DragView pickupObject(ObjectDrag drag)
ObjectView
pickupObject in interface ObjectViewpublic DragView pickupView(ViewDrag drag)
pickupView in interface ObjectView
public void removeViewsFor(NakedObject object,
java.util.Vector toRemove)
ObjectView
removeViewsFor in interface ObjectViewpublic void secondClick(Click click)
Viewclick.
secondClick in interface ViewsecondClick in class AbstractViewpublic java.lang.String toString()
public ObjectView topView()
topView in interface ObjectViewpublic void viewMenuOptions(MenuOptionSet options)
viewMenuOptions in interface ObjectViewprotected Color backgroundColor()
backgroundColor in class AbstractView
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionprotected Icon createIconImage(int size)
protected void init(NakedObject object)
protected boolean transparentBackground()
transparentBackground in class AbstractView
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||