danger.ui
Class NumberField

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.NumberField
All Implemented Interfaces:
Anchored, Spannable, Spanned, TextControl, ToolTipOwner, GetChars, TextBufferLike, CharSequence

Deprecated. Use TextInputFilter.newNumericFilter() instead.


public class NumberField
extends TextField


Field Summary
 
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
NumberField()
          Deprecated. Constructs a numeric-only text field, with auto-text and auto-cap turned off.
NumberField(boolean autoText, boolean autoCap)
          Deprecated. Constructs a numeric-only text field.
NumberField(String inLabel)
          Deprecated. Constructs a numeric-only text field, with auto-text and auto-cap turned off.
NumberField(String inLabel, boolean autoText, boolean autoCap)
          Deprecated. Constructs a numeric-only text field.
 
Method Summary
 
Methods inherited from class danger.ui.TextField
chooseWrapWidth, eventKeyDown, eventKeyUp, eventWidgetDown, eventWidgetUp, getDisplayText, onTextChanged, pageDown, pageUp, setActivateListener, setAutoResize, setFont, setSize
 
Methods inherited from class danger.ui.EditText
getActiveMetaKey, getCopySources, receiveEvent, setActiveMetaKey, setCopySources, setNumDisplayChars, setTextWidth
 
Methods inherited from class danger.ui.Editor.AutoText
clear, 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, cutSelection, paste
 
Methods inherited from class danger.ui.Editor.Keyboard
deleteLineAtPoint, deleteWord, eventKeyHeld, eventKeyRepeat, 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, loseFocus, 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
afterTextChanged, 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, toString
 
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, setMaxToolTipLines, 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, onHide, 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

NumberField

public NumberField()
Deprecated. 
Constructs a numeric-only text field, with auto-text and auto-cap turned off.


NumberField

public NumberField(boolean autoText,
                   boolean autoCap)
Deprecated. 
Constructs a numeric-only text field.

Parameters:
autoText - whether to enable auto-text in this field.
autoCap - whether to enable auto-capitalization in this field.

NumberField

public NumberField(String inLabel)
Deprecated. 
Constructs a numeric-only text field, with auto-text and auto-cap turned off.

Parameters:
inLabel - the initial text in the field.

NumberField

public NumberField(String inLabel,
                   boolean autoText,
                   boolean autoCap)
Deprecated. 
Constructs a numeric-only text field.

Parameters:
inLabel - the initial text in the field.
autoText - whether to enable auto-text in this field.
autoCap - whether to enable auto-capitalization in this field.