|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.ui.ControlBase
ewe.ui.Control
ewe.ui.EditControl
ewe.ui.mTextArea
This is a Deprecated control - it allows simple multi-line text editing. However it does not allow word wrapping to the display width. Use mTextPad instead - this is more useful and complete.
| Field Summary | |
protected boolean |
amScrolling
Deprecated. |
protected static ImageBuffer |
blockBuffer
Deprecated. |
int |
charWidth
Deprecated. |
protected ewe.ui.textAreaState |
curState
Deprecated. |
protected static ImageBuffer |
itemBuffer
Deprecated. |
protected String[] |
lines
Deprecated. |
int |
minXScroll
Deprecated. A percent figure. |
int |
minYScroll
Deprecated. A percent figure. |
boolean |
selectAllOnFocus
Deprecated. If this is true the entire text is selected when it gains focus. |
int |
spacing
Deprecated. |
boolean |
wrapToScreenSize
Deprecated. This is not implemented yet. |
| Fields inherited from class ewe.ui.EditControl |
CASE_LOWER, CASE_NORMAL, CASE_NUMBERS, CASE_SENTENCE, CASE_UPPER, colors, conditionalChar, conditionalCharIndex, doingLocalInput, doingNativeInput, FLAG_INPUT_ON_FOCUS, FLAG_KEEP_FOCUS_AFTER_INPUT, FLAG_PASSIVE, FLAG_USE_NATIVE, inFocus, inputFlags, inputMethod, justGotFocus, oldText, pageColor, startNativeOnPaint, textCase, validator |
| Fields inherited from class ewe.ui.Control |
_debug, backGround, beforeRemoved, borderColor, borderStyle, borderWidth, children, columns, constraints, DoPaintMethod, dragging, dragResolution, dragTime, exitKeys, fieldTransfer, font, foreGround, haveNativePaint, height, holdDownPause, holdTick, hotKey, image, lastSelected, listeners, maxHeight, maxWidth, menuState, minHeight, minWidth, modifiers, MyClass, name, next, np, parent, penStatus, popupSound, popupSoundClip, preferredHeight, preferredWidth, prev, prompt, promptControl, rows, ss, standardBorder, standardEdge, startDragResolution, tags, tail, text, toolTip, width, x, y |
| Fields inherited from class ewe.ui.ControlBase |
clipItems, clipObject, clipOwner, curPoint, currentPenEvent, debugControl, debugFlag, DidHoldDown, doubleBuffer, doubleClickTime, firstPress, globalDrawFlat, globalEditable, globalEnabled, globalPalmStyle, globalSmallControls, GotPenDown, PenIsOn, TAG_LAST_USER_DATA, TAG_USER_DATA, TAKE_FIRST_PRESS, unnamed, useNativeTextInput |
| Fields inherited from interface ewe.ui.IScroll |
Higher, Horizontal, Lower, OPTION_INDICATOR_ONLY, PageHigher, PageLower, ScrollHigher, ScrollLower, TrackTo, Vertical |
| Fields inherited from interface ewe.ui.UIConstants |
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_BOTTOM, BF_BOTTOMLEFT, BF_BOTTOMRIGHT, BF_BUTTON, BF_DIAGONAL, BF_DIAGONAL_ENDBOTTOMLEFT, BF_DIAGONAL_ENDBOTTOMRIGHT, BF_DIAGONAL_ENDTOPLEFT, BF_DIAGONAL_ENDTOPRIGHT, BF_EXACT, BF_FLAT, BF_LEFT, BF_MIDDLE, BF_MONO, BF_PALM, BF_RECT, BF_RIGHT, BF_SOFT, BF_SQUARE, BF_TOP, BF_TOPLEFT, BF_TOPRIGHT, EDGE_BUMP, EDGE_ETCHED, EDGE_RAISED, EDGE_SUNKEN |
| Fields inherited from interface ewe.ui.CellConstants |
BORDER, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, FIXEDSIZE, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST |
| Fields inherited from interface ewe.ui.ControlConstants |
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, Disabled, DisablePopupMenu, DisplayOnly, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpKeyEvents, SendUpPenEvents, ShowSIP, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown |
| Fields inherited from interface ewe.fx.ImageRefresher |
KEEP_VISIBLE |
| Constructor Summary | |
mTextArea(int rows,
int columns)
Deprecated. |
|
| Method Summary | |
protected void |
calculateSizes()
Deprecated. Override this to calculate the preferred, minimum and maximum size of your control. |
boolean |
canGo(int orientation,
int direction,
int position)
Deprecated. |
void |
checkScrolls()
Deprecated. |
boolean |
checkSipCoverage()
Deprecated. |
protected void |
clearCursor()
Deprecated. |
void |
clearSelection()
Deprecated. |
boolean |
deleteSelection()
Deprecated. |
void |
doPaint(Graphics g,
Rect area)
Deprecated. |
protected void |
doPaintData(Graphics g)
Deprecated. Repaint the "data" part of the Control. |
protected void |
doPaintData(Graphics g,
Rect area)
Deprecated. |
void |
doScroll(int which,
int action,
int value)
Deprecated. |
void |
dragged(DragContext dc)
Deprecated. This is called during the drag operation. |
protected boolean |
fix()
Deprecated. |
protected void |
fixText()
Deprecated. |
int |
getActual(int which)
Deprecated. |
protected int |
getAvailableWidth()
Deprecated. |
protected boolean |
getCharRect(int ch,
int ln,
Rect dest)
Deprecated. |
int |
getCurrent(int which)
Deprecated. |
protected int |
getItemHeight()
Deprecated. |
protected String |
getLine()
Deprecated. |
protected String |
getLine(int index)
Deprecated. |
String[] |
getLines()
Deprecated. |
int |
getNumLines()
Deprecated. |
protected Point |
getPenChar(Point onControl)
Deprecated. |
int |
getScreenRows()
Deprecated. |
ScrollablePanel |
getScrollablePanel()
Deprecated. |
Object |
getSelection()
Deprecated. |
String |
getText()
Deprecated. |
protected int |
getTextWidth()
Deprecated. |
int |
getVisible(int which,
int forSize)
Deprecated. |
void |
gotFocus(int how)
Deprecated. |
boolean |
hasSelection()
Deprecated. |
protected void |
insertLine(int index)
Deprecated. |
void |
lostFocus(int how)
Deprecated. |
boolean |
needScrollBar(int which,
int forSize)
Deprecated. |
protected boolean |
newCursorPos(int ch,
int ln,
boolean takeSel)
Deprecated. |
protected void |
newText(String txt,
int newCp,
boolean redoData)
Deprecated. |
boolean |
noSelection()
Deprecated. |
void |
onKeyEvent(KeyEvent ev)
Deprecated. |
protected boolean |
paintConditionalChar(Graphics g,
boolean highlight)
Deprecated. |
void |
paintCursor(Graphics gr)
Deprecated. |
void |
paintLastChar(Graphics g)
Deprecated. |
void |
paintLastChar(Graphics g,
boolean eraseIt)
Deprecated. |
void |
paintLine(Graphics g,
int index)
Deprecated. |
void |
penDoubleClicked(Point where)
Deprecated. Called if the Pen or Mouse button is double clicked on the Control. |
void |
penHeld(Point p)
Deprecated. Called when the Pen or Mouse button is held down on the control. |
void |
penPressed(Point where)
Deprecated. Called when the Pen or Mouse button is pressed on the control. |
void |
penReleased(Point wher)
Deprecated. Called when the Pen or Mouse button is released on the control. |
boolean |
replaceSelection(Object with)
Deprecated. |
void |
selectAll()
Deprecated. |
void |
setText(String what)
Deprecated. |
protected void |
splitLines(int width)
Deprecated. |
void |
ticked(int id,
int elapsed)
Deprecated. |
protected void |
updateScrolls()
Deprecated. |
| Methods inherited from class ewe.ui.EditControl |
acceptsData, checkInputMethod, dataBeingRemoved, dataTransferCancelled, fixCase, getBestPassiveFlags, getColors, hasChanged, keepConditionalChar, onControlEvent, setConditionalChar, setNativeInputFlags, startActiveInput, startLocalInput, startNativeInput, takeData, update, updateData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Methods inherited from interface ewe.ui.ScrollClient |
getServer, setServer |
| Field Detail |
protected String[] lines
public boolean wrapToScreenSize
public int spacing
public int minXScroll
public int minYScroll
public boolean selectAllOnFocus
public int charWidth
protected static ImageBuffer itemBuffer
protected static ImageBuffer blockBuffer
protected boolean amScrolling
protected ewe.ui.textAreaState curState
| Constructor Detail |
public mTextArea(int rows,
int columns)
| Method Detail |
protected int getItemHeight()
protected int getTextWidth()
protected void calculateSizes()
Control
calculateSizes in class Controlprotected int getAvailableWidth()
public int getNumLines()
protected void splitLines(int width)
protected void insertLine(int index)
protected boolean getCharRect(int ch,
int ln,
Rect dest)
public void setText(String what)
setText in class Controlpublic String getText()
getText in class Controlpublic String[] getLines()
protected void fixText()
public int getScreenRows()
public void paintLastChar(Graphics g)
public void paintLastChar(Graphics g,
boolean eraseIt)
public boolean deleteSelection()
deleteSelection in interface Selectable
public void paintLine(Graphics g,
int index)
public void doPaint(Graphics g,
Rect area)
doPaint in class Controlpublic void paintCursor(Graphics gr)
protected void doPaintData(Graphics g)
Control
doPaintData in class Controlg - The Graphics object to paint to.
protected void doPaintData(Graphics g,
Rect area)
public ScrollablePanel getScrollablePanel()
public void doScroll(int which,
int action,
int value)
doScroll in interface ScrollClientpublic int getActual(int which)
getActual in interface ScrollClient
public int getVisible(int which,
int forSize)
getVisible in interface ScrollClientpublic int getCurrent(int which)
getCurrent in interface ScrollClient
public boolean needScrollBar(int which,
int forSize)
needScrollBar in interface ScrollClient
public boolean canGo(int orientation,
int direction,
int position)
canGo in interface ScrollClientpublic void checkScrolls()
protected void updateScrolls()
public void ticked(int id,
int elapsed)
ticked in interface TimerProcticked in class Controlpublic void selectAll()
selectAll in class EditControlpublic boolean checkSipCoverage()
checkSipCoverage in class EditControlpublic void gotFocus(int how)
gotFocus in class Controlpublic void lostFocus(int how)
lostFocus in class Controlprotected boolean fix()
protected boolean newCursorPos(int ch,
int ln,
boolean takeSel)
protected void newText(String txt,
int newCp,
boolean redoData)
protected Point getPenChar(Point onControl)
protected void clearCursor()
protected String getLine(int index)
protected String getLine()
public boolean noSelection()
noSelection in interface Selectablepublic Object getSelection()
getSelection in interface Selectablepublic boolean replaceSelection(Object with)
replaceSelection in interface Selectablepublic boolean hasSelection()
hasSelection in interface Selectablepublic void clearSelection()
public void penPressed(Point where)
ControlWithin this method you can use the Control.currentPenEvent value to find out more about the PenEvent that caused this - including any modifiers (e.g. SHIFT keys) or determine if the left or right mouse button was pressed.
penPressed in class Controlwhere - The point on the Control where the pen was pressed.public void penDoubleClicked(Point where)
ControlWithin this method you can use the Control.currentPenEvent value to find out more about the PenEvent that caused this - including any modifiers (e.g. SHIFT keys) or determine if the left or right mouse button was pressed.
By default this method simply calls the penClicked() method.
penDoubleClicked in class Controlwhere - The point on the Control where the pen was double-clicked.public void penReleased(Point wher)
ControlWithin this method you can use the Control.currentPenEvent value to find out more about the PenEvent that caused this - including any modifiers (e.g. SHIFT keys) or determine if the left or right mouse button was pressed.
penReleased in class Controlwher - The point on the Control where the pen was released.public void penHeld(Point p)
ControlWithin this method you can use the Control.currentPenEvent value to find out more about the PenEvent that caused this - including any modifiers (e.g. SHIFT keys) or determine if the left or right mouse button was pressed.
This method is usually used to display a context sensitive menu. In fact the default code for it is:
if (!menuIsActive()) doMenu(p);
penHeld in class Controlp - The point on the Control where the pen was held.public void dragged(DragContext dc)
Control
dragged in class Controldc - The DragContext for the dragging operation.public void onKeyEvent(KeyEvent ev)
onKeyEvent in class Control
protected boolean paintConditionalChar(Graphics g,
boolean highlight)
paintConditionalChar in class EditControl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||