danger.ui
Class AlertWindow

java.lang.Object
  |
  +--danger.app.Listener
        |
        +--danger.ui.View
              |
              +--danger.ui.Container
                    |
                    +--danger.ui.Window
                          |
                          +--danger.ui.DialogWindow
                                |
                                +--danger.ui.AlertWindow
All Implemented Interfaces:
danger.SystemStrings
Direct Known Subclasses:
FlashAlert

Deprecated.  DO NOT USE

public class AlertWindow
extends DialogWindow
implements danger.SystemStrings

Application interface for alert windows.


Field Summary
protected static int kBottomMargin
          Deprecated.  
protected static int kButtonHeight
          Deprecated.  
protected static int kButtonMinWidth
          Deprecated.  
protected static int kEvent_Button1
          Deprecated.  
protected static int kEvent_Button2
          Deprecated.  
protected static int kEvent_Button3
          Deprecated.  
protected static int kGap1
          Deprecated.  
protected static int kGap3
          Deprecated.  
protected static int kGap4
          Deprecated.  
protected static int kGap5
          Deprecated.  
protected static int kIconColWidth
          Deprecated.  
protected static int kLeftMargin
          Deprecated.  
static int kMaxBitmapSize
          Deprecated.  
protected static int kMaxTitleHeight
          Deprecated.  
protected static int kRightMargin
          Deprecated.  
static int kShortcutBack
          Deprecated.  
static int kShortcutDelete
          Deprecated.  
static int kShortcutMenu
          Deprecated.  
static int kShortcutNone
          Deprecated.  
protected static int kTopMargin
          Deprecated.  
protected  java.lang.Object mArg1
          Deprecated.  
protected  java.lang.Object mArg2
          Deprecated.  
protected  java.lang.Object mArg3
          Deprecated.  
protected  Bitmap mBitmap
          Deprecated.  
protected  java.lang.String mButtonStr1
          Deprecated.  
protected  java.lang.String mButtonStr2
          Deprecated.  
protected  java.lang.String mButtonStr3
          Deprecated.  
protected  int mData1
          Deprecated.  
protected  int mData2
          Deprecated.  
protected  int mData3
          Deprecated.  
protected  int mDefaultButton
          Deprecated.  
protected  int mEventType1
          Deprecated.  
protected  int mEventType2
          Deprecated.  
protected  int mEventType3
          Deprecated.  
protected  Font mFont
          Deprecated.  
protected  int mImageViewHeight
          Deprecated.  
protected  int mImageViewWidth
          Deprecated.  
protected  boolean mLayoutButtonsVertically
          Deprecated.  
protected  Listener mListener
          Deprecated.  
protected  java.lang.String mMessage
          Deprecated.  
protected  boolean mNeedLayout
          Deprecated.  
protected  int mShortcut1
          Deprecated.  
protected  int mShortcut2
          Deprecated.  
protected  int mShortcut3
          Deprecated.  
protected  danger.system.SystemTimer mShowWindowTimer
          Deprecated.  
 
Fields inherited from class danger.ui.DialogWindow
kAppDialogStyle, kBottomPosition1, kBottomPosition2, kBottomPosition3, kDefaultWindowStyle, kMaxBottomButtons, kMaxButtons, kMinFrameButtonWidth, kSystemDialogStyle, kSystemErrorStyle, kSystemWindowStyle, kTopPosition1, kTopPosition2, m_bottomBorder, m_doAutoSize, m_leftBorder, m_rightBorder, m_topBorder, mBackEvent, mButtonEvents, mButtonIDs, mButtons, mCancelButton, mCancelEvent, mDefaultButtonPosition, mDefaultListener, mNeedLayoutFrameButtons, mNeedToAddTopFrameButtons, mShortcuts, mTitlebarControls
 
Fields inherited from class danger.ui.Window
mBusyPaintCount, STATE_AUTO_HIDE_IF_IDLE, STATE_DROP_ORPHANED_EVENTS, STATE_FLOATING, STATE_FULLSCREEN
 
Fields inherited from class danger.ui.View
mOriginX, mOriginY, mStyle, STATE_CAN_FOCUS, STATE_DEBUG_BOUNDS, STATE_ENABLED, STATE_FOCUSED, STATE_TRANSPARENT, STATE_VISIBLE
 
