|
||||||||||
| 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
org.nakedobjects.plugins.dnd.viewer.view.field.TextParseableFieldAbstract
org.nakedobjects.plugins.dnd.viewer.view.field.TextField
public abstract class TextField
| Field Summary | |
|---|---|
protected CursorPosition |
cursor
|
protected TextSelection |
selection
|
protected static Text |
style
|
protected TextContent |
textContent
|
| Fields inherited from class org.nakedobjects.plugins.dnd.viewer.view.field.AbstractField |
|---|
TEXT_WIDTH |
| Fields inherited from interface org.nakedobjects.plugins.dnd.View |
|---|
HPADDING, VPADDING |
| Constructor Summary | |
|---|---|
TextField(TextParseableContent content,
ViewSpecification specification,
ViewAxis axis,
boolean showLines,
int wrapStyle)
|
|
| Method Summary | |
|---|---|
protected abstract void |
align()
|
protected void |
changeMade()
|
protected void |
clear()
|
void |
contentMenuOptions(UserActionSet options)
Called when the popup menu is being populated for this view. |
protected void |
copyToClipboard()
|
void |
debug(DebugString debug)
Returns debug details about this view. |
void |
delete()
Delete the character to the left of the cursor. |
void |
deleteForward()
Delete the character to the right of the cursor. |
protected void |
down(boolean shift)
|
void |
drag(InternalDrag drag)
Indicates the drag started within this view's bounds is continuing. |
Drag |
dragStart(DragStart drag)
|
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. |
protected abstract void |
drawHighlight(Canvas canvas,
int maxWidth)
|
protected abstract void |
drawLines(Canvas canvas,
Color color,
int width)
|
protected abstract void |
drawText(Canvas canvas,
Color textColor,
int width)
|
void |
editComplete(boolean moveFocus,
boolean toNextField)
Indicates that editing has been completed and the entry should be saved. |
protected void |
end(boolean alt,
boolean shift)
|
protected boolean |
enter()
Called when 'enter' has been pressed. |
void |
entered()
Called as the mouse crosses the bounds, and ends up inside, of this view. |
protected void |
escape()
|
void |
exited()
Called as the mouse crosses the bounds, and ends up outside, of this view. |
void |
firstClick(Click click)
Responds to first click by placing the cursor between the two characters nearest the point of the mouse. |
void |
focusLost()
|
void |
focusReceived()
|
int |
getBaseline()
|
int |
getMaxFieldWidth()
Maximum text entry width. |
Size |
getMaximumSize()
|
Text |
getText()
|
boolean |
hasInvalidEntry()
|
protected void |
home(boolean alt,
boolean shift)
|
boolean |
isIdentified()
|
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 |
left(boolean alt,
boolean shift)
|
protected void |
pageDown(boolean shift,
boolean ctrl)
|
protected void |
pageUp(boolean shift,
boolean ctrl)
|
protected void |
pasteFromClipboard()
|
void |
refresh()
Refreshes this view by reaccessing its content and redisplaying it. |
protected void |
right(boolean alt,
boolean shift)
|
protected void |
save()
|
void |
secondClick(Click click)
Called when the user double-clicked this view. |
void |
setSize(Size size)
|
void |
setWidth(int width)
Set the width of the field, as a number of pixels |
protected void |
tab(boolean moveToNextField)
|
void |
thirdClick(Click click)
Called when the user triple-clicks the mouse buttone within this view. |
protected void |
up(boolean shift)
|
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.field.TextParseableFieldAbstract |
|---|
canChangeValue, cantClear, isEmpty, parseEntry, provideClearCopyPaste, saveValue |
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.field.AbstractField |
|---|
canFocus, dragCancel, dragFrom, getIdentified, getPadding, getRoot, hasFocus, indicatesForView, initiateSave, toString, viewAreaType |
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView |
|---|
addView, assignId, contains, containsFocus, debugStructure, dispose, drag, dragIn, dragOut, drop, drop, getAbsoluteLocation, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, 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, removeView, replaceOptions, replaceView, setBounds, setContent, setFocusManager, setLocation, setMaximumSize, setParent, setSpecification, setView, setViewAxis, subviewFor, 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 Text style
protected CursorPosition cursor
protected TextSelection selection
protected TextContent textContent
| Constructor Detail |
|---|
public TextField(TextParseableContent content,
ViewSpecification specification,
ViewAxis axis,
boolean showLines,
int wrapStyle)
| Method Detail |
|---|
protected abstract void align()
public void contentMenuOptions(UserActionSet options)
ViewmenuOptions object.
contentMenuOptions in interface ViewcontentMenuOptions in class AbstractFieldprotected void clear()
clear in class TextParseableFieldAbstractprotected void copyToClipboard()
copyToClipboard in class TextParseableFieldAbstractpublic void debug(DebugString debug)
AbstractView
debug in interface Viewdebug in class AbstractViewpublic void delete()
public void deleteForward()
protected void down(boolean shift)
public void drag(InternalDrag drag)
AbstractField
drag in interface Viewdrag in class AbstractFieldpublic Drag dragStart(DragStart drag)
dragStart in interface ViewdragStart in class AbstractViewpublic void dragTo(InternalDrag drag)
AbstractField
dragTo in interface ViewdragTo in class AbstractFieldpublic void draw(Canvas canvas)
View
draw in interface Viewdraw in class AbstractField
protected abstract void drawHighlight(Canvas canvas,
int maxWidth)
protected abstract void drawLines(Canvas canvas,
Color color,
int width)
protected abstract void drawText(Canvas canvas,
Color textColor,
int width)
public void editComplete(boolean moveFocus,
boolean toNextField)
View
editComplete in interface VieweditComplete in class AbstractViewmoveFocus - 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.
protected void end(boolean alt,
boolean shift)
protected boolean enter()
public void entered()
View
entered in interface Viewentered in class AbstractFieldprotected void escape()
public void exited()
View
exited in interface Viewexited in class AbstractFieldpublic void firstClick(Click click)
firstClick in interface ViewfirstClick in class AbstractViewclick - the location within the current view where the mouse click took placepublic void focusLost()
focusLost in interface ViewfocusLost in class AbstractViewpublic void focusReceived()
focusReceived in interface ViewfocusReceived in class AbstractViewpublic int getBaseline()
getBaseline in interface ViewgetBaseline in class AbstractFieldpublic Size getMaximumSize()
getMaximumSize in interface ViewgetMaximumSize in class AbstractViewpublic int getMaxFieldWidth()
TextBlockTarget
getMaxFieldWidth in interface TextBlockTargetpublic Text getText()
getText in interface TextBlockTarget
protected void home(boolean alt,
boolean shift)
protected void changeMade()
public boolean isIdentified()
public void keyPressed(KeyboardAction key)
keyPressed in interface ViewkeyPressed in class AbstractFieldkey - TODO
public void keyReleased(int keyCode,
int modifiers)
keyReleased in interface ViewkeyReleased in class AbstractFieldpublic void keyTyped(char keyCode)
keyPressed and a subsequent call to
keyReleased.
keyTyped in interface ViewkeyTyped in class AbstractField
protected void left(boolean alt,
boolean shift)
protected void pageDown(boolean shift,
boolean ctrl)
protected void pageUp(boolean shift,
boolean ctrl)
protected void pasteFromClipboard()
pasteFromClipboard in class TextParseableFieldAbstractpublic void refresh()
View
refresh in interface Viewrefresh in class AbstractView
protected void right(boolean alt,
boolean shift)
protected void save()
save in class AbstractFieldpublic void secondClick(Click click)
Viewclick.
secondClick in interface ViewsecondClick in class AbstractViewpublic void setWidth(int width)
public void setSize(Size size)
setSize in interface ViewsetSize in class AbstractViewprotected void tab(boolean moveToNextField)
public void thirdClick(Click click)
ViewdoubleClick.
thirdClick in interface ViewthirdClick in class AbstractViewprotected void up(boolean shift)
public boolean hasInvalidEntry()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||