danger.internal
Class URLButton

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.Button
                      extended by danger.internal.URLButton
All Implemented Interfaces:
ToolTipOwner

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


public class URLButton
extends Button


Field Summary
 
Fields inherited from class danger.ui.Button
ALIGN_BOTTOM, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_TOP, BITMAP_ONLY_PADDING, CAP_WIDTH, DEBOUNCE_TIMEOUT, mBitmap, mBitmapAlignment, mBitmapTitlePadding, mBottomPadding, mDebouncing, mDisabledBitmap, mDisabledIconTitle, mFocusedBitmap, mFocusedIconTitle, mIconTitle, mInvertOnHighlight, mLeftPadding, mMinWidth, mRightPadding, mShortcut, mShortcutColor, mShortcutLabel, mShortcutModifiers, mShortcutPadding, mTitleJustification, mTopPadding, PAD_BITMAP_HEIGHT, PAD_BITMAP_STRING, PAD_FONT_HEIGHT, SHORTCUT_PADDING, UNDEFINED_COLOR
 
Fields inherited from class danger.ui.Control
mValue
 
Fields inherited from class danger.ui.View
DEFAULT_SCROLL_FOCUS_MARGIN, FOCUS_DEFAULT, FOCUS_DOWNWARD, FOCUS_LEFTWARD, FOCUS_NONE, FOCUS_RIGHTWARD, FOCUS_UPWARD, mOriginX, mOriginY, mStyle, POSITION_ABOVE, POSITION_ALIGN_BASELINE, POSITION_ALIGN_BOTTOM, POSITION_ALIGN_HORIZONTALLY, POSITION_ALIGN_LEFT, POSITION_ALIGN_PARENT_BOTTOM, POSITION_ALIGN_PARENT_RIGHT, POSITION_ALIGN_RIGHT, POSITION_ALIGN_TOP, POSITION_ALIGN_VERTICALLY, POSITION_BELOW, 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_FILL_TO_RIGHT
 
Constructor Summary
URLButton(Bitmap bm, CharSequence text, int maxwid)
          Deprecated.  
URLButton(Bitmap bm, String text, int maxwid)
          Deprecated.  
 
Method Summary
 String getString()
          Deprecated.  
 void paint(Pen p)
          Deprecated. Draw the contents of this View.
 boolean willFocusWithin(Rect r)
          Deprecated. Returns whether this view should become focused if displayed in the given rectangle.
 
Methods inherited from class danger.ui.Button
calcSize, drawBitmap, drawFrame, drawShortcut, drawTitle, eventKeyDown, eventKeyUp, eventWidgetDown, eventWidgetUp, getBaseline, getBitmapTitlePadding, getCurrentBitmap, getCurrentIconTitle, getLeftPadding, getRightPadding, getShortcutLabelWidth, hasShortcutLabel, hasTitle, matchAndDispatchShortcut, onSetTitle, onStyleChanged, receiveEvent, resizeHeightToFit, resizeWidthToFit, setBitmap, setBitmap, setBitmap, setBitmap, setBitmapAlignment, setBitmapAlignment, setBitmapInvertOnHighlight, setBitmapTitlePadding, setBitmapTitlePadding, setHorizontalPadding, setHorizontalPadding, setHorizontalPadding, setIconTitle, setIconTitle, setIconTitle, setMinWidth, setShortcut, setShortcut, setShortcut, setShortcut, setShortcut, setShortcut, setShortcutColor, setShortcutLabel, setShortcutLabel, setShortcutPadding, setTitleJustification, setVerticalBitmapPadding, setVerticalBitmapPadding
 
Methods inherited from class danger.ui.Control
drawFocusBox, drawIdleBox, drawIdleBox, getEvent, getEventListener, getEventType, getHasBorder, getMaxToolTipLines, getTitle, getTitleSequence, getToolTip, getValue, hasToolTip, loseFocus, onSetHasBorder, sendEvent, setEvent, setEvent, setEvent, setEvent, setEvent, setEventArg, setEventListener, setHasBorder, setMaxToolTipLines, setTitle, setTitle, setToolTip, setValue, showToolTip, takeFocus
 