Fields inherited from interface danger.SystemStrings
kRsrc_AboutToPowerOffDialogTitle, kRsrc_AboutToPowerOffMessage, kRsrc_AccountDisabledLabel, kRsrc_AccountDisabledMessage, kRsrc_ActivationMessage, kRsrc_Add, kRsrc_AddAll, kRsrc_AddToContacts, kRsrc_AdvancedStrings, kRsrc_ATChannelStatus, kRsrc_ATChannelTimeout, kRsrc_AtCommandTimeout, kRsrc_AtoZ, kRsrc_AttachChecked, kRsrc_AttemptingSignIn, kRsrc_AttemptingSIMUnlockLabel, kRsrc_AttemptingSIMUnlockMessage, kRsrc_AudioInfoFormat, kRsrc_AudioPreviewTitle, kRsrc_AudioStopButtonTitle, kRsrc_BadCmuxChecksum, kRsrc_BasicStrings, kRsrc_BatteryTooLowMessage, kRsrc_BatteryTooLowTitle, kRsrc_Beeps, kRsrc_BrandName, kRsrc_Brightness, kRsrc_BrightnessLower, kRsrc_Bytes, kRsrc_Camera, kRsrc_CameraNotDetected, kRsrc_CameraNotDetectedDesc, kRsrc_Cancel, kRsrc_Capture, kRsrc_CaptureNew, kRsrc_ChangePINSucessMessage, kRsrc_ChannelWriteTimeout, kRsrc_ChimesBack, kRsrc_ChimesFore, kRsrc_ClearAuthSettingsLabel, kRsrc_ClearAuthSettingsMsg, kRsrc_ClearFlashSettingsLabel, kRsrc_ClearFlashSettingsMsg, kRsrc_ClockNotSetMessage, kRsrc_ClockNotSetTitle, kRsrc_Comma, kRsrc_Company, kRsrc_Confirm, kRsrc_ConfirmPowerOffButton, kRsrc_ConfirmPowerOffMessage, kRsrc_ConfirmPowerOffTitle, kRsrc_Connecting, kRsrc_Continue, kRsrc_Continuous, kRsrc_Contrast, kRsrc_ContrastLower, kRsrc_Copy, kRsrc_CustomerCareContact, kRsrc_CustomizeLabel, kRsrc_CustomizeRingtoneTitle, kRsrc_Cut, kRsrc_DangerLegalAgreement, kRsrc_DateStampStringPair, kRsrc_DateTime, kRsrc_DefaultShortcuts, kRsrc_DefaultSystemUpgradeLabel, kRsrc_DefaultSystemUpgradeMessage, kRsrc_DeleteSelection, kRsrc_DeviceName, kRsrc_DicardRingToneToMakeRoom, kRsrc_Disable, kRsrc_Discard, kRsrc_DiscardChecked, kRsrc_DiscardConfirmationMulti, kRsrc_DiscardConfirmationSingle, kRsrc_DiscardHighlighted, kRsrc_DiscardPhoto, kRsrc_DiscardPhotos, kRsrc_Discreet, kRsrc_Done, kRsrc_DoSystemUpgradeLabel, kRsrc_DoSystemUpgradeMessage, kRsrc_Edit, kRsrc_Ellipsis, kRsrc_Email, kRsrc_EmergencyHelpText, kRsrc_EmergencyPhone, kRsrc_EmptyGallery, kRsrc_Enable, kRsrc_EnterNetPIN, kRsrc_EnterNetPINLabel, kRsrc_EnterNewPINLabel, kRsrc_EnterNewPINMessage, kRsrc_EnterPINCodeLabel, kRsrc_EnterPINCodeMessage, kRsrc_Error, kRsrc_ErrRecordNotFound, kRsrc_ExistingAccount, kRsrc_FatalNetworkError, kRsrc_FavoriteAbbrev, kRsrc_First, kRsrc_FixedUserLoginMessage, kRsrc_Flip, kRsrc_FolderEditorDeleteMessage, kRsrc_FPLMNConnectFailed, kRsrc_FPLMNOnlyConnect, kRsrc_FPLMNOnlyLabel, kRsrc_FPLMNOnlyMessage, kRsrc_FullScreen, kRsrc_Gallery, kRsrc_IconFamily_Calendar, kRsrc_IconFamily_Contacts, kRsrc_IDTagDefaultMsg, kRsrc_IMEI, kRsrc_ImportGroupName, kRsrc_Inactive, kRsrc_IncludeThisContact, kRsrc_IncorrectPINCodeLabel, kRsrc_IncorrectPINCodeMessage, kRsrc_InvalidAPNOrNonGPRS_SIM, kRsrc_InvalidAPNOrNonGPRS_SIMLabel, kRsrc_InvalidPasswordLabel, kRsrc_InvalidPasswordMessage, kRsrc_InvalidSIMMarqueeMessage, kRsrc_InvalidUsernamePasswordMsg, kRsrc_KeepIt, kRsrc_KeyGuardTitle, kRsrc_Last, kRsrc_LockedOutSIMMarqueeMessage, kRsrc_LockedSIMMarqueeMessage, kRsrc_LoggedIn, kRsrc_LoggingIn, kRsrc_LoginButtonLabel, kRsrc_LoginLabel, kRsrc_LoginMessage, kRsrc_LoginProgress, kRsrc_LoginProgressSuccess, kRsrc_MenuShortcutJumpAndBack, kRsrc_MenuShortcutMenuAndBack, kRsrc_MenuShortcutPowerSwitch, kRsrc_Middle, kRsrc_MismatchedNewPINMessage, kRsrc_MissingSIMLabel, kRsrc_MissingSIMMarqueeMessage, kRsrc_MissingSIMMessage, kRsrc_Mute, kRsrc_Name, kRsrc_NeedLoginLabel, kRsrc_NeedLoginMessage, kRsrc_NeedsPUKLabel, kRsrc_NeedsPUKMessage, kRsrc_NetErrorCode1, kRsrc_NetErrorCode11, kRsrc_NetErrorCode12, kRsrc_NetErrorCode13, kRsrc_NetErrorCode2, kRsrc_NetErrorCode3, kRsrc_NetErrorCode4, kRsrc_NetErrorCode5, kRsrc_NetErrorCode6, kRsrc_NetErrorCode7, kRsrc_NetErrorCode9, kRsrc_Netlog, kRsrc_NetPINIncorrect, kRsrc_NetPINIncorrectLabel, kRsrc_NetPINLabel, kRsrc_Network, kRsrc_NetworkIpDead, kRsrc_NetworkUnavailableLabel, kRsrc_NetworkUnavailableMarqueeMessage, kRsrc_NetworkUnavailableMessage, kRsrc_New, kRsrc_NewLine2, kRsrc_NewPhotosAtBottom, kRsrc_NewPhotosAtTop, kRsrc_NewPINLabel, kRsrc_NewRingToneReceived, kRsrc_NewSIMDetectedLabel, kRsrc_NewSIMDetectedMessage, kRsrc_NewUserLoggedInSuccessLabel, kRsrc_Next, kRsrc_Nickname, kRsrc_NonCarrierSIMMessage, kRsrc_None, kRsrc_NonhiptopEnabledSIMMessage, kRsrc_NonXXXSIMLabel, kRsrc_NotLoggedIn, kRsrc_NotLoggedInMarqueeMessage, kRsrc_OK, kRsrc_OldPINLabel, kRsrc_OnPhoneCallMarqueeMessage, kRsrc_OSVersion, kRsrc_PartnerName, kRsrc_PasscodeMask, kRsrc_PasswordLabel, kRsrc_Paste, kRsrc_PdpActivateTimeout, kRsrc_Period, kRsrc_Phone, kRsrc_PhoneCallVolume, kRsrc_PhoneEndCall, kRsrc_PhoneEndCallShortcut, kRsrc_PhoneInUseLabel, kRsrc_PhoneInUseMessage, kRsrc_PhoneNumberChangedLabel, kRsrc_PhoneNumberChangedMessage, kRsrc_PhoneNumberStringPair, kRsrc_PhoneStatus, kRsrc_photo, kRsrc_PhotoLeft, kRsrc_PhotoLimitExceeded, kRsrc_PhotoLimitExceededDesc, kRsrc_PhotoLimitReached, kRsrc_PhotoLimitReachedDesc, kRsrc_PhotoName, kRsrc_photos, kRsrc_PhotosLeft, kRsrc_PINCodeTooShortMessage, kRsrc_Prev, kRsrc_Previous, kRsrc_PrivacyLockTitle, kRsrc_ProfileLoud, kRsrc_ProfileMute, kRsrc_ProfileNormal, kRsrc_ProfileSoft, kRsrc_PUKAcceptedLabel, kRsrc_PUKIncorrectLabel, kRsrc_PUKIncorrectMessage, kRsrc_PUKLabel, kRsrc_QuoteClose, kRsrc_QuoteOpen, kRsrc_RadioError, kRsrc_RadioFirmwareFixed, kRsrc_RadioHasBeenReset, kRsrc_RadioIgnoredLowPowerRequest, kRsrc_RadioNotFoundMessage, kRsrc_RadioNotFoundTitle, kRsrc_RadioOffLabel, kRsrc_RadioOffMarqueeMessage, kRsrc_RadioOffMessage, kRsrc_RadioReset, kRsrc_RadioUnregisteredLabel, kRsrc_RadioUnregisteredMarqueeMessage, kRsrc_RadioUnregisteredMessage, kRsrc_RadioVersion, kRsrc_RadioWontWake, kRsrc_RecentAbbrev, kRsrc_RecoverableNetworkError, kRsrc_RegOptionLabel, kRsrc_RegOptionLoginButton, kRsrc_RegOptionMessage, kRsrc_RegOptionRegisterButton, kRsrc_Remove, kRsrc_Rename, kRsrc_RenamePhoto, kRsrc_Replace, kRsrc_Report, kRsrc_Restart, kRsrc_Retry, kRsrc_Review, kRsrc_RingToneBuzzerLabel, kRsrc_RingToneFlasherLabel, kRsrc_RingToneSoundLabel, kRsrc_RoamingDataOffMarqueeMessage, kRsrc_RoamingDataOffMessage, kRsrc_RoamingLabel, kRsrc_RoamingMarqueeMessage, kRsrc_RoamingRadioOffMessage, kRsrc_Save, kRsrc_SelectAll, kRsrc_SendChecked, kRsrc_SignalStrength, kRsrc_SIMErrorCode1, kRsrc_SIMErrorCode2, kRsrc_SIMErrorCode3, kRsrc_SIMErrorCode4, kRsrc_SIMErrorCode5, kRsrc_SIMErrorCode6, kRsrc_SIMErrorCode7, kRsrc_SIMErrorCode8, kRsrc_SIMHardwareError, kRsrc_SIMInitTimeout, kRsrc_SIMLockedLabel, kRsrc_SIMLockedMessage, kRsrc_SIMLockedOutLabel, kRsrc_SIMLockedOutMessage, kRsrc_SIMNotEnabledLabel, kRsrc_SIMNotReadyLabel, kRsrc_SIMNotReadyMarqueeMessage, kRsrc_SIMNotReadyMessage, kRsrc_SIMUnlockedLabel, kRsrc_SIMUnlockedMessage, kRsrc_SleepAlertPostMessage, kRsrc_Songs, kRsrc_Sorry, kRsrc_Sort, kRsrc_SortOrder, kRsrc_SortPhotos, kRsrc_SortPhotosBy, kRsrc_SoundControlsTitle, kRsrc_SpecialChars, kRsrc_Star99PoundError, kRsrc_String_Attempts, kRsrc_Submit, kRsrc_Support, kRsrc_SysDialogDetails, kRsrc_Syslog, kRsrc_SystemUpgradeOpt1, kRsrc_SystemUpgradeOpt2, kRsrc_SystemUpgradeOpt3, kRsrc_SystemUpgradeSuccessLabel, kRsrc_SystemUpgradeSuccessMessage, kRsrc_TextEdit, kRsrc_Timestamp, kRsrc_TimeStampStringPair, kRsrc_TryAgain, kRsrc_TZ_Alaska, kRsrc_TZ_Aleutian, kRsrc_TZ_Arizona, kRsrc_TZ_Atlantic, kRsrc_TZ_Central, kRsrc_TZ_Eastern, kRsrc_TZ_GMT, kRsrc_TZ_GMTMinus1, kRsrc_TZ_GMTMinus10, kRsrc_TZ_GMTMinus11, kRsrc_TZ_GMTMinus12, kRsrc_TZ_GMTMinus2, kRsrc_TZ_GMTMinus3, kRsrc_TZ_GMTMinus4, kRsrc_TZ_GMTMinus5, kRsrc_TZ_GMTMinus6, kRsrc_TZ_GMTMinus7, kRsrc_TZ_GMTMinus8, kRsrc_TZ_GMTMinus9, kRsrc_TZ_GMTPlus1, kRsrc_TZ_GMTPlus10, kRsrc_TZ_GMTPlus11, kRsrc_TZ_GMTPlus12, kRsrc_TZ_GMTPlus13, kRsrc_TZ_GMTPlus2, kRsrc_TZ_GMTPlus3, kRsrc_TZ_GMTPlus4, kRsrc_TZ_GMTPlus5, kRsrc_TZ_GMTPlus6, kRsrc_TZ_GMTPlus7, kRsrc_TZ_GMTPlus8, kRsrc_TZ_GMTPlus9, kRsrc_TZ_Hawaii, kRsrc_TZ_IndianaEast, kRsrc_TZ_Mountain, kRsrc_TZ_Pacific, kRsrc_TZ_PuertoRico, kRsrc_TZ_Samoa, kRsrc_UartBreak, kRsrc_UartFramingError, kRsrc_UartOverrun, kRsrc_Unknown, kRsrc_UnknownRadioErrorCode, kRsrc_UnlockStatusText, kRsrc_UnMute, kRsrc_UnsafeToUpgradeMessage, kRsrc_UnsafeToUpgradeTitle, kRsrc_UpgradeSuccessLabel, kRsrc_UpgradeSuccessMessage, kRsrc_UpgradeVerifyFailedMessage, kRsrc_UpgradeVerifyFailedTitle, kRsrc_UserIDStringPair, kRsrc_UsernameLabel, kRsrc_ViewFullscreen, kRsrc_ViewGallery, kRsrc_ViewLicense, kRsrc_ViewThumbnails, kRsrc_Voice, kRsrc_Volume, kRsrc_WaitingForActivation, kRsrc_WrongComboAlertHelpText, kRsrc_WrongComboAlertMessage, kRsrc_WrongComboAlertTitle, kRsrc_ZtoA
 
