mWaba.gui.control
Class mInput
java.lang.Object
|
+--waba.ui.Control
|
+--waba.ui.Container
|
+--mWaba.gui.mControl
|
+--mWaba.gui.control.mInput
- public class mInput
- extends mControl
- implements TimerProc
Fields inherited from class mWaba.gui.mControl |
_debug,
AlwaysEnabled,
AlwaysRecalculateSize,
backGround,
borderWidth,
CapturesPen,
columns,
debugGui,
defaultAddMeCellConstraints,
defaultAddMeControlConstraints,
DidHoldDown,
Disabled,
doubleBuffer,
doubleClickTime,
dragging,
dragResolution,
DrawFlat,
emptySize,
firstPress,
fixedPreferredSize,
fixedSize,
ForceResize,
foreGround,
globalDrawFlat,
globalEditable,
globalEnabled,
globalSmallControls,
GotPenDown,
GotPreferredSize,
holdDownPause,
holdTick,
ImageChanged,
Invisible,
KeepImage,
kids,
listeners,
modifiers,
myFont,
myFrame,
NoFocus,
NotAnEditor,
NotEditable,
PenTransparent,
preferredSize,
PreferredSizeOnly,
pressPoint,
prompt,
SendUpKeyEvents,
SendUpPenEvents,
ShrinkToNothing,
SmallControl,
SpecialBackground,
TakeControlEvents,
text,
Transparent,
WantDrag,
WantHoldDown |
Fields inherited from class waba.ui.Container |
children,
numChildren,
tail |
Fields inherited from class waba.ui.Control |
height,
next,
parent,
width,
x,
y |
Methods inherited from class mWaba.gui.mControl |
add,
addListener,
addToFront,
amFlat,
amOnTopFrame,
amSmall,
callBack,
checkHasModifier,
checkPenTransparent,
consume,
contains,
doBackground,
doBorder,
doPaintChildren,
editable,
enabled,
fixSizeAt,
getBackground,
getChildren,
getChildren,
getControlBuffer,
getControlBuffer,
getDim,
getFont,
getFontMetrics,
getForeground,
getFrame,
getFrameOrContainer,
getGraphics,
getNext,
getPosInFrame,
getPreferredSize,
getSurface,
handedPenEvent,
handOffPenEvent,
handOffPenEvent,
hasModifier,
inheritModifiers,
isOnMe,
make,
makeFrameTopMost,
modify,
modifyAll,
modifyAll,
notifyAction,
onControlEvent,
onEvent,
onLabelPenEvent,
onPaint,
onPenEvent,
paintBackground,
paintChildren,
penClicked,
penReleased,
postEvent,
recalculateSize,
redisplay,
reduceClip,
remove,
removeListener,
repaint,
repaintDataNow,
repaintNow,
repaintNow,
requestCallBack,
requestResizeTo,
resetRect,
resizeTo,
restore,
sendToListeners,
set,
setNext,
setParent,
setRect,
show,
shown,
stopDragging,
visible |
Methods inherited from class waba.ui.Container |
findChild |
Methods inherited from class waba.ui.Control |
addTimer,
contains,
createGraphics,
getFontMetrics,
getMainWindow,
getParent,
getRect,
removeTimer |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
spacing
public int spacing
validator
public InputValidator validator
isPassword
public boolean isPassword
leftMost
protected int leftMost
numDisplayed
protected int numDisplayed
startSel
protected int startSel
endSel
protected int endSel
cursorPos
protected int cursorPos
cursorOn
protected boolean cursorOn
hasCursor
protected boolean hasCursor
justGotFocus
protected boolean justGotFocus
hidden
public static java.lang.String hidden
mInput
public mInput()
mInput
public mInput(java.lang.String txt)
calculatePreferredSize
protected void calculatePreferredSize()
- Overrides:
- calculatePreferredSize in class mControl
getCharRect
protected boolean getCharRect(int which,
waba.fx.Rect dest)
ticked
public void ticked(int id,
int howLate)
- Specified by:
- ticked in interface TimerProc
- Overrides:
- ticked in class mControl
gotFocus
public void gotFocus()
- Overrides:
- gotFocus in class mControl
lostFocus
public void lostFocus()
- Overrides:
- lostFocus in class mControl
getDisplay
public java.lang.String getDisplay(java.lang.String s)
doPaintData
public void doPaintData(waba.fx.Graphics gr)
- Overrides:
- doPaintData in class mControl
doPaint
public void doPaint(waba.fx.Graphics g,
waba.fx.Rect area)
- Overrides:
- doPaint in class mControl
paintCursor
public void paintCursor(waba.fx.Graphics gr)
paintLastChar
public void paintLastChar(waba.fx.Graphics g)
fix
protected boolean fix()
validateText
public boolean validateText(java.lang.String what)
newText
public void newText(java.lang.String what,
int newCursorPos)
newText
public void newText(java.lang.String what,
int newCursorPos,
boolean repaintAll)
newCursorPos
protected void newCursorPos(int where,
boolean takeSelection)
newCursorPos
protected void newCursorPos(int where)
deleteSelection
protected boolean deleteSelection()
onKeyEvent
public void onKeyEvent(waba.ui.KeyEvent ev)
- Overrides:
- onKeyEvent in class mControl
findPressedChar
public int findPressedChar(Point where)
selectAll
public void selectAll()
noSelection
public boolean noSelection()
penPressed
public void penPressed(Point where)
- Overrides:
- penPressed in class mControl
penDoubleClicked
public void penDoubleClicked(Point where)
- Overrides:
- penDoubleClicked in class mControl
startDragging
public void startDragging(DragContext dc)
- Overrides:
- startDragging in class mControl
dragged
public void dragged(DragContext dc)
- Overrides:
- dragged in class mControl
doDragAt
protected void doDragAt(Point p)
penHeld
public void penHeld(Point p)
- Overrides:
- penHeld in class mControl