|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.dnd.viewer.border.AbstractViewDecorator
org.nakedobjects.plugins.dnd.viewer.border.AbstractBorder
public class AbstractBorder
| Field Summary | |
|---|---|
protected int |
bottom
|
protected int |
left
|
protected int |
right
|
protected int |
top
|
| Fields inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractViewDecorator |
|---|
wrappedView |
| Fields inherited from interface org.nakedobjects.plugins.dnd.View |
|---|
HPADDING, VPADDING |
| Constructor Summary | |
|---|---|
protected |
AbstractBorder(View view)
|
| Method Summary | |
|---|---|
protected Bounds |
contentArea()
|
protected void |
debugDetails(DebugString debug)
|
View |
dragFrom(Location location)
|
void |
dragIn(ContentDrag drag)
Called as the content being dragged is dragged into this view. |
void |
dragOut(ContentDrag drag)
Called as the content being dragged is dragged out of this view. |
Drag |
dragStart(DragStart drag)
|
void |
draw(Canvas canvas)
Called by the frame, or the parent view, when this view must redraw itself. |
void |
drop(ContentDrag drag)
Called as another view's contents (the source) is dropped on this view's contents (the target). |
void |
drop(ViewDrag drag)
Called as another view (the source) is dropped on this view (the target). |
void |
exited()
Called as the mouse crosses the bounds, and ends up outside, of this view. |
void |
firstClick(Click click)
Called when the user clicks the mouse buttone within this view. |
int |
getBaseline()
|
protected int |
getBottom()
|
protected int |
getLeft()
|
Padding |
getPadding()
|
Size |
getRequiredSize(Size maximumSize)
|
protected int |
getRight()
|
Size |
getSize()
Determines the size of this view. |
protected int |
getTop()
|
View |
identify(Location location)
|
protected boolean |
isOnBorder()
|
void |
mouseDown(Click click)
Called as the mouse button is pressed down within this view. |
void |
mouseMoved(Location at)
Called as the mouse is moved around within this view. |
void |
mouseUp(Click click)
Called as the mouse button is released within this view (assuming that it was pressed in this view). |
protected boolean |
overBorder(Location location)
|
protected boolean |
overContent(Location location)
|
View |
pickupContent(Location location)
Called as the drag of this view's content starts. |
View |
pickupView(Location location)
Called as the drag of this view starts. |
void |
secondClick(Click click)
Called when the user double-clicked this view. |
void |
setBounds(Bounds bounds)
|
void |
setMaximumSize(Size size)
|
void |
setSize(Size size)
|
void |
thirdClick(Click click)
Called when the user triple-clicks the mouse buttone within this view. |
ViewAreaType |
viewAreaType(Location mouseLocation)
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.border.AbstractViewDecorator |
|---|
addView, canChangeValue, canFocus, contains, containsFocus, contentMenuOptions, debug, debugStructure, dispose, drag, drag, dragCancel, dragTo, editComplete, entered, focusLost, focusReceived, getAbsoluteLocation, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getMaximumSize, getParent, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, getWorkspace, hasFocus, invalidateContent, invalidateLayout, keyPressed, keyReleased, keyTyped, layout, limitBoundsWithin, markDamaged, markDamaged, objectActionResult, print, refresh, removeView, replaceView, setFocusManager, setLocation, setParent, setView, subviewFor, toString, update, updateView, viewMenuOptions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int bottom
protected int left
protected int right
protected int top
| Constructor Detail |
|---|
protected AbstractBorder(View view)
| Method Detail |
|---|
protected Bounds contentArea()
public View dragFrom(Location location)
dragFrom in interface ViewdragFrom in class AbstractViewDecoratorpublic void dragIn(ContentDrag drag)
View
dragIn in interface ViewdragIn in class AbstractViewDecoratorpublic void dragOut(ContentDrag drag)
View
dragOut in interface ViewdragOut in class AbstractViewDecoratorpublic Drag dragStart(DragStart drag)
dragStart in interface ViewdragStart in class AbstractViewDecoratorpublic void draw(Canvas canvas)
View
draw in interface Viewdraw in class AbstractViewDecoratorpublic void drop(ContentDrag drag)
View
drop in interface Viewdrop in class AbstractViewDecoratorpublic void drop(ViewDrag drag)
View
drop in interface Viewdrop in class AbstractViewDecoratorpublic void firstClick(Click click)
View
firstClick in interface ViewfirstClick in class AbstractViewDecoratorclick - the location within the current view where the mouse click took placepublic int getBaseline()
getBaseline in interface ViewgetBaseline in class AbstractViewDecoratorprotected int getBottom()
protected int getLeft()
public Padding getPadding()
getPadding in interface ViewgetPadding in class AbstractViewDecoratorpublic Size getRequiredSize(Size maximumSize)
getRequiredSize in interface ViewgetRequiredSize in class AbstractViewDecoratorprotected int getRight()
public Size getSize()
View
getSize in interface ViewgetSize in class AbstractViewDecoratorView.getBounds()protected int getTop()
protected void debugDetails(DebugString debug)
debugDetails in class AbstractViewDecoratorprotected boolean overBorder(Location location)
protected boolean overContent(Location location)
protected boolean isOnBorder()
public View identify(Location location)
identify in interface Viewidentify in class AbstractViewDecoratorpublic void mouseDown(Click click)
View
mouseDown in interface ViewmouseDown in class AbstractViewDecoratorpublic void mouseMoved(Location at)
View
mouseMoved in interface ViewmouseMoved in class AbstractViewDecoratorat - the position relative to the top-left of this viewpublic void mouseUp(Click click)
View
mouseUp in interface ViewmouseUp in class AbstractViewDecoratorpublic void exited()
View
exited in interface Viewexited in class AbstractViewDecoratorpublic View pickupContent(Location location)
View
pickupContent in interface ViewpickupContent in class AbstractViewDecoratorpublic View pickupView(Location location)
View
pickupView in interface ViewpickupView in class AbstractViewDecoratorpublic void secondClick(Click click)
Viewclick.
secondClick in interface ViewsecondClick in class AbstractViewDecoratorpublic void setMaximumSize(Size size)
setMaximumSize in interface ViewsetMaximumSize in class AbstractViewDecoratorpublic void setSize(Size size)
setSize in interface ViewsetSize in class AbstractViewDecoratorpublic void setBounds(Bounds bounds)
setBounds in interface ViewsetBounds in class AbstractViewDecoratorpublic void thirdClick(Click click)
ViewdoubleClick.
thirdClick in interface ViewthirdClick in class AbstractViewDecoratorpublic ViewAreaType viewAreaType(Location mouseLocation)
View
viewAreaType in interface ViewviewAreaType in class AbstractViewDecorator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||