Constructor Summary
AlertWindow(int windowStyle, java.lang.String message, boolean showCancel)
          Deprecated. Constructs an alert window with the specified message.
AlertWindow(java.lang.String message)
          Deprecated. Constructs an alert window with the specified message.
AlertWindow(java.lang.String message, boolean showCancel)
          Deprecated.  
 
Method Summary
 void addButton(int whichButton, java.lang.String buttonStr, int eventType, int data, java.lang.Object arg)
          Deprecated. Add a button to the alert window.
 void addButton(int whichButton, java.lang.String buttonStr, int eventType, int data, java.lang.Object arg, int shortcut)
          Deprecated. Add a button to the alert window.
 boolean addButton(java.lang.String buttonStr, int eventType, int data, java.lang.Object arg)
          Deprecated. Add a button to the alert window.
 boolean addButton(java.lang.String buttonStr, int eventType, int data, java.lang.Object arg, int shortcut)
          Deprecated. Add a button to the alert window.
 Bitmap getBitmap()
          Deprecated.  
 int getDefaultButton()
          Deprecated.  
protected  int getMaxMessageHeight()
          Deprecated.  
 java.lang.String getMessage()
          Deprecated.  
 Font getMessageFont()
          Deprecated.  
 java.lang.String getSleepScreenMessage()
          Deprecated. Override for system alerts
 boolean handleShortcutKey(Event e)
          Deprecated. Handle a shortcut key event.
