danger.ui
Class ScreenWindow

java.lang.Object
  |
  +--danger.app.Listener
        |
        +--danger.ui.View
              |
              +--danger.ui.Container
                    |
                    +--danger.ui.Window
                          |
                          +--danger.ui.ScreenWindow
Direct Known Subclasses:
FolderEditor, ImageWindow, TextWindow

public class ScreenWindow
extends Window


Field Summary
protected  Listener mDefaultListener
           
protected  Bitmap mIcon
           
protected  java.lang.String mSubTitle
           
protected  Font mSubTitleFont
           
protected  java.lang.String mTitle
           
protected  Font mTitleFont
           
 
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
 
Constructor Summary
ScreenWindow()
           
ScreenWindow(boolean fullScreen)
           
ScreenWindow(java.lang.String inTitle)
           
ScreenWindow(java.lang.String inTitle, Bitmap inIcon)
           
 
Method Summary
protected  void aboutToHideMenu()
           
protected  void aboutToShowMenu()
           
static void activeVoiceCallCountChanged(int numActiveCalls)
           
 void adjustActionMenuState()
           
static boolean enableHangupPhone()
           
static void endActiveVoiceCalls()
           
 boolean eventShortcut(char shortcut)
           
 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
 Menu getActionMenu()
           
 Bitmap getIcon()
           
 java.lang.String getSubTitle()
           
protected  Font getSubTitleFont()
           
 java.lang.String getTitle()
           
protected  Font getTitleFont()
           
 boolean isActionMenuVisible()
           
 void removeAllChildren()
           
static int requiredSystemMenuItemCount()
           
 void setDefaultListener(Listener listener)
           
 void setEventForControlWithID(int id, Event newEvent)
           
 void setFullScreen(boolean fullScreen)
           
 void setIcon(Bitmap inIcon)
           
 void setSubTitle(java.lang.String inSubTitle)
           
 void setSubTitle(java.lang.String inSubTitle, Font inSubTitleFont)
           
 void setTitle(java.lang.String inTitle)
           
 void setTitle(java.lang.String inTitle, Font inFont)
           
 
Methods inherited from class danger.ui.Window
addFromDialogResource, addFromDialogResource, addToChildIDList, addToChildIDList, autoHide, autoHideIfIdle, autoHideIfIdle, blocksChooser, centerHorizontal, centerOnScreen, centerUnderTitleBar, centerVertical, disableControlWithID, dropOrphanedEvents, enableControlWithID, getApplication, getControlWithID, getDescendantWithID, getExplicitIDOfChild, getIDOfChild, getListener, getWindowBelow, hide, hideActiveMenu, hideControlWithID, isFloating, isFullScreen, isUnresponsive, onPeriodicPulse, onWindowPaint, receiveMessage, removeChildFromIDList, setFloating, setFormatDateForControlWithID, setFormatDateForTextControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setFormatTextForTextControlWithID, setListenerForAllControls, setMaxChildID, setMaxControlID, setPosition, setSize, setTitled, shouldDropEvent, show, showControlWithID
 
Methods inherited from class danger.ui.Container
addChild, addChild, addChildAt, advanceFocus, childCount, childIsOnScreen, disable, enable, eventKeyDown, eventKeyHeld, eventKeyRepeat, eventKeyUp, eventPeriodicPulse, eventWidgetHeld, getBottomChild, getChildAt, getChildIndex, getChildWithID, getFirstChild, getFirstFocusableChild, getFocusedChild, getLastChild, getLastFocusableChild, hideAllChildren, loseFocus, moveChildToIndex, paint, paintChildren, receiveEvent, reflowChildren, 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
 

Field Detail

mDefaultListener

protected Listener mDefaultListener

mTitleFont

protected Font mTitleFont

mTitle

protected java.lang.String mTitle

mSubTitleFont

protected Font mSubTitleFont

mSubTitle

protected java.lang.String mSubTitle

mIcon

protected Bitmap mIcon
Constructor Detail

ScreenWindow

public ScreenWindow()

ScreenWindow

public ScreenWindow(boolean fullScreen)

ScreenWindow

public ScreenWindow(java.lang.String inTitle)

ScreenWindow

public ScreenWindow(java.lang.String inTitle,
                    Bitmap inIcon)
Method Detail

setFullScreen

public void setFullScreen(boolean fullScreen)

setDefaultListener

public void setDefaultListener(Listener listener)

setEventForControlWithID

public void setEventForControlWithID(int id,
                                     Event newEvent)
Overrides:
setEventForControlWithID in class Window

setTitle

public void setTitle(java.lang.String inTitle)

setTitle

public void setTitle(java.lang.String inTitle,
                     Font inFont)

setSubTitle

public void setSubTitle(java.lang.String inSubTitle)

setSubTitle

public void setSubTitle(java.lang.String inSubTitle,
                        Font inSubTitleFont)

setIcon

public void setIcon(Bitmap inIcon)

getTitle

public java.lang.String getTitle()

getTitleFont

protected Font getTitleFont()

getSubTitle

public java.lang.String getSubTitle()

getSubTitleFont

protected Font getSubTitleFont()

getIcon

public Bitmap getIcon()

getActionMenu

public Menu getActionMenu()

enableHangupPhone

public static boolean enableHangupPhone()

requiredSystemMenuItemCount

public static int requiredSystemMenuItemCount()

activeVoiceCallCountChanged

public static void activeVoiceCallCountChanged(int numActiveCalls)

endActiveVoiceCalls

public static void endActiveVoiceCalls()

isActionMenuVisible

public boolean isActionMenuVisible()
Overrides:
isActionMenuVisible in class Window

eventShortcut

public boolean eventShortcut(char shortcut)
Overrides:
eventShortcut in class Container

eventWidgetDown

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

eventWidgetUp

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

adjustActionMenuState

public void adjustActionMenuState()
Overrides:
adjustActionMenuState in class Window

removeAllChildren

public void removeAllChildren()
Overrides:
removeAllChildren in class Container

aboutToShowMenu

protected void aboutToShowMenu()

aboutToHideMenu

protected void aboutToHideMenu()


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