|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--danger.app.Listener
|
+--danger.ui.View
|
+--danger.ui.Container
|
+--danger.ui.Window
|
+--danger.ui.DialogWindow
|
+--danger.ui.AlertWindow
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.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.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 |
protected Font mFont
protected java.lang.String mMessage
protected Bitmap mBitmap
protected int mImageViewWidth
protected int mImageViewHeight
protected java.lang.String mButtonStr1
protected java.lang.String mButtonStr2
protected java.lang.String mButtonStr3
protected int mEventType1
protected int mEventType2
protected int mEventType3
protected int mData1
protected int mData2
protected int mData3
protected int mShortcut1
protected int mShortcut2
protected int mShortcut3
protected java.lang.Object mArg1
protected java.lang.Object mArg2
protected java.lang.Object mArg3
protected int mDefaultButton
protected Listener mListener
protected boolean mNeedLayout
protected boolean mLayoutButtonsVertically
protected danger.system.SystemTimer mShowWindowTimer
public static final int kMaxBitmapSize
protected static final int kEvent_Button1
protected static final int kEvent_Button2
protected static final int kEvent_Button3
protected static final int kIconColWidth
protected static final int kTopMargin
protected static final int kLeftMargin
protected static final int kRightMargin
protected static final int kBottomMargin
protected static final int kGap1
protected static final int kGap3
protected static final int kGap4
protected static final int kGap5
protected static final int kButtonMinWidth
protected static final int kButtonHeight
protected static final int kMaxTitleHeight
public static final int kShortcutNone
public static final int kShortcutMenu
public static final int kShortcutBack
public static final int kShortcutDelete
| Constructor Detail |
public AlertWindow(java.lang.String message)
message - A String containing the alert message to be displayed.
public AlertWindow(java.lang.String message,
boolean showCancel)
public AlertWindow(int windowStyle,
java.lang.String message,
boolean showCancel)
message - A String containing the alert message to be displayed.| Method Detail |
public void setListener(Listener inListener)
setListener in class DialogWindowinListener - A Listener that will receive events from the window.public void setBitmap(Bitmap inBitmap)
public Bitmap getBitmap()
public void setMessage(java.lang.String msg)
msg - A String containing the message to be displayed in the alert window.public java.lang.String getMessage()
public void setMessageFont(Font inFont)
inFont - A font object.public Font getMessageFont()
public boolean addButton(java.lang.String buttonStr,
int eventType,
int data,
java.lang.Object arg)
public boolean addButton(java.lang.String buttonStr,
int eventType,
int data,
java.lang.Object arg,
int shortcut)
public void addButton(int whichButton,
java.lang.String buttonStr,
int eventType,
int data,
java.lang.Object arg)
whichButton - defines the button to be assigned.
button #1 is the rightmost button; button #3 is the leftmost button.
public void addButton(int whichButton,
java.lang.String buttonStr,
int eventType,
int data,
java.lang.Object arg,
int shortcut)
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.public void setDefaultButton(int which)
public int getDefaultButton()
public void layoutButtonsVertically(boolean flag)
protected Button newButtonWithShortcut(java.lang.String string,
int shortcut)
newButtonWithShortcut in class DialogWindowprotected int getMaxMessageHeight()
protected void layoutBitmap()
protected int layoutMessage(int textColLeft,
int textColWidth,
int windowHeight)
protected Button layoutButtons(int windowWidth,
int currentHeight,
int bottomAlignHeight)
protected boolean layout()
public boolean handleShortcutKey(Event e)
handleShortcutKey in class DialogWindowe - An Event containing the shortcut event that was received.public boolean receiveEvent(Event e)
receiveEvent in class DialogWindowe - An Event containing the event received.public void show()
show in class DialogWindowpublic void setFont(Font inFont)
inFont - A Font containing a reference to the desired font for the alert window.public java.lang.String getSleepScreenMessage()
DialogWindowgetSleepScreenMessage in class DialogWindow
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||