protected  boolean layout()
          Deprecated.  
protected  void layoutBitmap()
          Deprecated.  
protected  Button layoutButtons(int windowWidth, int currentHeight, int bottomAlignHeight)
          Deprecated.  
 void layoutButtonsVertically(boolean flag)
          Deprecated. Layout buttons vertically instead of horizontally.
protected  int layoutMessage(int textColLeft, int textColWidth, int windowHeight)
          Deprecated.  
protected  Button newButtonWithShortcut(java.lang.String string, int shortcut)
          Deprecated.  
 boolean receiveEvent(Event e)
          Deprecated. Receive an event from the alert window.
 void setBitmap(Bitmap inBitmap)
          Deprecated.  
 void setDefaultButton(int which)
          Deprecated. 0 = cancel, 1-3 = standard buttons
 void setFont(Font inFont)
          Deprecated. Set the font used in the alert window.
 void setListener(Listener inListener)
          Deprecated. Set the listener for the alert window.
 void setMessage(java.lang.String msg)
          Deprecated. Set the message for the alert window.
 void setMessageFont(Font inFont)
          Deprecated. Set the font of the message in the alert window.
 void show()
          Deprecated. Display the alert window.
 
Methods inherited from class danger.ui.DialogWindow
activateFrameButton, addBottomFrameButton, addChild, addFrameButton, addFrameButton, addFrameButton, addTopFrameButton, computeTitleWidth, convertShortcutKeyToButtonIndex, drawDialogStyleFrame, drawFrame, drawSystemWindowStyleFrame, eventWidgetUp, getChildWithID, getContentRect, getDefaultFrameButton, getFrameButtonWithID, getIcon, getTitle, getTitleBarHeight, getTitleFont, hide, initTitleBarControlList, layoutBottomFrameButtonsVertically, layoutFrame, layoutFrameButtons, layoutTopFrameButtons, paint, positionBottomButtons, positionDialog, positionFrameButtons, positionTopButtons, setAutoSize, setBackEvent, setCancelButtonEvent, setCancelButtonShortcutBitmap, setContentSize, setDefaultFrameButton, setDefaultFrameButton, setDefaultListener, setDrawBottomFrame, setEventForControlWithID, setEventForFrameButtonWithID, setFocusedChild, setFrameButtonShortcut, setIcon, setIconVerticalOffset, setNoDefaultFrameButton, setShowCancel, setSize, setTitle, setTitleFormatDate, setTitleFormatText, setTitleFormatText, setTitleFormatText, setTitleFormatText, setWindowStyle, snapToChildren, snapToChildren
 
