|
||||||||||
| 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.ScrollBorder
public class ScrollBorder
A scroll border provides a window on a larger view, providing scrollbars as a way of moving the visible part of that view around the actual visible viewing area. To achieve this the view is divided up into five main areas, not all of which are used. In the centre is the viewing area of the underlying view. At the bottom and to the right... At the top and to the left are headers that
| 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 | |
|---|---|
ScrollBorder(View view)
|
|
ScrollBorder(View content,
View leftHeader,
View topHeader)
Note - the leftHeader, if it is specified, view must be the same height as the content view and the rightHeader, if it is specified, must be the same width. |
|
| Method Summary | |
|---|---|
protected void |
debugDetails(DebugString debug)
|
void |
drag(InternalDrag drag)
Called as mouse is dragged within and without this view. |
void |
dragCancel(InternalDrag drag)
|
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 |
dragTo(InternalDrag drag)
Called as the drag ends within and without this view. |
void |
draw(Canvas canvas)
Called by the frame, or the parent view, when this view must redraw itself. |
void |
firstClick(Click click)
Called when the user clicks the mouse buttone within this view. |
Location |
getAbsoluteLocation()
|
Bounds |
getBounds()
Returns the bounding rectangle that describes where (within it parent), and how big, this view is. |
int |
getHorizontalPosition()
|
Size |
getRequiredSize(Size maximumSize)
|
Size |
getSize()
Determines the size of this view. |
int |
getVerticalPosition()
|
View |
identify(Location location)
|
void |
limitBoundsWithin(Size size)
Limits the bounds of this view (normally when being moved or dropped) so it never extends beyond the bounds of a view of the specified size. |
void |
markDamaged(Bounds bounds)
|
void |
mouseMoved(Location location)
Called as the mouse is moved around within this view. |
protected boolean |
overContent(Location location)
|
void |
reset()
|
void |
secondClick(Click click)
Moves the scrollbar to beginning or the end when a double click occurs on that side. |
void |
setBounds(Bounds bounds)
|
void |
setLeftHeader(View leftHeader)
|
void |
setMaximumSize(Size size)
|
void |
setSize(Size size)
|
void |
setTopHeader(View topHeader)
|
void |
thirdClick(Click click)
Called when the user triple-clicks the mouse buttone within this view. |
ViewAreaType |
viewAreaType(Location location)
Determines if the user is invoking an action relating to this view, rather than to whatever this view represents. |
void |
viewMenuOptions(UserActionSet menuOptions)
Called when the popup menu is being populated for this view. |
protected Bounds |
viewportArea()
|
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractViewDecorator |
|---|
addView, canChangeValue, canFocus, contains, containsFocus, contentMenuOptions, debug, debugStructure, dispose, drag, drop, drop, editComplete, entered, exited, focusLost, focusReceived, getBaseline, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getMaximumSize, getPadding, getParent, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, getWorkspace, hasFocus, invalidateContent, invalidateLayout, keyPressed, keyReleased, keyTyped, layout, markDamaged, mouseDown, mouseUp, objectActionResult, pickupContent, pickupView, print, refresh, removeView, replaceView, setFocusManager, setLocation, setParent, setView, subviewFor, toString, update, updateView |
| 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 |
|---|
public ScrollBorder(View view)
public ScrollBorder(View content,
View leftHeader,
View topHeader)
| Method Detail |
|---|
public void setTopHeader(View topHeader)
public void setLeftHeader(View leftHeader)
protected Bounds viewportArea()
protected void debugDetails(DebugString debug)
debugDetails in class AbstractViewDecoratorpublic void drag(InternalDrag drag)
View
drag in interface Viewdrag in class AbstractViewDecoratorpublic Drag dragStart(DragStart drag)
dragStart in interface ViewdragStart in class AbstractViewDecoratorpublic void dragCancel(InternalDrag drag)
dragCancel in interface ViewdragCancel in class AbstractViewDecoratorpublic void dragTo(InternalDrag drag)
View
dragTo in interface ViewdragTo in class AbstractViewDecoratorpublic 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 void draw(Canvas canvas)
View
draw in interface Viewdraw 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 Location getAbsoluteLocation()
getAbsoluteLocation in interface ViewgetAbsoluteLocation in class AbstractViewDecoratorpublic Bounds getBounds()
View
getBounds in interface ViewgetBounds in class AbstractViewDecoratorView.getSize(),
View.getLocation()public Size getRequiredSize(Size maximumSize)
getRequiredSize in interface ViewgetRequiredSize in class AbstractViewDecoratorpublic Size getSize()
View
getSize in interface ViewgetSize in class AbstractViewDecoratorView.getBounds()public View identify(Location location)
identify in interface Viewidentify in class AbstractViewDecoratorpublic void limitBoundsWithin(Size size)
View
limitBoundsWithin in interface ViewlimitBoundsWithin in class AbstractViewDecoratorpublic void markDamaged(Bounds bounds)
markDamaged in interface ViewmarkDamaged in class AbstractViewDecoratorpublic void mouseMoved(Location location)
View
mouseMoved in interface ViewmouseMoved in class AbstractViewDecoratorlocation - the position relative to the top-left of this viewprotected boolean overContent(Location location)
public void reset()
public void secondClick(Click click)
secondClick in interface ViewsecondClick in class AbstractViewDecoratorpublic void thirdClick(Click click)
ViewdoubleClick.
thirdClick in interface ViewthirdClick in class AbstractViewDecoratorpublic void setBounds(Bounds bounds)
setBounds in interface ViewsetBounds 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 int getVerticalPosition()
public int getHorizontalPosition()
public ViewAreaType viewAreaType(Location location)
View
viewAreaType in interface ViewviewAreaType in class AbstractViewDecoratorpublic void viewMenuOptions(UserActionSet menuOptions)
ViewmenuOptions object.
viewMenuOptions in interface ViewviewMenuOptions in class AbstractViewDecorator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||