|
||||||||||
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 InternalView
public boolean getIdentified()
public Padding getPadding()
getPadding
in interface View
getPadding
in class AbstractView
public View getRoot()
getRoot
in interface InternalView
public boolean canChangeValue()
canChangeValue
in interface KeyboardAccessible
public boolean canFocus()
canFocus
in interface KeyboardAccessible
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public void drag(InternalDrag drag)
drag
in interface DragInternal
public void dragCancel(InternalDrag drag)
dragCancel
in interface DragInternal
public void dragFrom(InternalDrag drag)
dragFrom
in interface DragInternal
public void dragTo(InternalDrag drag)
dragTo
in interface DragInternal
public void draw(Canvas canvas)
View
draw
in interface View
draw
in class AbstractView
public void editComplete()
editComplete
in interface KeyboardAccessible
public void entered()
View
entered
in interface View
entered
in class AbstractView
public void exited()
View
exited
in interface View
exited
in class AbstractView
public void focusLost()
focusLost
in interface KeyboardAccessible
public void focusRecieved()
focusRecieved
in interface KeyboardAccessible
public boolean hasFocus()
hasFocus
in interface KeyboardAccessible
public boolean indicatesForView(Location mouseLocation)
View
indicatesForView
in interface View
indicatesForView
in class AbstractView
public void keyPressed(int keyCode, int modifiers)
keyPressed
in interface KeyboardAccessible
keyCode
- modifiers
- public void keyReleased(int keyCode, int modifiers)
keyReleased
in interface KeyboardAccessible
keyCode
- modifiers
- public void keyTyped(char keyCode)
keyPressed
and a subsequent call to keyReleased
.
keyTyped
in interface KeyboardAccessible
keyCode
- public View makeView(Naked object, Field field) throws java.lang.CloneNotSupportedException
View
makeView
in interface View
object
- the object the new view is for
java.lang.CloneNotSupportedException
protected void init(NakedValue value)
public void menuOptions(MenuOptionSet options)
View
menuOptions
object.
menuOptions
in interface View
menuOptions
in class AbstractView
public ObjectView parentObjectView()
parentObjectView
in interface InternalView
public 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 |