Methods inherited from class danger.ui.Window
addFromDialogResource, addFromDialogResource, addToChildIDList, addToChildIDList, adjustActionMenuState, autoHide, autoHideIfIdle, autoHideIfIdle, blocksChooser, centerHorizontal, centerOnScreen, centerUnderTitleBar, centerVertical, disableControlWithID, dropOrphanedEvents, enableControlWithID, getApplication, getControlWithID, getDescendantWithID, getExplicitIDOfChild, getIDOfChild, getListener, getWindowBelow, hideActiveMenu, hideControlWithID, isActionMenuVisible, isFloating, isFullScreen, isUnresponsive, onPeriodicPulse, onWindowPaint, receiveMessage, removeChildFromIDList, setFloating, setFormatDateForControlWithID, setFormatDateForTextControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setListenerForAllControls, setMaxChildID, setMaxControlID, setPosition, setTitled, shouldDropEvent, showControlWithID
 
Methods inherited from class danger.ui.Container
addChild, addChildAt, advanceFocus, childCount, childIsOnScreen, disable, enable, eventKeyDown, eventKeyHeld, eventKeyRepeat, eventKeyUp, eventPeriodicPulse, eventShortcut, eventWidgetDown, eventWidgetHeld, getBottomChild, getChildAt, getChildIndex, getFirstChild, getFirstFocusableChild, getFocusedChild, getLastChild, getLastFocusableChild, hideAllChildren, loseFocus, moveChildToIndex, paintChildren, reflowChildren, removeAllChildren, removeChild, reverseFocus, setFocusedChild, setWindow, showAllChildren, takeFocus
 
