danger.internal
Class DialTextField

java.lang.Object
  extended by danger.app.Listener
      extended by danger.ui.View
          extended by danger.ui.Container
              extended by danger.ui.Control
                  extended by danger.ui.WrappedText
                      extended by danger.ui.DisplayText
                          extended by danger.ui.StaticTextBox
                              extended by danger.ui.ScrollingTextBox
                                  extended by danger.ui.LinkTextBox
                                      extended by danger.ui.SelectTextBox
                                          extended by danger.ui.MutableTextBox
                                              extended by danger.ui.Editor.Filters
                                                  extended by danger.ui.Editor.TextChanges
                                                      extended by danger.ui.Editor.Keyboard
                                                          extended by danger.ui.Editor.Clipboard
                                                              extended by danger.ui.Editor.UndoRedo
                                                                  extended by danger.ui.Editor.Input
                                                                      extended by danger.ui.Editor.AutoText
                                                                          extended by danger.ui.EditText
                                                                              extended by danger.ui.TextField
                                                                                  extended by danger.ui.TypeAheadTextField
                                                                                      extended by danger.internal.DialTextField
All Implemented Interfaces:
Anchored, Spannable, Spanned, TextControl, ToolTipOwner, GetChars, TextBufferLike, CharSequence

Deprecated. This class was not meant to be publicly accessible. It will be removed in a future OS release.


public class DialTextField
extends TypeAheadTextField


Field Summary
 
Fields inherited from class danger.ui.TypeAheadTextField
mMenu, mTextFinder
 
Fields inherited from class danger.ui.EditText
COPY_SOURCE_ADDRESS_BOOK, COPY_SOURCE_ALL, COPY_SOURCE_NONE
 
Fields inherited from class danger.ui.SelectTextBox
CURSOR_FIXED, CURSOR_MOBILE, LAST_POINT_SET, SELECTION_ANCHOR, SELECTION_END
 
Fields inherited from class danger.ui.WrappedText
JUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT
 
Fields inherited from class danger.ui.View
DEFAULT_SCROLL_FOCUS_MARGIN, FOCUS_DEFAULT, FOCUS_DOWNWARD, FOCUS_FROM_NOWHERE, FOCUS_LEFTWARD, FOCUS_NONE, FOCUS_RIGHTWARD, FOCUS_UPWARD, HEIGHT_AUTO, HEIGHT_FILL_TO_BOTTOM, HEIGHT_FILL_TO_TOP, HEIGHT_MATCH_CONTROL, HEIGHT_PERCENTAGE, POSITION_ABOVE, POSITION_ALIGN_BASELINE, POSITION_ALIGN_BOTTOM, POSITION_ALIGN_HORIZONTALLY, POSITION_ALIGN_LEFT, POSITION_ALIGN_PARENT_BOTTOM, POSITION_ALIGN_PARENT_RIGHT, POSITION_ALIGN_PARENT_TOP, POSITION_ALIGN_RIGHT, POSITION_ALIGN_TOP, POSITION_ALIGN_VERTICALLY, POSITION_BELOW, POSITION_BELOW_GROUP_BOX_HEADING, POSITION_CENTER_HORIZONTALLY, POSITION_CENTER_VERTICALLY, POSITION_TO_LEFT, POSITION_TO_RIGHT, PREFER_DIRECTION_NONE, PREFER_HORIZONTAL_DIRECTION, PREFER_VERTICAL_DIRECTION, STATE_AT_AND_SPACE_PAGE, STATE_CAN_FOCUS, STATE_DEBUG_BOUNDS, STATE_ENABLED, STATE_FOCUSED, STATE_MAKE_DING, STATE_PARTIAL_FOCUS_OK, STATE_TRANSPARENT, STATE_VISIBLE, WIDTH_AUTO, WIDTH_FILL_TO_LEFT, WIDTH_FILL_TO_RIGHT, WIDTH_MATCH_CONTROL, WIDTH_PERCENTAGE
 
