danger.ui
Class PhoneVolumeSliderWindow

java.lang.Object
  |
  +--danger.app.Listener
        |
        +--danger.ui.View
              |
              +--danger.ui.Container
                    |
                    +--danger.ui.Window
                          |
                          +--danger.ui.SliderWindow
                                |
                                +--danger.ui.PhoneVolumeSliderWindow
All Implemented Interfaces:
ISliderData, danger.SystemStrings

public class PhoneVolumeSliderWindow
extends SliderWindow
implements danger.SystemStrings


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
 
Fields inherited from interface danger.ui.ISliderData
kCompressed, kUncompressed, kWindowOnly
 
Constructor Summary
PhoneVolumeSliderWindow()
           
PhoneVolumeSliderWindow(Slider inSlider)
           
 
Method Summary
 boolean eventKeyDown(char inKey, Event event)
           
 boolean eventKeyUp(char inKey, Event event)
          Processes key releases directed at this container.
 boolean eventPeriodicPulse(int timestamp)
           
 boolean eventWidgetDown(int inWhichWidget, Event event)
          Handle the pressing of a device widget
 boolean eventWidgetUp(int inWhichWidget, Event event)
          Handle the release of a device widget
 void hide()
           
 boolean receiveEvent(Event e)
          Entry point for event processing.
 void setValue(int value)
           
 void show()
           
 void showAt(Point p)
           
static void showSystemPhoneVolumeSliderWindow()
           
 
Methods inherited from class danger.ui.SliderWindow
getBitmaps, getCurrentBitmap, getDescription, getMaxValue, getMinValue, getSliderPortionWidth, getSliderType, getTitle, getValue, paint, setBitmaps, setDescription, setMaxValue, setMinValue, setOwnSize, setSliderPortionWidth, setSliderType, setTitle
 
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, setEventForControlWithID, setFloating, setFormatDateForControlWithID, setFormatDateForTextControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setListenerForAllControls, setMaxChildID, setMaxControlID, setPosition, setSize, setTitled, shouldDropEvent, showControlWithID
 
Methods inherited from class danger.ui.Container
addChild, addChild, addChildAt, advanceFocus, childCount, childIsOnScreen, disable, enable, eventKeyHeld, eventKeyRepeat, eventShortcut, eventWidgetHeld, getBottomChild, getChildAt, getChildIndex, getChildWithID, getFirstChild, getFirstFocusableChild, getFocusedChild, getLastChild, getLastFocusableChild, hideAllChildren, loseFocus, moveChildToIndex, paintChildren, reflowChildren, removeAllChildren, removeChild, reverseFocus, setFocusedChild, setFocusedChild, setWindow, showAllChildren, snapToChildren, 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
 

Constructor Detail

PhoneVolumeSliderWindow

public PhoneVolumeSliderWindow()

PhoneVolumeSliderWindow

public PhoneVolumeSliderWindow(Slider inSlider)
Method Detail

showSystemPhoneVolumeSliderWindow

public static void showSystemPhoneVolumeSliderWindow()

show

public void show()
Overrides:
show in class SliderWindow

showAt

public void showAt(Point p)
Overrides:
showAt in class SliderWindow

hide

public void hide()
Overrides:
hide in class Window

setValue

public void setValue(int value)
Overrides:
setValue in class SliderWindow

receiveEvent

public boolean receiveEvent(Event e)
Description copied from class: Listener
Entry point for event processing. Default behaviour is to do nothing and return false. Normally this method is called from a Dispatcher when it discovers an Event in its queue that is targetted at this Listener.
Overrides:
receiveEvent in class Container

eventPeriodicPulse

public boolean eventPeriodicPulse(int timestamp)
Overrides:
eventPeriodicPulse in class Container

eventWidgetUp

public boolean eventWidgetUp(int inWhichWidget,
                             Event event)
Description copied from class: Container
Handle the release of a device widget
Overrides:
eventWidgetUp in class SliderWindow
Following copied from class: danger.ui.Container
Parameters:
inWidget - the widget that went down
Returns:
whether or not the event was consumed

eventWidgetDown

public boolean eventWidgetDown(int inWhichWidget,
                               Event event)
Description copied from class: Container
Handle the pressing of a device widget
Overrides:
eventWidgetDown in class SliderWindow
Following copied from class: danger.ui.Container
Parameters:
inWidget - the widget that went up
Returns:
whether or not the event was consumed

eventKeyDown

public boolean eventKeyDown(char inKey,
                            Event event)
Overrides:
eventKeyDown in class Container

eventKeyUp

public boolean eventKeyUp(char inKey,
                          Event event)
Description copied from class: Container
Processes key releases directed at this container.
Overrides:
eventKeyUp in class SliderWindow
Following copied from class: danger.ui.Container
Parameters:
c - the character being released.


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