Methods inherited from class danger.ui.View
clear, copyStyle, getAcceptFocus, getBackgroundColor, getBottom, getBounds, getBounds, getFrame, getFrame, getHeight, getInterestingRect, getInterestingRect, getLeft, getOrigin, getOrigin, getOriginX, getOriginY, getParent, getRight, getSibling, getStyle, getStyleColor, getStyleFont, getTop, getWidth, getWindow, globalToLocal, invalidate, invalidate, invalidate, isEnabled, isFocusable, isFocused, isOnScreen, isTransparent, isVisible, keepRectInView, localToGlobal, localToGlobal, localToWindow, moveBy, offsetOrigin, offsetOrigin, onAddedToParent, onDecoded, onRemovedFromParent, onStyleChanged, receiveEventInternal, resetOrigin, sendEventToWindow, setAcceptFocus, setBackgroundColor, setBottom, setDebugBounds, setEnabled, setFrame, setHeight, setKeyedValue, setLeft, setOrigin, setOrigin, setRight, setStyle, setStyleColor, setStyleFont, setStyleFrameColor, setTop, setTransparent, setVisible, setWidth, styleIsDefault, willFocusWithin, windowToLocal
 
Methods inherited from class danger.app.Listener
cancelEvents, sendEvent, sendEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mFont

protected Font mFont
Deprecated. 

mMessage

protected java.lang.String mMessage
Deprecated. 

mBitmap

protected Bitmap mBitmap
Deprecated. 

mImageViewWidth

protected int mImageViewWidth
Deprecated. 

mImageViewHeight

protected int mImageViewHeight
Deprecated. 

mButtonStr1

protected java.lang.String mButtonStr1
Deprecated. 

mButtonStr2

protected java.lang.String mButtonStr2
Deprecated. 

mButtonStr3

protected java.lang.String mButtonStr3
Deprecated. 

mEventType1

protected int mEventType1
Deprecated. 

mEventType2

protected int mEventType2
Deprecated. 

mEventType3

protected int mEventType3
Deprecated. 

mData1

protected int mData1
Deprecated. 

mData2

protected int mData2
Deprecated. 

mData3

protected int mData3
Deprecated. 

mShortcut1

protected int mShortcut1
Deprecated. 

mShortcut2

protected int mShortcut2
Deprecated. 