Fields inherited from interface danger.text.span.Spannable
SPAN_DELETE_ON_EMPTY, SPAN_ENDS_AFTER, SPAN_ENDS_BEFORE, SPAN_EXCLUSIVE_AFTER, SPAN_EXCLUSIVE_BEFORE, SPAN_EXCLUSIVE_EXCLUSIVE, SPAN_EXCLUSIVE_INCLUSIVE, SPAN_GROW_FROM_ZERO, SPAN_INCLUSIVE_AFTER, SPAN_INCLUSIVE_BEFORE, SPAN_INCLUSIVE_EXCLUSIVE, SPAN_INCLUSIVE_INCLUSIVE, SPAN_MARKLIKE, SPAN_PARAGRAPH, SPAN_POINTLIKE, SPAN_STARTS_AFTER, SPAN_STARTS_BEFORE
 
Constructor Summary
DialTextField()
          Deprecated.  
 
Method Summary
protected  void afterTextChanged()
          Deprecated. You can override this method to receive notifications after the text of the buffer has changed.
 boolean eventKeyDown(char key, Event event)
          Deprecated. Overrides some aspects of EditText.eventKeyDown().
 boolean eventKeyHeld(char key, Event event)
          Deprecated. Standard UI method; returns false if accepting key repeats to prevent bringing up the context menu at surprising times.
 boolean eventKeyUp(char key, Event event)
          Deprecated. If SelectTextBox.setAdvanceFocusOnReturnKey(boolean) was set to true and you press Return, this tells the view's parent to advance focus.
 boolean hasDialableSelection()
          Deprecated.  
 void hideMenu()
          Deprecated. Hide the menu associated with this TypeAheadTextField.
 boolean receiveEvent(Event event)
          Deprecated. Standard UI method; handles the EVENT_CHECK_SPELLING event from the menu.
 void setDashesAreReallyInTheBuffer(boolean whether)
          Deprecated.  
 void setSelectedEvent(Event event)
          Deprecated.  
 void setShowCommaHint(boolean showHint)
          Deprecated.  
 String toString()
          Deprecated. Standard CharSequence method: return the text being displayed.
 void triggerMenuSelection()
          Deprecated.  
 
Methods inherited from class danger.ui.TypeAheadTextField
clear, cutSelection, eventKeyRepeat, eventWidgetDown, eventWidgetUp, getListSelectMenu, getTextFinder, getUpdateMenuTimeout, getUserData, hasItems, loseFocus, onHide, paste, setListener, setListSelectMenu, setMaxToolTipLines, setNumCharsNeededForCompletion, setOwnerWindow, setTextFinder, setUpdateMenuTimeout, setUserData, updateMenu, updateMenu
 
Methods inherited from class danger.ui.TextField
chooseWrapWidth, getDisplayText, onTextChanged, pageDown, pageUp, setActivateListener, setAutoResize, setFont, setSize
 
Methods inherited from class danger.ui.EditText
getActiveMetaKey, getCopySources, setActiveMetaKey, setCopySources, setNumDisplayChars, setTextWidth
 
Methods inherited from class danger.ui.Editor.AutoText
createSpellCheckSpan, deleteChar, eventShortcut, getAttachedSpellCheckUserDictionary, getAutoCap, getAutoText, insert, insert, insert, insert, isShortcutTrigger, isSpellCheckEnabled, setAttachedSpellCheckUserDictionary, setAutoCap, setAutoText, setSpellCheckAllowed, setSpellCheckEnabled, setText, setText, setText
 
Methods inherited from class danger.ui.Editor.Input
canInsertSpecial, eventRawKeyUp, isInputMethodActive
 
Methods inherited from class danger.ui.Editor.UndoRedo
canRedo, canUndo, clearUndo, redo, setText, undo
 
Methods inherited from class danger.ui.Editor.Clipboard
canCut, canPaste
 
