|
||||||||||
| 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
org.nakedobjects.plugins.dnd.viewer.view.field.AbstractField
public abstract class AbstractField
| Field Summary | |
|---|---|
protected static int |
TEXT_WIDTH
|
| Fields inherited from interface org.nakedobjects.plugins.dnd.View |
|---|
HPADDING, VPADDING |
| Constructor Summary | |
|---|---|
protected |
AbstractField(Content content,
ViewSpecification design,
ViewAxis axis)
|
| Method Summary | |
|---|---|
boolean |
canFocus()
Determines whether this view accepts keyboard focus. |
protected boolean |
cantClear()
|
protected void |
clear()
|
void |
contentMenuOptions(UserActionSet options)
Called when the popup menu is being populated for this view. |
protected void |
copyToClipboard()
|
void |
drag(InternalDrag drag)
Indicates the drag started within this view's bounds is continuing. |
void |
dragCancel(InternalDrag drag)
Default implementation - does nothing |
View |
dragFrom(Location location)
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 |
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. |
int |
getBaseline()
|
boolean |
getIdentified()
|
Padding |
getPadding()
|
View |
getRoot()
|
boolean |
hasFocus()
|
boolean |
indicatesForView(Location mouseLocation)
|
protected void |
initiateSave(boolean moveToNextField)
|
boolean |
isEmpty()
|
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. |
protected void |
pasteFromClipboard()
|
protected boolean |
provideClearCopyPaste()
|
protected abstract void |
save()
|
java.lang.String |
toString()
|
ViewAreaType |
viewAreaType(Location mouseLocation)
Determines if the user is invoking an action relating to this view, rather than to whatever this view represents. |
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView |
|---|
addView, assignId, canChangeValue, contains, containsFocus, debug, debugStructure, dispose, drag, dragIn, dragOut, dragStart, drop, drop, editComplete, firstClick, focusLost, focusReceived, getAbsoluteLocation, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getMaximumSize, getParent, getRequiredSize, getSize, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, getWorkspace, identify, invalidateContent, invalidateLayout, layout, limitBoundsWithin, limitBoundsWithin, markDamaged, markDamaged, mouseDown, mouseMoved, mouseUp, objectActionResult, pickupContent, pickupView, print, refresh, removeView, replaceOptions, replaceView, secondClick, setBounds, setContent, setFocusManager, setLocation, setMaximumSize, setParent, setSize, setSpecification, setView, setViewAxis, subviewFor, thirdClick, update, updateView, viewMenuOptions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int TEXT_WIDTH
| Constructor Detail |
|---|
protected AbstractField(Content content,
ViewSpecification design,
ViewAxis axis)
| Method Detail |
|---|
public boolean canFocus()
View
canFocus in interface ViewcanFocus in class AbstractViewprotected boolean provideClearCopyPaste()
protected boolean cantClear()
protected void clear()
protected void copyToClipboard()
protected void pasteFromClipboard()
public void drag(InternalDrag drag)
drag in interface Viewdrag in class AbstractViewpublic void dragCancel(InternalDrag drag)
dragCancel in interface ViewdragCancel in class AbstractViewpublic View dragFrom(Location location)
dragFrom in interface ViewdragFrom in class AbstractViewpublic void dragTo(InternalDrag drag)
dragTo in interface ViewdragTo in class AbstractViewpublic void draw(Canvas canvas)
View
draw in interface Viewdraw in class AbstractViewpublic void entered()
View
entered in interface Viewentered in class AbstractViewpublic void exited()
View
exited in interface Viewexited in class AbstractViewpublic boolean getIdentified()
public Padding getPadding()
getPadding in interface ViewgetPadding in class AbstractViewpublic View getRoot()
public boolean hasFocus()
hasFocus in interface ViewhasFocus in class AbstractViewpublic boolean isEmpty()
public boolean indicatesForView(Location mouseLocation)
public void keyPressed(KeyboardAction key)
keyPressed in interface ViewkeyPressed in class AbstractViewkey - TODO
public void keyReleased(int keyCode,
int modifiers)
keyReleased in interface ViewkeyReleased in class AbstractViewpublic void keyTyped(char keyCode)
keyPressed and a subsequent call to
keyReleased.
keyTyped in interface ViewkeyTyped in class AbstractViewpublic void contentMenuOptions(UserActionSet options)
ViewmenuOptions object.
contentMenuOptions in interface ViewcontentMenuOptions in class AbstractViewprotected final void initiateSave(boolean moveToNextField)
protected abstract void save()
public java.lang.String toString()
toString in class AbstractViewpublic ViewAreaType viewAreaType(Location mouseLocation)
View
viewAreaType in interface ViewviewAreaType in class AbstractViewpublic int getBaseline()
getBaseline in interface ViewgetBaseline in class AbstractView
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||