|
||||||||||
| 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
org.nakedobjects.plugins.dnd.viewer.border.ButtonBorder
public class ButtonBorder
| Field Summary |
|---|
| Fields inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractBorder |
|---|
bottom, left, right, 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 | |
|---|---|
ButtonBorder(ButtonAction[] actions,
View view)
|
|
| Method Summary | |
|---|---|
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. |
AbstractControlView[] |
getButtons()
|
Size |
getRequiredSize(Size maximumSize)
|
View |
identify(Location location)
|
void |
keyPressed(KeyboardAction key)
Called when the user presses any key on the keyboard while this view has the focus. |
void |
layout(int width)
|
void |
mouseDown(Click click)
Called as the mouse button is pressed down 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). |
void |
secondClick(Click click)
Called when the user double-clicked this view. |
void |
setBounds(Bounds bounds)
|
void |
setSize(Size size)
|
void |
thirdClick(Click click)
Called when the user triple-clicks the mouse buttone within this view. |
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractBorder |
|---|
contentArea, debugDetails, dragFrom, dragIn, dragOut, dragStart, drop, drop, exited, getBaseline, getBottom, getLeft, getPadding, getRight, getSize, getTop, isOnBorder, mouseMoved, overBorder, overContent, pickupContent, pickupView, setMaximumSize, viewAreaType |
| 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, 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 |
| Constructor Detail |
|---|
public ButtonBorder(ButtonAction[] actions,
View view)
| Method Detail |
|---|
public void draw(Canvas canvas)
View
draw in interface Viewdraw in class AbstractBorderpublic void firstClick(Click click)
View
firstClick in interface ViewfirstClick in class AbstractBorderclick - the location within the current view where the mouse click took placepublic AbstractControlView[] getButtons()
public Size getRequiredSize(Size maximumSize)
getRequiredSize in interface ViewgetRequiredSize in class AbstractBorderpublic View identify(Location location)
identify in interface Viewidentify in class AbstractBorderpublic void keyPressed(KeyboardAction key)
View
keyPressed in interface ViewkeyPressed in class AbstractViewDecoratorkey - TODOpublic void layout(int width)
public void mouseDown(Click click)
View
mouseDown in interface ViewmouseDown in class AbstractBorderpublic void mouseUp(Click click)
View
mouseUp in interface ViewmouseUp in class AbstractBorderpublic void secondClick(Click click)
Viewclick.
secondClick in interface ViewsecondClick in class AbstractBorderpublic void setBounds(Bounds bounds)
setBounds in interface ViewsetBounds in class AbstractBorderpublic void setSize(Size size)
setSize in interface ViewsetSize in class AbstractBorderpublic void thirdClick(Click click)
ViewdoubleClick.
thirdClick in interface ViewthirdClick in class AbstractBorder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||