Methods inherited from class danger.ui.Editor.Keyboard
deleteLineAtPoint, deleteWord, forwardDeleteChar, getAcceptKeyRepeats, getCanMakeChanges, getCursorColor, getSelectionBackgroundColor, isEditable, setAcceptKeyRepeats, setCanMakeChanges, setEditable, setUseOverlay, showSpellCheckMenu
 
Methods inherited from class danger.ui.Editor.TextChanges
delete, deleteSelection, forwardDeleteChar, insert, insertChar
 
Methods inherited from class danger.ui.Editor.Filters
attachInputFilter, attachInputVerifier, attachInputVerifiers, detachInputVerifier, getInputFilter, getInputVerifiers, getTextColor, setInputFilter, takeFocus
 
Methods inherited from class danger.ui.SelectTextBox
addTextEditMenuItems, bringCursorIntoView, canCopy, canGrabSelection, canSelectAll, copySelection, eventPeriodicPulse, extendSelectionByCharacters, extendSelectionByLines, extendSelectionToEnd, extendSelectionToEndOfLine, extendSelectionToEndOfWord, extendSelectionToHome, extendSelectionToNextPage, extendSelectionToPreviousPage, extendSelectionToStartOfLine, extendSelectionToStartOfWord, getAdvanceFocusOnReturnKey, getCursorPolicy, getInsertionPoint, getInterestingRect, getLastPointSet, getLeftBorder, getSelectionForegroundColor, getStyled, getTextEditMenu, grabSelection, grabSelectionSequence, invalidateCursor, moveCursorByCharacters, moveCursorByLines, moveCursorToEndOfLine, moveCursorToEndOfWord, moveCursorToStartOfLine, moveCursorToStartOfWord, moveToAnchor, pageToEnd, pageToHome, paint, removeSpan, resetSelection, seekAfterAtomic, seekBeforeAtomic, selectAll, selectionEnd, selectionStart, setAdvanceFocusOnReturnKey, setAllowCursorBlink, setCursorPolicy, setInsertionPoint, setSelectAllOnFocus, setSelection, setSelectionEnd, setSelectionStart, setSpan, setStyled, showContextMenu
 
Methods inherited from class danger.ui.LinkTextBox
addLinkMenuItems, getAcceptFocusOnlyWhenLinksVisible, getClickSpan, getLinkOptionsMenu, getLinksFocusable, selectNextLink, selectNextLinkBelow, selectNextLinkOn, selectPreviousLink, selectPreviousLinkAbove, selectPreviousLinkOn, setAcceptFocusOnlyWhenLinksVisible, setLinksFocusable, willFocusWithin, willFocusWithin
 
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.StaticTextBox
bringPointIntoView, drawFrame, drawTruncationIndicator, getAutoResize, getBaseline, getBorderShowsScrolling, getBottomBorder, getDrawTruncationIndicator, getHeightForLines, getPointRect, getRightBorder, getTopBorder, getVisibleSpans, getVisibleSpans, getWantQuoteHack, onSetHasBorder, onSetTitle, setAcceptFocus, setAutoReflowChildren, setBorderShowsScrolling, setDrawTruncationIndicator, setNumDisplayLines, setWantQuoteHack, textHeightChanged
 
Methods inherited from class danger.ui.DisplayText
attachScrollbar, canScrollDown, canScrollUp, detachScrollbar, drawText, getDisplayHorizontalScroll, getGrowFromBottom, getHorizontalScroll, getTextAreaHeight, getTextAreaWidth, getVerticalPadding, getVerticalScroll, pageDown, pageUp, paint, scrollDown, scrollUp, setDrawBottomCroppedText, setGrowFromBottom, setHorizontalScroll, setTextAreaHeight, setTextAreaWidth, setVerticalScroll, setWidth
 
