|
||||||||||
| 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
public abstract class AbstractView
| Field Summary |
|---|
| Fields inherited from interface org.nakedobjects.plugins.dnd.View |
|---|
HPADDING, VPADDING |
| Constructor Summary | |
|---|---|
protected |
AbstractView(Content content)
|
protected |
AbstractView(Content content,
ViewAxis axis)
|
protected |
AbstractView(Content content,
ViewSpecification specification,
ViewAxis axis)
|
| Method Summary | |
|---|---|
void |
addView(View view)
|
protected void |
assignId()
|
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 options)
Called when the popup menu is being populated for this view. |
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. |
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)
No default behaviour, views can only be dropped on workspace |
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 location)
|
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(Bounds containerBounds)
Limits the bounds of the this view (when being moved or dropped) so it never extends outside the specified bounds e.g. |
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 location)
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)
Delegates all printing the the draw method. |
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. |
protected void |
replaceOptions(java.util.Enumeration possibleViews,
UserActionSet options)
|
void |
replaceView(View toReplace,
View replacement)
|
void |
secondClick(Click click)
Called when the user double-clicked this view. |
void |
setBounds(Bounds bounds)
|
protected void |
setContent(Content content)
|
void |
setFocusManager(FocusManager focusManager)
|
void |
setLocation(Location location)
Specifies the location of this view, relative to its enclosing view. |
void |
setMaximumSize(Size size)
|
void |
setParent(View parentView)
|
void |
setSize(Size size)
|
protected void |
setSpecification(ViewSpecification specification)
|
void |
setView(View view)
|
protected void |
setViewAxis(ViewAxis viewAxis)
|
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 location)
Determines if the user is invoking an action relating to this view, rather than to whatever this view represents. |
void |
viewMenuOptions(UserActionSet options)
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 |
| Constructor Detail |
|---|
protected AbstractView(Content content)
protected AbstractView(Content content,
ViewAxis axis)
protected AbstractView(Content content,
ViewSpecification specification,
ViewAxis axis)
| Method Detail |
|---|
public void addView(View view)
addView in interface Viewprotected void assignId()
public 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 options)
ViewmenuOptions object.
contentMenuOptions in interface Viewpublic void debug(DebugString debug)
debug in interface Viewpublic void debugStructure(DebugString b)
debugStructure in interface Viewpublic void dispose()
View
dispose in interface ViewView.removeView(View)public void drag(InternalDrag drag)
View
drag in interface Viewpublic void drag(ContentDrag contentDrag)
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)
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 final 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 final View getView()
View
getView in interface Viewpublic final 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 location)
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(Bounds containerBounds)
public 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 location)
View
mouseMoved in interface Viewlocation - 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 Viewdraw(Canvas)public void refresh()
View
refresh in interface Viewpublic void removeView(View view)
View
removeView in interface View
protected void replaceOptions(java.util.Enumeration possibleViews,
UserActionSet options)
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 Viewprotected void setContent(Content content)
public void setLocation(Location location)
View
setLocation in interface Viewpublic final void setParent(View parentView)
setParent in interface Viewpublic void setMaximumSize(Size size)
setMaximumSize in interface Viewpublic void setSize(Size size)
setSize in interface Viewprotected void setSpecification(ViewSpecification specification)
public final void setView(View view)
setView in interface Viewprotected void setViewAxis(ViewAxis viewAxis)
public 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 location)
View
viewAreaType in interface Viewpublic void viewMenuOptions(UserActionSet options)
ViewmenuOptions object.
viewMenuOptions in interface View
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||