|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface View
| Field Summary | |
|---|---|
static int |
HPADDING
Horizontal padding (||) between two components |
static int |
VPADDING
Vertical padding (=) between two components |
| 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)
|
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 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)
|
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. |
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. |
| Field Detail |
|---|
static final int HPADDING
static final int VPADDING
| Method Detail |
|---|
void addView(View view)
Consent canChangeValue()
boolean canFocus()
boolean contains(View view)
boolean containsFocus()
void contentMenuOptions(UserActionSet menuOptions)
menuOptions object.
void debug(DebugString debug)
void debugStructure(DebugString debug)
void dispose()
removeView(View)void drag(InternalDrag drag)
void dragCancel(InternalDrag drag)
View dragFrom(Location location)
void dragIn(ContentDrag drag)
void dragOut(ContentDrag drag)
Drag dragStart(DragStart drag)
void dragTo(InternalDrag drag)
void draw(Canvas canvas)
void drop(ContentDrag drag)
void drop(ViewDrag drag)
void editComplete(boolean moveFocus,
boolean toNextField)
moveFocus - 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.void entered()
void exited()
void firstClick(Click click)
click - the location within the current view where the mouse click took placevoid focusLost()
void focusReceived()
Location getAbsoluteLocation()
int getBaseline()
Bounds getBounds()
getSize(),
getLocation()Content getContent()
FocusManager getFocusManager()
int getId()
Location getLocation()
getBounds()Size getMaximumSize()
Padding getPadding()
View getParent()
Size getRequiredSize(Size maximumSize)
Size getSize()
getBounds()ViewSpecification getSpecification()
ViewState getState()
View[] getSubviews()
View getView()
ViewAxis getViewAxis()
Viewer getViewManager()
Feedback getFeedbackManager()
Workspace getWorkspace()
boolean hasFocus()
View identify(Location mouseLocation)
void invalidateContent()
invalidateLayout()void invalidateLayout()
invalidateContent()void keyPressed(KeyboardAction key)
key - TODO
void keyReleased(int keyCode,
int modifiers)
void keyTyped(char keyCode)
keyPressed and a subsequent call to
keyReleased.
void layout(Size maximumSize)
void limitBoundsWithin(Size size)
void markDamaged()
void markDamaged(Bounds bounds)
void mouseDown(Click click)
void mouseMoved(Location location)
location - the position relative to the top-left of this viewvoid mouseUp(Click click)
void objectActionResult(NakedObject result,
Location at)
at - the location where the action took placeView pickupContent(Location location)
View pickupView(Location location)
void print(Canvas canvas)
void refresh()
void removeView(View view)
void replaceView(View toReplace,
View replacement)
void secondClick(Click click)
click.
void setBounds(Bounds bounds)
void setFocusManager(FocusManager focusManager)
void setLocation(Location point)
void setParent(View view)
void setMaximumSize(Size size)
void setSize(Size size)
void setView(View view)
View subviewFor(Location location)
void thirdClick(Click click)
doubleClick.
void update(NakedObject object)
void updateView()
ViewAreaType viewAreaType(Location mouseLocation)
mouseLocation -
void viewMenuOptions(UserActionSet menuOptions)
menuOptions object.
void drag(ContentDrag contentDrag)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||