Methods inherited from class danger.ui.WrappedText
beforeTextChanged, charAt, getAdvance, getAlignment, getAllSpans, getBlankAfterFinalNewline, getChars, getChars, getChars, getContents, getFinalLineSpacing, getFont, getLine, getLineBaseline, getLineBottom, getLineCount, getLineEnd, getLineFlags, getLineForOffset, getLineForVertical, getLineParagraphStart, getLineSpacing, getLineStart, getLineTop, getLineVisibleLength, getSpanEnd, getSpanFlags, getSpansOverlapping, getSpanStart, getTabIncrement, getText, getTextHeight, getTextSequence, getVerticalDimensions, getWrapWidth, length, newLineBreaker, nextSpanTransition, numLines, rewrap, setAlignment, setBlankAfterFinalNewline, setFinalLineSpacing, setLineSpacing, setMaxFontSize, setTabIncrement, setWrapWidth, subSequence
 
Methods inherited from class danger.ui.Control
drawFocusBox, drawIdleBox, drawIdleBox, getEvent, getEventListener, getEventType, getHasBorder, getMaxToolTipLines, getTitle, getTitleSequence, getToolTip, getValue, hasToolTip, notifyWhenBaselineChanges, onBaselineChanged, onControlBaselineChanged, sendEvent, setEvent, setEvent, setEvent, setEvent, setEvent, setEventArg, setEventListener, setEventMethod, setHasBorder, setTitle, setTitle, setToolTip, setValue, showToolTip
 
Methods inherited from class danger.ui.Container
addChild, addChild, addChildAt, addChildAt, addFromContainerResource, addFromContainerResource, addFromContainerResource, addFromDialogResource, addFromDialogResource, advanceFocus, advanceFocusInWindow, childCount, childIsOnScreen, disable, enable, eventRawKeyDown, eventRawKeyHeld, eventRawKeyRepeat, eventWidgetHeld, focusedDescendantIsValid, getBottomChild, getBottomChild, getChildAt, getChildIndex, getChildWithID, getControlWithID, getDescendantWithID, getFirstChild, getFirstFocusableChild, getFocusableChildInWindow, getFocusedChild, getFocusedLeaf, getLastChild, getLastFocusableChild, getLeftMostChild, getNextFocusableChild, getNextFocusableChild, getPageHeight, getPrevFocusableChild, getPrevFocusableChild, getRightMostChild, getRightMostChild, handleButtonShortcut, hideAllChildren, isDescendant, keepRectInView, moveChildToIndex, onChildPositionChanged, onChildSizeChanged, onChildVisibilityChanged, paintChildren, reflowChildren, removeAllChildren, removeChild, reverseFocus, setFocusedChild, setFocusedChild, setFocusedChild, setFocusedDescendant, setFocusedDescendant, setFocusedDescendant, setFocusToFirstDescendant, setFormatDateForControlWithID, setFormatDateForTextControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setListenerForAllControls, setReflowAdjustHeight, setWindow, showAllChildren, snapHeightToChildren, snapHeightToChildren, snapToChildren, snapWidthToChildren, snapWidthToChildren
 