mShortcut3

protected int mShortcut3
Deprecated. 

mArg1

protected java.lang.Object mArg1
Deprecated. 

mArg2

protected java.lang.Object mArg2
Deprecated. 

mArg3

protected java.lang.Object mArg3
Deprecated. 

mDefaultButton

protected int mDefaultButton
Deprecated. 

mListener

protected Listener mListener
Deprecated. 

mNeedLayout

protected boolean mNeedLayout
Deprecated. 

mLayoutButtonsVertically

protected boolean mLayoutButtonsVertically
Deprecated. 

mShowWindowTimer

protected danger.system.SystemTimer mShowWindowTimer
Deprecated. 

kMaxBitmapSize

public static final int kMaxBitmapSize
Deprecated. 

kEvent_Button1

protected static final int kEvent_Button1
Deprecated. 

kEvent_Button2

protected static final int kEvent_Button2
Deprecated. 

kEvent_Button3

protected static final int kEvent_Button3
Deprecated. 

kIconColWidth

protected static final int kIconColWidth
Deprecated. 

kTopMargin

protected static final int kTopMargin
Deprecated. 

kLeftMargin

protected static final int kLeftMargin
Deprecated. 

kRightMargin

protected static final int kRightMargin
Deprecated. 

kBottomMargin

protected static final int kBottomMargin
Deprecated. 

kGap1

protected static final int kGap1
Deprecated. 

kGap3

protected static final int kGap3
Deprecated. 

kGap4

protected static final int kGap4
Deprecated. 

kGap5

protected static final int kGap5
Deprecated. 

kButtonMinWidth

protected static final int kButtonMinWidth
Deprecated. 

kButtonHeight

protected static final int kButtonHeight
Deprecated. 

kMaxTitleHeight

protected static final int kMaxTitleHeight
Deprecated. 

kShortcutNone

public static final int kShortcutNone
Deprecated. 

kShortcutMenu

public static final int kShortcutMenu
Deprecated. 

kShortcutBack

public static final int kShortcutBack
Deprecated. 

kShortcutDelete

public static final int kShortcutDelete
Deprecated. 
Constructor Detail

AlertWindow

public AlertWindow(java.lang.String message)
Deprecated. 
Constructs an alert window with the specified message. Creates an alert window with the message specified. The new alert window is not displayed until its Show method is called. The alert window will be a standard window containing the cancel (X) control. The window will also contain an OK button.
Parameters:
message - A String containing the alert message to be displayed.

AlertWindow

public AlertWindow(java.lang.String message,
                   boolean showCancel)
Deprecated. 

AlertWindow

public AlertWindow(int windowStyle,
                   java.lang.String message,
                   boolean showCancel)
Deprecated. 
Constructs an alert window with the specified message. Creates an alert window with the message specified. The new alert window is not displayed until its Show method is called. If the systemDialog parameter is set to true, the window will be a system dialog and will not contain the cancel (X) control. If the system dialog parameter is false, the alert window will be a standard window. The window will also contain an OK button.
Parameters:
message - A String containing the alert message to be displayed.
Method Detail

setListener

public void setListener(Listener inListener)
Deprecated. 
Set the listener for the alert window. This method sets the listener for the window. The listener is the object that will receive events that occur in the alert window.
Overrides:
setListener in class DialogWindow
Parameters:
inListener - A Listener that will receive events from the window.

setBitmap

public void setBitmap(Bitmap inBitmap)
Deprecated. 

getBitmap

public Bitmap getBitmap()
Deprecated. 

setMessage

public void setMessage(java.lang.String msg)
Deprecated. 
Set the message for the alert window. This method sets the message that will be displayed in the alert window. Use this method before calling the Show method to display the window.
Parameters:
msg - A String containing the message to be displayed in the alert window.

getMessage

public java.lang.String getMessage()
Deprecated. 

setMessageFont

public void setMessageFont(Font inFont)
Deprecated. 
Set the font of the message in the alert window. This method sets the font of the message that will be displayed in the alert window.
Parameters:
inFont - A font object.

getMessageFont

public Font getMessageFont()
Deprecated. 

addButton

public boolean addButton(java.lang.String buttonStr,
                         int eventType,
                         int data,
                         java.lang.Object arg)
Deprecated. 
Add a button to the alert window. Adds a new button to the alert window. Up to three buttons can be defined. By default, the buttons are laid out across the bottom of the window in order from right to left. The first two buttons are right justified and the third is left justified. To have the buttons layed out vertically, see the LayoutButtonsVertically method.

addButton

