|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
org.nakedobjects.plugins.dnd.viewer.view.simple.ObjectView
org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractCompositeView
public abstract class AbstractCompositeView
| Field Summary | |
|---|---|
protected java.util.Vector<View> |
views
|
| Fields inherited from interface org.nakedobjects.plugins.dnd.View |
|---|
HPADDING, VPADDING |
| Constructor Summary | |
|---|---|
AbstractCompositeView(Content content,
ViewSpecification specification,
ViewAxis axis)
|
|
| Method Summary | |
|---|---|
protected void |
add(java.util.Vector views,
View view)
|
void |
addView(View view)
|
protected abstract void |
buildView()
|
boolean |
canDragView()
|
void |
debug(DebugString debug)
Returns debug details about this view. |
void |
debugStructure(DebugString b)
|
void |
dispose()
Called when a view is no longer needed and its resources can be disposed of. |
protected abstract void |
doLayout(Size maximumSize)
|
void |
draw(Canvas canvas)
Called by the frame, or the parent view, when this view must redraw itself. |
int |
getBaseline()
|
FocusManager |
getFocusManager()
|
abstract Size |
getMaximumSize()
|
View[] |
getSubviews()
|
void |
invalidateContent()
Flags that the views do not properly represent the content, and hence it needs rebuilding. |
void |
invalidateLayout()
Flags that the views are possibly not displaying the content fully - too small, wrong place etc - although views exists for all the content. |
protected boolean |
isLayoutInvalid()
|
void |
layout(Size maximumSize)
|
View |
pickupView(Location location)
Called as the drag of this view starts. |
void |
refresh()
Refreshes this view by reaccessing its content and redisplaying it. |
void |
removeView(View view)
Removes the specifed view from the subviews contained by this view. |
void |
replaceView(View toReplace,
View replacement)
|
void |
setCanDragView(boolean canDragView)
|
void |
setFocusManager(FocusManager focusManager)
|
View |
subviewFor(Location location)
Identifies the subview that contains the specified location within its bounds. |
protected View[] |
subviews()
|
java.lang.String |
toString()
|
void |
update(NakedObject object)
notification that the content of this view has changed |
ViewAreaType |
viewAreaType(Location location)
Determines if the user is invoking an action relating to this view, rather than to whatever this view represents. |
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.ObjectView |
|---|
contentMenuOptions, dragIn, dragOut, dragStart, drop, firstClick, secondClick |
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView |
|---|
assignId, canChangeValue, canFocus, contains, containsFocus, drag, drag, dragCancel, dragFrom, dragTo, drop, editComplete, entered, exited, focusLost, focusReceived, getAbsoluteLocation, getBounds, getContent, getFeedbackManager, getId, getLocation, getPadding, getParent, getRequiredSize, getSize, getSpecification, getState, getView, getViewAxis, getViewManager, getWorkspace, hasFocus, identify, keyPressed, keyReleased, keyTyped, limitBoundsWithin, limitBoundsWithin, markDamaged, markDamaged, mouseDown, mouseMoved, mouseUp, objectActionResult, pickupContent, print, replaceOptions, setBounds, setContent, setLocation, setMaximumSize, setParent, setSize, setSpecification, setView, setViewAxis, thirdClick, updateView, viewMenuOptions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Vector<View> views
| Constructor Detail |
|---|
public AbstractCompositeView(Content content,
ViewSpecification specification,
ViewAxis axis)
| Method Detail |
|---|
public void refresh()
View
refresh in interface Viewrefresh in class AbstractViewpublic void addView(View view)
addView in interface ViewaddView in class AbstractView
protected void add(java.util.Vector views,
View view)
public boolean canDragView()
public void debug(DebugString debug)
AbstractView
debug in interface Viewdebug in class AbstractViewpublic void debugStructure(DebugString b)
debugStructure in interface ViewdebugStructure in class AbstractViewpublic void dispose()
View
dispose in interface Viewdispose in class AbstractViewView.removeView(View)public void draw(Canvas canvas)
View
draw in interface Viewdraw in class AbstractViewpublic int getBaseline()
getBaseline in interface ViewgetBaseline in class AbstractViewpublic FocusManager getFocusManager()
getFocusManager in interface ViewgetFocusManager in class AbstractViewpublic abstract Size getMaximumSize()
getMaximumSize in interface ViewgetMaximumSize in class AbstractViewpublic View[] getSubviews()
getSubviews in interface ViewgetSubviews in class AbstractViewprotected abstract void buildView()
protected View[] subviews()
public void invalidateContent()
View
invalidateContent in interface ViewinvalidateContent in class ObjectViewView.invalidateLayout()public void invalidateLayout()
View
invalidateLayout in interface ViewinvalidateLayout in class AbstractViewView.invalidateContent()public void layout(Size maximumSize)
layout in interface Viewlayout in class AbstractViewprotected abstract void doLayout(Size maximumSize)
protected boolean isLayoutInvalid()
public View subviewFor(Location location)
View
subviewFor in interface ViewsubviewFor in class AbstractViewpublic View pickupView(Location location)
View
pickupView in interface ViewpickupView in class AbstractViewpublic void removeView(View view)
View
removeView in interface ViewremoveView in class AbstractView
public void replaceView(View toReplace,
View replacement)
replaceView in interface ViewreplaceView in class AbstractViewpublic void setCanDragView(boolean canDragView)
public void setFocusManager(FocusManager focusManager)
setFocusManager in interface ViewsetFocusManager in class AbstractViewpublic java.lang.String toString()
toString in class AbstractViewpublic void update(NakedObject object)
View
update in interface Viewupdate in class AbstractViewpublic ViewAreaType viewAreaType(Location location)
View
viewAreaType in interface ViewviewAreaType in class AbstractView
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||