Methods inherited from class danger.ui.View
boundsIntersect, boundsIntersect, canLoseFocus, clear, clear, copyStyle, getAcceptFocus, getBottom, getBounds, getBounds, getData, getFocusTraversalDirection, getFocusTraversalFrom, getFocusTraversalPolicy, getFrame, getFrame, getGlobalBottom, getGlobalLeft, getGlobalRight, getGlobalTop, getHeight, getID, getInterestingRect, getLabelFont, getLabelFont, getLeft, getOrigin, getOrigin, getOriginX, getOriginY, getParent, getParentContainer, getPartialFocusOK, getRight, getScrollFocusMargin, getSibling, getState, getStyle, getStyleColor, getStyleFont, getTop, getWidth, getWindow, globalToLocal, globalToLocalH, globalToLocalV, hide, invalidate, invalidate, invalidate, invalidateIndependentOfOrigin, invalidateIndependentOfOrigin, isEnabled, isFocusable, isFocused, isObscured, isOnScreen, isTransparent, isVisible, isVisibleInHierarchy, isVisibleOnScreen, justSetVisible, localToGlobal, localToGlobal, localToGlobalH, localToGlobalV, localToWindow, moveBy, notifyWhenFocusChanges, notifyWhenObscurityChanges, notifyWhenParentSizeChanges, notifyWhenPositionChanges, notifyWhenSizeChanges, notifyWhenVisibilityChanges, offsetOrigin, offsetOrigin, onAddedToParent, onDecoded, onEnabledStateChanged, onPeriodicPulse, onPositionChanged, onRemovedFromParent, onShortcut, onShortcut, onShortcutConsumed, onShow, onSizeChanged, onStyleChanged, onSystemFontChanged, onViewFocusChanged, onViewObscurityChanged, onViewPositionChanged, onViewSizeChanged, onViewVisibilityChanged, onWindowPaint, playLimitSound, receiveEventInternal, resetOrigin, sendEventToWindow, setAtAndSpacePage, setBackground, setBackgroundColor, setBottom, setData, setDebugBounds, setDynamicHeight, setDynamicPosition, setDynamicWidth, setEnabled, setFocusTraversalDirection, setFocusTraversalFrom, setFocusTraversalPolicy, setFrame, setHeight, setKeyedValue, setLabelFont, setLeft, setMakeLimitNoise, setOrigin, setOrigin, setPartialFocusOK, setPosition, setPreferredDirection, setRight, setScrollFocusMargin, setStyle, setStyleColor, setStyleFont, setStyleFrameColor, setTop, setTransparent, setVisible, shouldDropEvent, show, styleIsDefault, swapStyleColors, windowToLocal
 
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
 

Constructor Detail

DialTextField

public DialTextField()
Deprecated. 
Method Detail

toString

public String toString()
Deprecated. 
Description copied from class: WrappedText
Standard CharSequence method: return the text being displayed.

Specified by:
toString in interface CharSequence
Overrides:
toString in class WrappedText

setSelectedEvent

public void setSelectedEvent(Event event)
Deprecated. 

triggerMenuSelection

public void triggerMenuSelection()
Deprecated. 

hasDialableSelection

public boolean hasDialableSelection()
Deprecated. 

setDashesAreReallyInTheBuffer

public void setDashesAreReallyInTheBuffer(boolean whether)
Deprecated. 

setShowCommaHint

public void setShowCommaHint(boolean showHint)
Deprecated. 

receiveEvent

public boolean receiveEvent(Event event)
Deprecated. 
Description copied from class: Editor.AutoText
Standard UI method; handles the EVENT_CHECK_SPELLING event from the menu.

Overrides:
receiveEvent in class TypeAheadTextField
Parameters:
event - non-null; the event to process
Returns:
whether (true) or not (false) this method actually handled the event to completion

eventKeyHeld

public boolean eventKeyHeld(char key,
                            Event event)
Deprecated. 
Description copied from class: Editor.Keyboard
Standard UI method; returns false if accepting key repeats to prevent bringing up the context menu at surprising times.

Overrides:
eventKeyHeld in class Editor.Keyboard

eventKeyUp

public boolean eventKeyUp(char key,
                          Event event)
Deprecated. 
Description copied from class: SelectTextBox
If SelectTextBox.setAdvanceFocusOnReturnKey(boolean) was set to true and you press Return, this tells the view's parent to advance focus.

Overrides:
eventKeyUp in class TypeAheadTextField
Parameters:
key - the character being released.

eventKeyDown

public boolean eventKeyDown(char key,
                            Event event)
Deprecated. 
Description copied from class: TextField
Overrides some aspects of EditText.eventKeyDown(). Pressing the Return key causes an activate event to be sent (see TextField.setActivateListener(danger.app.Listener, int)).

Overrides:
eventKeyDown in class TypeAheadTextField

hideMenu

public void hideMenu()
Deprecated. 
Description copied from class: TypeAheadTextField
Hide the menu associated with this TypeAheadTextField.

Overrides:
hideMenu in class TypeAheadTextField

afterTextChanged

protected void afterTextChanged()
Deprecated. 
Description copied from class: WrappedText
You can override this method to receive notifications after the text of the buffer has changed.

Overrides:
afterTextChanged in class WrappedText