|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.viewer.lightweight.AbstractView
org.nakedobjects.viewer.lightweight.AbstractValueView
| Field Summary | |
protected Value |
objectField
|
| Fields inherited from class org.nakedobjects.viewer.lightweight.AbstractView |
DEBUG, DRAG_HANDLE_WIDTH, HPADDING, ICON_SIZE, VPADDING |
| Fields inherited from interface org.nakedobjects.viewer.lightweight.InternalView |
FIELD, NORMAL |
| Constructor Summary | |
AbstractValueView()
|
|
| Method Summary | |
boolean |
canChangeValue()
Determines if the user is able to change the held value. |
boolean |
canFocus()
|
protected java.lang.Object |
clone()
|
void |
drag(InternalDrag drag)
Indicates the drag started within this view's bounds is continuing. |
void |
dragCancel(InternalDrag drag)
Default implementation - does nothing |
void |
dragFrom(InternalDrag drag)
Indicates the start of a drag within this view's bounds. |
void |
dragTo(InternalDrag drag)
Indicates the drag started within this view's bounds has been finished (although the location may now be outside of its bounds). |
void |
draw(Canvas canvas)
Called by the frame, or the parent view, when this view must redraw itself. |
void |
editComplete()
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 |
focusLost()
|
void |
focusRecieved()
|
NakedObject |
getContainedBy()
|
Field |
getFieldOf()
|
boolean |
getIdentified()
|
Padding |
getPadding()
|
View |
getRoot()
|
abstract NakedValue |
getValue()
|
boolean |
hasFocus()
|
boolean |
indicatesForView(Location mouseLocation)
Determines if the user is invoking an action relating to this view, rather than to whatever this view represents. |
protected void |
init(NakedValue value)
|
void |
keyPressed(int keyCode,
int modifiers)
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. data entry keys and not shift, up-arrow etc). |
View |
makeView(Naked object,
Field field)
Creates a new concrete view, using this view as a prototype, reassigning the naked object in the process. |
void |
menuOptions(MenuOptionSet options)
Called when the popup menu is being populated for this view. |
ObjectView |
parentObjectView()
returns the parent view |
abstract void |
refresh()
refresh this views state from the value objects state so that it accurately reflects the value objects value. |
protected void |
refreshDerivedValue()
|
protected void |
refreshValue()
|
protected void |
set(java.lang.String value)
|
java.lang.String |
toString()
|
| Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractView |
addControl, assignId, backgroundColor, calculateRepaintArea, contains, createCanvas, debugDetails, defaultFieldHeight, dispose, enteredSubview, exitedSubview, firstClick, getAbsoluteLocation, getBaseline, getBorder, getBounds, getId, getLocation, getName, getParent, getSize, getWorkspace, identifyView, invalidateLayout, isLayoutInvalid, isOpen, isReplaceable, layout, limitBounds, mouseMoved, print, redraw, removeControl, repaintAll, secondClick, setBorder, setBounds, setLayoutValid, setLocation, setParent, setSize, setWorkspace, thirdClick, transparentBackground, validateLayout |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.nakedobjects.viewer.lightweight.InternalView |
setParent |
| Methods inherited from interface org.nakedobjects.viewer.lightweight.View |
calculateRepaintArea, contains, debugDetails, dispose, enteredSubview, exitedSubview, firstClick, getAbsoluteLocation, getBaseline, getBorder, getBounds, getId, getLocation, getName, getParent, getRequiredSize, getSize, getWorkspace, identifyView, invalidateLayout, isLayoutInvalid, isOpen, isReplaceable, layout, mouseMoved, print, redraw, secondClick, setBorder, setBounds, setLocation, setSize, thirdClick, validateLayout |
| Methods inherited from interface org.nakedobjects.viewer.lightweight.KeyboardAccessible |
redraw |
| Field Detail |
protected Value objectField
| Constructor Detail |
public AbstractValueView()
| Method Detail |
public NakedObject getContainedBy()
public abstract NakedValue getValue()
public Field getFieldOf()
getFieldOf in interface InternalViewpublic boolean getIdentified()
public Padding getPadding()
getPadding in interface ViewgetPadding in class AbstractViewpublic View getRoot()
getRoot in interface InternalViewpublic boolean canChangeValue()
canChangeValue in interface KeyboardAccessiblepublic boolean canFocus()
canFocus in interface KeyboardAccessible
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic void drag(InternalDrag drag)
drag in interface DragInternalpublic void dragCancel(InternalDrag drag)
dragCancel in interface DragInternalpublic void dragFrom(InternalDrag drag)
dragFrom in interface DragInternalpublic void dragTo(InternalDrag drag)
dragTo in interface DragInternalpublic void draw(Canvas canvas)
View
draw in interface Viewdraw in class AbstractViewpublic void editComplete()
editComplete in interface KeyboardAccessiblepublic void entered()
View
entered in interface Viewentered in class AbstractViewpublic void exited()
View
exited in interface Viewexited in class AbstractViewpublic void focusLost()
focusLost in interface KeyboardAccessiblepublic void focusRecieved()
focusRecieved in interface KeyboardAccessiblepublic boolean hasFocus()
hasFocus in interface KeyboardAccessiblepublic boolean indicatesForView(Location mouseLocation)
View
indicatesForView in interface ViewindicatesForView in class AbstractView
public void keyPressed(int keyCode,
int modifiers)
keyPressed in interface KeyboardAccessiblekeyCode - modifiers -
public void keyReleased(int keyCode,
int modifiers)
keyReleased in interface KeyboardAccessiblekeyCode - modifiers - public void keyTyped(char keyCode)
keyPressed and a subsequent call to keyReleased.
keyTyped in interface KeyboardAccessiblekeyCode -
public View makeView(Naked object,
Field field)
throws java.lang.CloneNotSupportedException
View
makeView in interface Viewobject - the object the new view is for
java.lang.CloneNotSupportedExceptionprotected void init(NakedValue value)
public void menuOptions(MenuOptionSet options)
ViewmenuOptions object.
menuOptions in interface ViewmenuOptions in class AbstractViewpublic ObjectView parentObjectView()
parentObjectView in interface InternalViewpublic abstract void refresh()
public java.lang.String toString()
protected void refreshDerivedValue()
protected void refreshValue()
protected void set(java.lang.String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||