|
||||||||||
| 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.mTextPad
ewe.ui.formatted.TextDisplay
| Nested Class Summary | |
class |
TextDisplay.HotSpotEvent
|
| Field Summary | |
Color |
hotColor
The color for hot spots. |
static int |
LINES_SPLIT
This is a type of Control event. |
protected TextFormatter |
mouseOver
|
| Fields inherited from class ewe.ui.mTextPad |
allowOverwrite, amScrolling, backgroundImage, blockBuffer, charWidth, curState, disableCursor, disableTextChanges, dls, dontWantPopup, extraLineSpacing, forcedActualWidth, format, inputState, itemBuffer, leftMargin, lineHeight, lines, minXScroll, minYScroll, numLines, rightMargin, selectAllOnFocus, spacing, STATE_AUTOTAB, STATE_OVERWRITE, wantReturn, wrapToScreenSize |
| Fields inherited from class ewe.ui.EditControl |
blinkId, 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 | |
TextDisplay()
|
|
TextDisplay(int rows,
int columns)
|
|
| Method Summary | |
TextFormatter |
addTextFormatter(int lineIndex,
int numLines,
int fontFlags,
int lineFlags)
|
TextFormatter |
addTextFormatter(int lineIndex,
int characterIndex,
int length,
int fontFlags,
int lineFlags)
|
TextFormatter |
addTextFormatter(int lineIndex,
int characterIndex,
int length,
TextFormatter dest)
|
TextFormatter |
addTextFormatter(int indexInFullText,
int length,
TextFormatter dest)
|
TextFormatter |
addTextFormatter(TextFormatter formatter)
|
protected void |
applySpecialFormat(int formatIndex,
int lineIndex,
DisplayLine theLine,
FormattedTextSpecs format)
|
void |
clearHistory()
Clear the goBack history. |
void |
clearTextFormatters()
|
void |
deleteLastHistory()
|
void |
displayPropertiesChanged()
Call this to indicate that something about the display has changed. |
protected void |
drawSpecialFormat(int formatIndex,
int lineIndex,
DisplayLine theLine,
FormattedTextSpecs format,
Graphics g,
Color background)
|
void |
formattersSet()
This tells the TextDisplay that formatters have been set and so it can optimize itself based on this. |
void |
formClosing()
This is called to indicate that the Form is about to close and it causes a FormClosed event to be posted. |
protected void |
getColors(boolean hasFocus,
int flags)
Provides the colors to be used for the text and background colors. |
protected int |
getSpecialFormatCount(int lineIndex,
DisplayLine theLine)
|
TextFormatter |
getTextFormatter(Point onControl)
|
Vector |
getTextFormatter(Point onControl,
Vector dest)
|
Iterator |
getTextFormatters()
|
Object |
getToolTip(int x,
int y)
This should return an acceptable ToolTip object. |
void |
goBack()
This goes back one place in the saved states for the HtmlDisplay. |
boolean |
goToAnchor(String anchorName)
This tells the display to go to the specified anchor. |
boolean |
goToLine(int line)
Scroll to the specified line. |
protected boolean |
hotspotPressed(HotSpot hs,
Point where)
|
void |
imageSet(TextFormatter formatter)
|
void |
markHistory()
Mark the current location in the goBack history. |
protected void |
mouseMovedOnOff(TextFormatter tf,
boolean movedOn)
|
void |
onPenEvent(PenEvent ev)
Called to handle an incoming PenEvent. |
void |
penPressed(Point where)
Called when the Pen or Mouse button is pressed on the control. |
void |
refresh(AniImage image)
|
void |
repaintDataNow()
Repaint the "data" part of the Control now. |
protected void |
splitLines(int width)
|
void |
stopAniImages()
|
| Methods inherited from class ewe.ui.EditControl |
checkInputMethod, dataBeingRemoved, fixCase, getBestPassiveFlags, hasChanged, keepConditionalChar, onControlEvent, setConditionalChar, startActiveInput, startLocalInput, startNativeInput, takeData, updateData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Methods inherited from interface ewe.ui.ScrollClient |
getServer, setServer |
| Field Detail |
public Color hotColor
protected TextFormatter mouseOver
public static final int LINES_SPLIT
| Constructor Detail |
public TextDisplay()
public TextDisplay(int rows,
int columns)
| Method Detail |
public void repaintDataNow()
Control
repaintDataNow in class Control
protected int getSpecialFormatCount(int lineIndex,
DisplayLine theLine)
getSpecialFormatCount in class mTextPad
public Vector getTextFormatter(Point onControl,
Vector dest)
public TextFormatter getTextFormatter(Point onControl)
protected void applySpecialFormat(int formatIndex,
int lineIndex,
DisplayLine theLine,
FormattedTextSpecs format)
applySpecialFormat in class mTextPad
protected void drawSpecialFormat(int formatIndex,
int lineIndex,
DisplayLine theLine,
FormattedTextSpecs format,
Graphics g,
Color background)
drawSpecialFormat in class mTextPadpublic void refresh(AniImage image)
refresh in interface AniImage.ImageRefresherpublic void stopAniImages()
public void formClosing()
Control
formClosing in class Controlpublic void imageSet(TextFormatter formatter)
public TextFormatter addTextFormatter(TextFormatter formatter)
public TextFormatter addTextFormatter(int lineIndex,
int characterIndex,
int length,
TextFormatter dest)
public TextFormatter addTextFormatter(int lineIndex,
int characterIndex,
int length,
int fontFlags,
int lineFlags)
public TextFormatter addTextFormatter(int lineIndex,
int numLines,
int fontFlags,
int lineFlags)
public void clearTextFormatters()
public Iterator getTextFormatters()
public TextFormatter addTextFormatter(int indexInFullText,
int length,
TextFormatter dest)
protected void splitLines(int width)
splitLines in class mTextPadpublic void formattersSet()
protected void getColors(boolean hasFocus,
int flags)
EditControl
getColors in class EditControlhasFocus - True if the control currently has the focus.flags - This is the result of a call to getFlags(true) - which provides an OR'ing of all the flags
of this control and all its parents.
protected void mouseMovedOnOff(TextFormatter tf,
boolean movedOn)
public void onPenEvent(PenEvent ev)
Control
onPenEvent in class mTextPadpublic boolean goToAnchor(String anchorName)
anchorName - The name of the anchor.
protected boolean hotspotPressed(HotSpot hs,
Point where)
public boolean goToLine(int line)
line - The line to go to.
public void clearHistory()
public void markHistory()
public void deleteLastHistory()
public void goBack()
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 mTextPad
public Object getToolTip(int x,
int y)
Control
getToolTip in class Controlx - The x location of the mouse in this control.y - The y location of the mouse in this control.
public void displayPropertiesChanged()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||