Methods inherited from class danger.ui.Container
addChild, addChild, addChildAt, addChildAt, addFromContainerResource, addFromContainerResource, addFromContainerResource, addFromDialogResource, addFromDialogResource, advanceFocus, advanceFocusInWindow, childCount, childIsOnScreen, disable, enable, eventKeyHeld, eventKeyRepeat, eventPeriodicPulse, eventRawKeyDown, eventRawKeyHeld, eventRawKeyRepeat, eventRawKeyUp, eventShortcut, eventWidgetHeld, focusedDescendantIsValid, getBottomChild, getBottomChild, getChildAt, getChildIndex, getChildWithID, getControlWithID, getDescendantWithID, getFirstChild, getFirstFocusableChild, getFocusableChildInWindow, getFocusedChild, getFocusedLeaf, getInterestingRect, getLastChild, getLastFocusableChild, getLeftMostChild, getNextFocusableChild, getNextFocusableChild, getPageHeight, getPrevFocusableChild, getPrevFocusableChild, getRightMostChild, getRightMostChild, handleButtonShortcut, hideAllChildren, isDescendant, keepRectInView, moveChildToIndex, onChildPositionChanged, onChildSizeChanged, onChildVisibilityChanged, pageToEnd, pageToHome, 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, willFocusWithin
 
Methods inherited from class danger.ui.View
boundsIntersect, boundsIntersect, canLoseFocus, clear, clear, copyStyle, getAcceptFocus, getBackgroundColor, getBottom, getBounds, getBounds, 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, isOnScreen, isTransparent, isVisible, isVisibleInHierarchy, isVisibleOnScreen, justSetVisible, localToGlobal, localToGlobal, localToGlobalH, localToGlobalV, localToWindow, moveBy, notifyWhenParentSizeChanges, notifyWhenPositionChanges, notifyWhenSizeChanges, offsetOrigin, offsetOrigin, onAddedToParent, onDecoded, onEnabledStateChanged, onHide, onPeriodicPulse, onPositionChanged, onRemovedFromParent, onShortcut, onShortcut, onShortcutConsumed, onShow, onSizeChanged, onViewPositionChanged, onViewSizeChanged, onWindowPaint, playLimitSound, receiveEventInternal, resetOrigin, sendEventToWindow, setAcceptFocus, setAtAndSpacePage, setBackground, setBackgroundColor, setBottom, setDebugBounds, setDynamicPosition, setDynamicWidth, setEnabled, setFocusTraversalDirection, setFocusTraversalFrom, setFocusTraversalPolicy, setFrame, setHeight, setKeyedValue, setLabelFont, setLeft, setMakeLimitNoise, setOrigin, setOrigin, setPartialFocusOK, setPosition, setPreferredDirection, setRight, setScrollFocusMargin, setSize, setStyle, setStyleColor, setStyleFont, setStyleFrameColor, setTop, setTransparent, setVisible, setWidth, shouldDropEvent, show, showContextMenu, 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, toString, wait, wait, wait
 

Constructor Detail

URLButton

public URLButton(Bitmap bm,
                 String text,
                 int maxwid)
Deprecated. 

URLButton

public URLButton(Bitmap bm,
                 CharSequence text,
                 int maxwid)
Deprecated. 
Method Detail

paint

public void paint(Pen p)
Deprecated. 
Description copied from class: View
Draw the contents of this View. This method is called by the graphics system when the View needs to be repainted. A Pen will be provided which is appropriately clipped and translated for drawing on this View.

The implementation of this method in this class will merely call clear() pen, if this View is opaque (not transparent), and will do nothing otherwise. If you don't need this behavior, then there is no point in calling super.paint() in an overriding method.

Overrides:
paint in class Button
Parameters:
p - non-null; the pen to use for drawing operations

getString

public String getString()
Deprecated. 

willFocusWithin

public boolean willFocusWithin(Rect r)
Deprecated. 
Description copied from class: View
Returns whether this view should become focused if displayed in the given rectangle. This method is used by ScrollView to determine whether to scroll or change focus. Warning: it is possible that r may change as a result of this call. This base class implementation does not change it, but subclasses might. Therefore, you cannot depend on the value of r after this call.

Overrides:
willFocusWithin in class Container