|
||||||||||
| 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
public abstract class AbstractViewDecorator
| Field Summary | |
|---|---|
protected View |
wrappedView
|
| Fields inherited from interface org.nakedobjects.plugins.dnd.View |
|---|
HPADDING, VPADDING |
| Constructor Summary | |
|---|---|
protected |
AbstractViewDecorator(View wrappedView)
|
| Method Summary | |
|---|---|
void |
addView(View view)
|
Consent |
canChangeValue()
Determines if the user is able to change the held value. |
boolean |
canFocus()
Determines whether this view accepts keyboard focus. |
boolean |
contains(View view)
|
boolean |
containsFocus()
|
void |
contentMenuOptions(UserActionSet menuOptions)
Called when the popup menu is being populated for this view. |
void |
debug(DebugString debug)
|
protected void |
debugDetails(DebugString debug)
|
void |
debugStructure(DebugString debug)
|
void |
dispose()
Called when a view is no longer needed and its resources can be disposed of. |
void |
drag(ContentDrag contentDrag)
|
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 |
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 |
editComplete(boolean moveFocus,
boolean toNextField)
Indicates that editing has been completed and the entry should be saved. |
void |
entered()
Called as the mouse crosses the bounds, and ends up inside, of this view. |
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. |
void |
focusLost()
|
void |
focusReceived()
|
Location |
getAbsoluteLocation()
|
int |
getBaseline()
|
Bounds |
getBounds()
Returns the bounding rectangle that describes where (within it parent), and how big, this view is. |
Content |
getContent()
get the object that this view represents |
Feedback |
getFeedbackManager()
|
FocusManager |
getFocusManager()
|
int |
getId()
|
Location |
getLocation()
Determines the location relative to this object's containing view |
Size |
getMaximumSize()
|
Padding |
getPadding()
|
View |
getParent()
|
Size |
getRequiredSize(Size maximumSize)
|
Size |
getSize()
Determines the size of this view. |
ViewSpecification |
getSpecification()
|
ViewState |
getState()
|
View[] |
getSubviews()
|
View |
getView()
returns the topmost decorator in the chain, or the view itself if not decorated. |
ViewAxis |
getViewAxis()
|
Viewer |
getViewManager()
|
Workspace |
getWorkspace()
|
boolean |
hasFocus()
|
View |
identify(Location mouseLocation)
|
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. |
void |
keyPressed(KeyboardAction key)
Called when the user presses any key on the keyboard while this view has the focus. |
void |
keyReleased(int keyCode,
int modifiers)
Called when the user releases any key on the keyboard while this view has the focus. |
void |
keyTyped(char keyCode)
Called when the user presses a non-control key (i.e. |
void |
layout(Size maximumSize)
|
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()
|
void |
markDamaged(Bounds bounds)
|
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). |
void |
objectActionResult(NakedObject result,
Location at)
Called when an action generates a result, allowing this view to decide what to do with it. |
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 |
print(Canvas canvas)
|
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 |
secondClick(Click click)
Called when the user double-clicked this view. |
void |
setBounds(Bounds bounds)
|
void |
setFocusManager(FocusManager focusManager)
|
void |
setLocation(Location point)
Specifies the location of this view, relative to its enclosing view. |
void |
setMaximumSize(Size size)
|
void |
setParent(View view)
|
void |
setSize(Size size)
|
void |
setView(View view)
|
View |
subviewFor(Location location)
Identifies the subview that contains the specified location within its bounds. |
void |
thirdClick(Click click)
Called when the user triple-clicks the mouse buttone within this view. |
java.lang.String |
toString()
|
void |
update(NakedObject object)
notification that the content of this view has changed |
void |
updateView()
|
ViewAreaType |
viewAreaType(Location mouseLocation)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected View wrappedView
| Constructor Detail |
|---|
protected AbstractViewDecorator(View wrappedView)
| Method Detail |
|---|
public void addView(View view)
addView in interface Viewpublic Consent canChangeValue()
View
canChangeValue in interface Viewpublic boolean canFocus()
View
canFocus in interface Viewpublic boolean contains(View view)
contains in interface Viewpublic boolean containsFocus()
containsFocus in interface Viewpublic void contentMenuOptions(UserActionSet menuOptions)
ViewmenuOptions object.
contentMenuOptions in interface Viewpublic final void debug(DebugString debug)
debug in interface Viewprotected void debugDetails(DebugString debug)
public void debugStructure(DebugString debug)
debugStructure in interface Viewpublic void dispose()
View
dispose in interface ViewView.removeView(View)public void drag(ContentDrag contentDrag)
drag in interface Viewpublic void drag(InternalDrag drag)
View
drag in interface Viewpublic void dragCancel(InternalDrag drag)
dragCancel in interface Viewpublic View dragFrom(Location location)
dragFrom in interface Viewpublic void dragIn(ContentDrag drag)
View
dragIn in interface Viewpublic void dragOut(ContentDrag drag)
View
dragOut in interface Viewpublic Drag dragStart(DragStart drag)
dragStart in interface Viewpublic void dragTo(InternalDrag drag)
View
dragTo in interface Viewpublic void draw(Canvas canvas)
View
draw in interface Viewpublic void drop(ContentDrag drag)
View
drop in interface Viewpublic void drop(ViewDrag drag)
View
drop in interface View
public void editComplete(boolean moveFocus,
boolean toNextField)
View
editComplete in interface ViewmoveFocus - flags that focus should be moved from this field after the entry has been processed.toNextField - flags that the focus should be moved to the next field (if true) or to the
previous field (if false). This parameter is ignored if the moveFocus parameter
is false.public void entered()
View
entered in interface Viewpublic void exited()
View
exited in interface Viewpublic void firstClick(Click click)
View
firstClick in interface Viewclick - the location within the current view where the mouse click took placepublic void focusLost()
focusLost in interface Viewpublic void focusReceived()
focusReceived in interface Viewpublic Location getAbsoluteLocation()
getAbsoluteLocation in interface Viewpublic int getBaseline()
getBaseline in interface Viewpublic Bounds getBounds()
View
getBounds in interface ViewView.getSize(),
View.getLocation()public Content getContent()
View
getContent in interface Viewpublic FocusManager getFocusManager()
getFocusManager in interface Viewpublic int getId()
getId in interface Viewpublic Location getLocation()
View
getLocation in interface ViewView.getBounds()public Padding getPadding()
getPadding in interface Viewpublic View getParent()
getParent in interface Viewpublic Size getRequiredSize(Size maximumSize)
getRequiredSize in interface Viewpublic Size getMaximumSize()
getMaximumSize in interface Viewpublic Size getSize()
View
getSize in interface ViewView.getBounds()public ViewSpecification getSpecification()
getSpecification in interface Viewpublic ViewState getState()
getState in interface Viewpublic View[] getSubviews()
getSubviews in interface Viewpublic View getView()
View
getView in interface Viewpublic ViewAxis getViewAxis()
getViewAxis in interface Viewpublic Viewer getViewManager()
getViewManager in interface Viewpublic Feedback getFeedbackManager()
getFeedbackManager in interface Viewpublic Workspace getWorkspace()
getWorkspace in interface Viewpublic boolean hasFocus()
hasFocus in interface Viewpublic View identify(Location mouseLocation)
identify in interface Viewpublic void invalidateContent()
View
invalidateContent in interface ViewView.invalidateLayout()public void invalidateLayout()
View
invalidateLayout in interface ViewView.invalidateContent()public void keyPressed(KeyboardAction key)
View
keyPressed in interface Viewkey - TODO
public void keyReleased(int keyCode,
int modifiers)
View
keyReleased in interface Viewpublic void keyTyped(char keyCode)
ViewkeyPressed and a subsequent call to
keyReleased.
keyTyped in interface Viewpublic void layout(Size maximumSize)
layout in interface Viewpublic void limitBoundsWithin(Size size)
View
limitBoundsWithin in interface Viewpublic void markDamaged()
markDamaged in interface Viewpublic void markDamaged(Bounds bounds)
markDamaged in interface Viewpublic void mouseDown(Click click)
View
mouseDown in interface Viewpublic void mouseMoved(Location at)
View
mouseMoved in interface Viewat - the position relative to the top-left of this viewpublic void mouseUp(Click click)
View
mouseUp in interface View
public void objectActionResult(NakedObject result,
Location at)
View
objectActionResult in interface Viewat - the location where the action took placepublic View pickupContent(Location location)
View
pickupContent in interface Viewpublic View pickupView(Location location)
View
pickupView in interface Viewpublic void print(Canvas canvas)
print in interface Viewpublic void refresh()
View
refresh in interface Viewpublic void removeView(View view)
View
removeView in interface View
public void replaceView(View toReplace,
View replacement)
replaceView in interface Viewpublic void secondClick(Click click)
Viewclick.
secondClick in interface Viewpublic void setBounds(Bounds bounds)
setBounds in interface Viewpublic void setFocusManager(FocusManager focusManager)
setFocusManager in interface Viewpublic void setLocation(Location point)
View
setLocation in interface Viewpublic void setParent(View view)
setParent in interface Viewpublic void setMaximumSize(Size size)
setMaximumSize in interface Viewpublic void setSize(Size size)
setSize in interface Viewpublic void setView(View view)
setView in interface Viewpublic View subviewFor(Location location)
View
subviewFor in interface Viewpublic void thirdClick(Click click)
ViewdoubleClick.
thirdClick in interface Viewpublic java.lang.String toString()
toString in class java.lang.Objectpublic void update(NakedObject object)
View
update in interface Viewpublic void updateView()
updateView in interface Viewpublic ViewAreaType viewAreaType(Location mouseLocation)
View
viewAreaType in interface Viewpublic void viewMenuOptions(UserActionSet menuOptions)
ViewmenuOptions object.
viewMenuOptions in interface View
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||