public boolean addButton(java.lang.String buttonStr,
                         int eventType,
                         int data,
                         java.lang.Object arg,
                         int shortcut)
Deprecated. 
Add a button to the alert window. Adds a new button to the alert window. Up to three buttons can be defined. By default, the buttons are laid out across the bottom of the window in order from right to left. The first two buttons are right justified and the third is left justified. To have the buttons layed out vertically, see the LayoutButtonsVertically method.

addButton

public void addButton(int whichButton,
                      java.lang.String buttonStr,
                      int eventType,
                      int data,
                      java.lang.Object arg)
Deprecated. 
Add a button to the alert window. Adds a new button to the alert window. Up to three buttons can be defined.
Parameters:
whichButton - defines the button to be assigned. button #1 is the rightmost button; button #3 is the leftmost button.

addButton

public void addButton(int whichButton,
                      java.lang.String buttonStr,
                      int eventType,
                      int data,
                      java.lang.Object arg,
                      int shortcut)
Deprecated. 
Add a button to the alert window. Adds a new button to the alert window. Up to three buttons can be defined. The buttonStr is the name of the button. The eventType, data, and arg parameters are used when creating the new event to be sent to the ReceiveEvent method of the listener. The shortcut (1-3) maps to one of the devicewidgets: 1 = Menu, 2 = Jump, and 3 = Back. By default, the buttons are laid out across the bottom of the window in order from right(#1 button) to left(#3 button). The first two buttons are right justified and the third is left justified. To have the buttons layed out vertically, see the LayoutButtonsVertically method.
Parameters:
whichButton - values of 1-3, indicates which button to assign.
buttonStr - A String containing the label for the button.
eventType - An int containing the event type to be sent when the button is chosen.
data - An int containing any additional data to be sent in the event.
arg - An Object containing an object reference to be sent in the event.
shortcut - An int (1-3) specifying the shortcut to be used for the button.

setDefaultButton

public void setDefaultButton(int which)
Deprecated. 
0 = cancel, 1-3 = standard buttons

getDefaultButton

public int getDefaultButton()
Deprecated. 

layoutButtonsVertically

public void layoutButtonsVertically(boolean flag)
Deprecated. 
Layout buttons vertically instead of horizontally. Pass true to this method when you want the buttons layed out vertically from top to bottom along the left side of the window. Button 1 will closest to the top, button 3 will be closest to the bottom. When false is passed, the default horizontal layout will be performed.

newButtonWithShortcut

protected Button newButtonWithShortcut(java.lang.String string,
                                       int shortcut)
Deprecated. 
Overrides:
newButtonWithShortcut in class DialogWindow

getMaxMessageHeight

protected int getMaxMessageHeight()
Deprecated. 

layoutBitmap

protected void layoutBitmap()
Deprecated. 

layoutMessage

protected int layoutMessage(int textColLeft,
                            int textColWidth,
                            int windowHeight)
Deprecated. 

layoutButtons

protected Button layoutButtons(int windowWidth,
                               int currentHeight,
                               int bottomAlignHeight)
Deprecated. 

layout

protected boolean layout()
Deprecated. 

handleShortcutKey

public boolean handleShortcutKey(Event e)
Deprecated. 
Handle a shortcut key event. This method is called when the user presses one of the three shortcut keys (Action, Back, or Jump). The default behavior is to create an event that is sent to the listener for the alert window. Override this method if you want to handle these events yourself.
Overrides:
handleShortcutKey in class DialogWindow
Parameters:
e - An Event containing the shortcut event that was received.

receiveEvent

public boolean receiveEvent(Event e)
Deprecated. 
Receive an event from the alert window. Called whenever the alert window receives an event. The default behavior is to create and send an event to the listener for the alert window. Override this method to receive and process the events yourself.
Overrides:
receiveEvent in class DialogWindow
Parameters:
e - An Event containing the event received.

show

public void show()
Deprecated. 
Display the alert window. Called to actually display the alert window. Alert windows are not displayed until you call this method.
Overrides:
show in class DialogWindow

setFont

public void setFont(Font inFont)
Deprecated. 
Set the font used in the alert window. Call this method to change the font used for the alert window. By default the alert window uses the system font.
Parameters:
inFont - A Font containing a reference to the desired font for the alert window.

getSleepScreenMessage

public java.lang.String getSleepScreenMessage()
Deprecated. 
Description copied from class: DialogWindow
Override for system alerts
Overrides:
getSleepScreenMessage in class DialogWindow


Danger Confidential. Copyright © 2000-2003, Danger Inc.