|
||||||||||
| 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.ObjectIconView
org.nakedobjects.viewer.lightweight.AbstractCompositeView
A view that is made up of other views, e.g. a form or list.
| Field Summary |
| Fields inherited from class org.nakedobjects.viewer.lightweight.AbstractObjectView |
LOG |
| Fields inherited from class org.nakedobjects.viewer.lightweight.AbstractView |
DEBUG, DRAG_HANDLE_WIDTH, HPADDING, ICON_SIZE, VPADDING |
| Constructor Summary | |
AbstractCompositeView()
|
|
| Method Summary | |
void |
addView(InternalView view)
|
void |
calculateRepaintArea()
Called to mark this view's on-screen state as invalid, i.e. it needs to be redrawn. |
void |
clearRootViewIdentified()
|
protected java.lang.Object |
clone()
|
java.lang.String |
debugDetails()
Returns debug details about this view. |
protected void |
debugFieldDetails(java.lang.StringBuffer b,
int level)
|
void |
dispose()
Called when a view is no longer needed and its resources can be disposed of. |
void |
draw(Canvas canvas)
Called by the frame, or the parent view, when this view must redraw itself. |
void |
dropView(ViewDrag drag)
Deals with the dropping of a contained and open view such that the view is removed from the containing view and is placed in its own window. |
void |
focusNext(InternalView view)
|
void |
focusPrevious(InternalView view)
|
int |
getBaseline()
returns the baseline for the first component |
InternalView[] |
getComponents()
|
Layout |
getLayout()
|
Padding |
getPadding()
|
Size |
getRequiredSize()
|
View |
identifyView(Location p,
View current)
Returns the view that mouse pointer is over. |
void |
layout()
This method is called when the frame, or the parent view, needs this view to determine is spatial requirements and to lay out its compnents.. |
protected void |
removeAllViews()
|
void |
removeView(InternalView view)
|
void |
replaceView(InternalView toReplace,
InternalView replacement)
|
void |
setLayout(Layout layout)
|
void |
setRootViewIdentified()
|
| Methods inherited from class org.nakedobjects.viewer.lightweight.ObjectIconView |
defaultName, getStyle, getTitleTextStyle, includeIcon, includeTitle, indicatesForView, objectLocatedAt, size, titleIconBounds, titleSize, titleTextBounds |
| Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractObjectView |
backgroundColor, collectionAddUpdate, collectionRemoveUpdate, createIconImage, dragCancel, dragging, dragObjectIn, dragObjectOut, dropObject, entered, enteredSubview, exited, exitedSubview, firstClick, getFieldOf, getObject, getRoot, getState, init, isIdentified, isRoot, makeView, menuOptions, mouseMoved, objectInfo, objectMenuOptions, objectUpdate, parentObjectView, pickupObject, pickupView, removeViewsFor, secondClick, topView, toString, transparentBackground, viewMenuOptions |
| Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractView |
addControl, assignId, contains, createCanvas, defaultFieldHeight, getAbsoluteLocation, getBorder, getBounds, getId, getLocation, getName, getParent, getSize, getWorkspace, invalidateLayout, isLayoutInvalid, isOpen, isReplaceable, 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.LayoutTarget |
setLayoutValid |
| Methods inherited from interface org.nakedobjects.viewer.lightweight.ObjectView |
collectionAddUpdate, collectionRemoveUpdate, getObject, getState, isRoot, objectInfo, objectLocatedAt, objectMenuOptions, objectUpdate, pickupObject, pickupView, removeViewsFor, topView, viewMenuOptions |
| Methods inherited from interface org.nakedobjects.viewer.lightweight.View |
contains, entered, enteredSubview, exited, exitedSubview, firstClick, getAbsoluteLocation, getBorder, getBounds, getId, getLocation, getName, getParent, getSize, getWorkspace, indicatesForView, invalidateLayout, isLayoutInvalid, isOpen, isReplaceable, makeView, menuOptions, mouseMoved, print, redraw, secondClick, setBorder, setBounds, setLocation, setSize, thirdClick, validateLayout |
| Constructor Detail |
public AbstractCompositeView()
| Method Detail |
public int getBaseline()
getBaseline in interface ViewgetBaseline in class ObjectIconViewpublic InternalView[] getComponents()
getComponents in interface LayoutTargetpublic void setLayout(Layout layout)
setLayout in interface CompositeViewpublic Layout getLayout()
getLayout in interface CompositeViewpublic Padding getPadding()
getPadding in interface LayoutTargetgetPadding in class AbstractViewpublic Size getRequiredSize()
getRequiredSize in interface ViewgetRequiredSize in class AbstractObjectViewpublic void setRootViewIdentified()
setRootViewIdentified in interface ObjectViewsetRootViewIdentified in class AbstractObjectViewpublic void addView(InternalView view)
addView in interface CompositeViewpublic void calculateRepaintArea()
View
calculateRepaintArea in interface ViewcalculateRepaintArea in class AbstractViewpublic void clearRootViewIdentified()
clearRootViewIdentified in interface ObjectViewclearRootViewIdentified in class AbstractObjectViewpublic java.lang.String debugDetails()
AbstractView
debugDetails in interface ViewdebugDetails in class AbstractObjectView
protected void debugFieldDetails(java.lang.StringBuffer b,
int level)
public void dispose()
View
dispose in interface Viewdispose in class AbstractObjectViewpublic void draw(Canvas canvas)
View
draw in interface Viewdraw in class ObjectIconViewpublic void dropView(ViewDrag drag)
dropView in interface ObjectViewdropView in class AbstractObjectViewpublic void focusNext(InternalView view)
focusNext in interface CompositeViewpublic void focusPrevious(InternalView view)
focusPrevious in interface CompositeView
public View identifyView(Location p,
View current)
View
identifyView in interface ViewidentifyView in class AbstractViewp - current -
public void layout()
AbstractView
layout in interface Viewlayout in class AbstractViewpublic void removeView(InternalView view)
removeView in interface CompositeView
public void replaceView(InternalView toReplace,
InternalView replacement)
replaceView in interface CompositeView
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AbstractObjectViewjava.lang.CloneNotSupportedExceptionprotected void removeAllViews()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||