|
||||||||||
| 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.Workspace
| Field Summary |
| Fields inherited from class org.nakedobjects.viewer.lightweight.AbstractView |
DEBUG, DRAG_HANDLE_WIDTH, HPADDING, ICON_SIZE, VPADDING |
| Constructor Summary | |
Workspace(GraphicalViewingMechanism mechanism)
|
|
| Method Summary | |
void |
addIcon(DesktopView view)
Adds a view to the list of iconized views for this workspace and re-layout all the views. |
void |
addNotificationView(ObjectView view)
|
void |
addRootView(RootView view)
Adds a view to the list of open view views for this workspace and re-layout all the views. |
void |
clearOverlayView()
|
void |
dragObjectIn(ObjectDrag drag)
Called as an object drag moves into this view |
void |
dragObjectOut(ObjectDrag drag)
Called as an object drag moves out of 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. |
Border |
getBorder()
|
View |
getIdentifiedView()
|
View |
getOverlayView()
|
Padding |
getPadding()
|
Size |
getRequiredSize()
|
boolean |
hasFocus(AbstractValueView view)
|
View |
identifyView(Location framePosition,
View current)
Returns the View that is currently under the pointer. |
boolean |
isIdentified(View view)
Determines whether the specified view is the one that is currently identified. |
boolean |
isObjectIdentified(View view)
Deprecated. |
void |
layoutIcons()
|
void |
limitBounds(View view)
Limits the bounds of the given view (when being moved or dropped) so its never extends outside the bounds of the containing open view |
protected void |
lower(RootView view)
Pushes the specified view to the back of all views |
void |
makeFocus(KeyboardAccessible view)
|
View |
makeView(Naked object,
Field field)
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 |
paintBackground(Canvas canvas,
Size size)
|
protected void |
raise(RootView view)
Pulls the specified view to the top of all views |
void |
removeFromNotificationList(ObjectView view)
|
void |
removeOtherRootViews(RootView view)
Removes all the views - other than the specified one - from the workspace |
void |
removeView(View view)
Removes the specified view from the workspace |
void |
removeViewsFor(NakedObject object)
Removes and views (icons and open views) from the frame that are for the specified object. |
protected void |
removeViewsFor(NakedObject object,
java.util.Vector toRemove)
|
void |
repaint(int x,
int y,
int width,
int height)
|
void |
setBackground(Background background)
Sets the background strategy. |
void |
setBorder(Border border)
|
void |
setIdentifiedView(View view)
|
void |
setOverlayView(View view)
|
void |
setStatus(java.lang.String string)
|
void |
showArrowCursor()
|
void |
showColumnResizeCursor()
|
void |
showMoveCursor()
|
void |
showResizeCursor()
|
void |
showTextCursor()
|
| Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractView |
addControl, assignId, backgroundColor, calculateRepaintArea, contains, createCanvas, debugDetails, defaultFieldHeight, dispose, entered, enteredSubview, exited, exitedSubview, firstClick, getAbsoluteLocation, getBaseline, getBounds, getId, getLocation, getName, getParent, getSize, getWorkspace, indicatesForView, invalidateLayout, isLayoutInvalid, isOpen, isReplaceable, layout, limitBounds, mouseMoved, print, redraw, removeControl, repaintAll, secondClick, setBounds, setLayoutValid, setLocation, setParent, setSize, setWorkspace, thirdClick, transparentBackground, validateLayout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.nakedobjects.viewer.lightweight.View |
calculateRepaintArea, contains, debugDetails, dispose, entered, enteredSubview, exited, exitedSubview, firstClick, getAbsoluteLocation, getBaseline, getBounds, getId, getLocation, getName, getParent, getSize, getWorkspace, indicatesForView, invalidateLayout, isLayoutInvalid, isOpen, isReplaceable, layout, mouseMoved, print, redraw, secondClick, setBounds, setLocation, setSize, thirdClick, validateLayout |
| Methods inherited from interface org.nakedobjects.viewer.lightweight.PrintableView |
createCanvas, print |
| Constructor Detail |
public Workspace(GraphicalViewingMechanism mechanism)
| Method Detail |
public void setBackground(Background background)
background - public void setBorder(Border border)
setBorder in interface ViewsetBorder in class AbstractViewpublic Border getBorder()
getBorder in interface ViewgetBorder in class AbstractViewpublic boolean isIdentified(View view)
view -
public void setIdentifiedView(View view)
public View getIdentifiedView()
public boolean isObjectIdentified(View view)
view -
public void setOverlayView(View view)
public View getOverlayView()
public Padding getPadding()
getPadding in interface ViewgetPadding in class AbstractViewpublic Size getRequiredSize()
getRequiredSize in interface Viewpublic void setStatus(java.lang.String string)
public void addIcon(DesktopView view)
view - the view to addpublic void addNotificationView(ObjectView view)
public void addRootView(RootView view)
view - the view to addpublic void clearOverlayView()
public void dragObjectIn(ObjectDrag drag)
DragTarget
dragObjectIn in interface DragTargetpublic void dragObjectOut(ObjectDrag drag)
DragTarget
dragObjectOut in interface DragTargetpublic void draw(Canvas canvas)
View
draw in interface Viewdraw in class AbstractViewpublic void dropObject(ObjectDrag drag)
DragTarget
dropObject in interface DragTargetpublic boolean hasFocus(AbstractValueView view)
public View identifyView(Location framePosition,
View current)
View that is currently under the pointer. Works
through each top-level view and when the mouse is found in the that the
same method is then called within that view, and so on. This ensures
that views within views are identified. An optional parameter ensures
that an already identified view is not returned. This is used when the
dragged view needs to be ignored so a drop target can be identified.
identifyView in interface ViewidentifyView in class AbstractViewframePosition - the mouse position within the framecurrent - the object that is being dragged, or null if none
public void layoutIcons()
public void limitBounds(View view)
public void makeFocus(KeyboardAccessible view)
public View makeView(Naked object,
Field field)
throws java.lang.CloneNotSupportedException
View
makeView in interface Viewobject - the object the new view is for
java.lang.CloneNotSupportedExceptionpublic void menuOptions(MenuOptionSet options)
ViewmenuOptions object.
menuOptions in interface ViewmenuOptions in class AbstractView
public void paintBackground(Canvas canvas,
Size size)
paintBackground in interface Backgroundpublic void removeFromNotificationList(ObjectView view)
public final void removeViewsFor(NakedObject object)
object - public void removeOtherRootViews(RootView view)
view - public void removeView(View view)
view -
public void repaint(int x,
int y,
int width,
int height)
protected void lower(RootView view)
view - to lowerprotected void raise(RootView view)
view - to raise
protected void removeViewsFor(NakedObject object,
java.util.Vector toRemove)
public void showTextCursor()
public void showArrowCursor()
public void showMoveCursor()
public void showResizeCursor()
public void showColumnResizeCursor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||