|
||||||||||
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 View
getBaseline
in class ObjectIconView
public InternalView[] getComponents()
getComponents
in interface LayoutTarget
public void setLayout(Layout layout)
setLayout
in interface CompositeView
public Layout getLayout()
getLayout
in interface CompositeView
public Padding getPadding()
getPadding
in interface LayoutTarget
getPadding
in class AbstractView
public Size getRequiredSize()
getRequiredSize
in interface View
getRequiredSize
in class AbstractObjectView
public void setRootViewIdentified()
setRootViewIdentified
in interface ObjectView
setRootViewIdentified
in class AbstractObjectView
public void addView(InternalView view)
addView
in interface CompositeView
public void calculateRepaintArea()
View
calculateRepaintArea
in interface View
calculateRepaintArea
in class AbstractView
public void clearRootViewIdentified()
clearRootViewIdentified
in interface ObjectView
clearRootViewIdentified
in class AbstractObjectView
public java.lang.String debugDetails()
AbstractView
debugDetails
in interface View
debugDetails
in class AbstractObjectView
protected void debugFieldDetails(java.lang.StringBuffer b, int level)
public void dispose()
View
dispose
in interface View
dispose
in class AbstractObjectView
public void draw(Canvas canvas)
View
draw
in interface View
draw
in class ObjectIconView
public void dropView(ViewDrag drag)
dropView
in interface ObjectView
dropView
in class AbstractObjectView
public void focusNext(InternalView view)
focusNext
in interface CompositeView
public void focusPrevious(InternalView view)
focusPrevious
in interface CompositeView
public View identifyView(Location p, View current)
View
identifyView
in interface View
identifyView
in class AbstractView
p
- current
-
public void layout()
AbstractView
layout
in interface View
layout
in class AbstractView
public 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 AbstractObjectView
java.lang.CloneNotSupportedException
protected void removeAllViews()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |