|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.app.Listener
danger.ui.View
danger.ui.Container
danger.ui.Control
danger.ui.WrappedText
danger.ui.DisplayText
danger.ui.StaticTextBox
danger.ui.ScrollingTextBox
danger.ui.LinkTextBox
danger.ui.SelectTextBox
danger.ui.MutableTextBox
danger.ui.Editor.Filters
danger.ui.Editor.TextChanges
danger.ui.Editor.Keyboard
danger.ui.Editor.Clipboard
danger.ui.Editor.UndoRedo
danger.ui.Editor.Input
danger.ui.Editor.AutoText
danger.ui.EditText
danger.ui.PasswordEditText
public class PasswordEditText
PasswordTextField is a TextField in which all characters display as dots. The user is also prevented from copying text from the field to the pasteboard. There is not much motivation for a multiline password field to exist, but MIDP requires one, so here it is for you to use too.
| Field Summary |
|---|
| Fields inherited from class danger.ui.SelectTextBox |
|---|
CURSOR_FIXED, CURSOR_MOBILE, LAST_POINT_SET, mCursorRect, SELECTION_ANCHOR, SELECTION_END |
| Fields inherited from class danger.ui.WrappedText |
|---|
JUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT |
| Fields inherited from class danger.ui.Control |
|---|
mValue |
| Constructor Summary | |
|---|---|
PasswordEditText()
Default constructor |
|
PasswordEditText(String inLabel)
Constructor that includes a label |
|
| Method Summary | |
|---|---|
boolean |
canGrabSelection()
Returns false because you can't copy from a password field. |
protected CharSequence |
getDisplayText()
Returns the display buffer, which has bullets instead of the real characters of the buffer. |
CharSequence |
grabSelectionSequence()
Returns null because you can't copy from a password field. |
protected void |
onTextChanged(int start,
int oldLen,
int newLen)
Updates the display buffer to match the insertions and deletions of the real buffer. |
| Methods inherited from class danger.ui.EditText |
|---|
getActiveMetaKey, setActiveMetaKey |
| Methods inherited from class danger.ui.Editor.AutoText |
|---|
clear, deleteChar, getAutoCap, getAutoText, insert, isShortcutTrigger, setAutoCap, setAutoText |
| Methods inherited from class danger.ui.Editor.Input |
|---|
canInsertSpecial, eventKeyDown, eventRawKeyUp, eventShortcut, isInputMethodActive, receiveEvent |
| Methods inherited from class danger.ui.Editor.UndoRedo |
|---|
canRedo, canUndo, clearUndo, redo, setText, setText, undo |
| Methods inherited from class danger.ui.Editor.Clipboard |
|---|
canCut, canPaste, cutSelection, paste |
| Methods inherited from class danger.ui.Editor.Keyboard |
|---|
deleteLineAtPoint, deleteWord, eventKeyHeld, eventKeyRepeat, eventKeyUp, forwardDeleteChar, getAcceptKeyRepeats, getCanMakeChanges, getCursorColor, getSelectionBackgroundColor, isEditable, setAcceptKeyRepeats, setCanMakeChanges, setEditable, setUseOverlay |
| Methods inherited from class danger.ui.Editor.TextChanges |
|---|
delete, deleteSelection, forwardDeleteChar, insert, insert, insertChar |
| Methods inherited from class danger.ui.Editor.Filters |
|---|
attachInputFilter, attachInputVerifier, attachInputVerifiers, detachInputVerifier, getInputFilter, getInputVerifiers, getTextColor, loseFocus, setInputFilter, takeFocus |
| Methods inherited from class danger.ui.ScrollingTextBox |
|---|
canSuperFocus, drawContent, getBackgroundColor, getFocusPadding, getLabelWhenEmpty, getScrolling, getTextBackgroundColor, getTextOutlineColor, isSuperFocused, setCanSuperFocus, setLabelWhenEmpty, setScrolling, setSuperFocused |
| Methods inherited from class danger.ui.DisplayText |
|---|
attachScrollbar, canScrollDown, canScrollUp, detachScrollbar, drawText, getDisplayHorizontalScroll, getGrowFromBottom, getHorizontalScroll, getTextAreaHeight, getTextAreaWidth, getVerticalPadding, getVerticalScroll, pageDown, pageUp, paint, scrollDown, scrollUp, setGrowFromBottom, setHorizontalScroll, setTextAreaHeight, setTextAreaWidth, setVerticalScroll, setWidth |
| Methods inherited from class danger.ui.Control |
|---|
drawFocusBox, drawIdleBox, drawIdleBox, getEvent, getEventListener, getEventType, getHasBorder, getMaxToolTipLines, getTitle, getTitleSequence, getToolTip, getValue, hasToolTip, sendEvent, setEvent, setEvent, setEvent, setEvent, setEvent, setEventArg, setEventListener, setHasBorder, setMaxToolTipLines, setTitle, setTitle, setToolTip, setValue, showToolTip |
| Methods inherited from class danger.app.Listener |
|---|
cancelEvents, childEventPump, childEventPumpDone, eventProblem, isDispatchingThread, sendEvent, sendEvent, sendEvent, sendEvent, sendEvent, sendLowPriorityEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface danger.text.span.Spannable |
|---|
removeSpan, setSpan |
| Methods inherited from interface danger.text.span.Anchored |
|---|
moveToAnchor |
| Methods inherited from interface danger.util.TextBufferLike |
|---|
getInsertionPoint, setInputFilter, setInsertionPoint |
| Methods inherited from interface danger.util.GetChars |
|---|
getChars |
| Methods inherited from interface danger.ui.TextControl |
|---|
getFont, getTextSequence, setFont |
| Constructor Detail |
|---|
public PasswordEditText()
public PasswordEditText(String inLabel)
| Method Detail |
|---|
protected void onTextChanged(int start,
int oldLen,
int newLen)
onTextChanged in class WrappedTextprotected CharSequence getDisplayText()
getDisplayText in class WrappedTextpublic CharSequence grabSelectionSequence()
grabSelectionSequence in class SelectTextBoxpublic boolean canGrabSelection()
canGrabSelection in class SelectTextBox
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||