danger.ui.photopicker
Class PhotoPicker

java.lang.Object
  extended by danger.app.Listener
      extended by danger.ui.View
          extended by danger.ui.Container
              extended by danger.ui.Window
                  extended by danger.ui.ScreenWindow
                      extended by danger.ui.photopicker.PhotoPicker


public abstract class PhotoPicker
extends ScreenWindow


Field Summary
static int APP_MODE
          Deprecated. Deprecated Do not use APP_MODE constant.
static int BROWSER_VIEW
          Deprecated. Deprecated Do not use BROWSER_VIEW constant.
static int CAPTURE_VIEW
          Deprecated. Deprecated Do not use CAPTURE_VIEW constant.
static int DIALOG_MODE
          Deprecated. Deprecated Do not use DIALOG_MODE constant.
static int EXPLORER_VIEW
          Deprecated. Deprecated Do not use EXPLORER_VIEW constant.
static int FULL_SCREEN_VIEW
          Deprecated. Deprecated Do not use FULL_SCREEN_VIEW constant.
static int IMAX_VIEW
          Deprecated. Deprecated Do not use IMAX_VIEW constant.
static int REVIEW_VIEW
          Deprecated. Deprecated Do not use REVIEW_VIEW constant.
static int SLIDESHOW_VIEW
          Deprecated. Deprecated Do not use SLIDESHOW_VIEW constant.
 
Fields inherited from class danger.ui.Window
mBusyPaintCount, mDefaultListener, STATE_AUTO_HIDE_IF_IDLE, STATE_DROP_ORPHANED_EVENTS, STATE_FULLSCREEN, STATE_UNUSED1
 
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
PhotoPicker()
           
 
Method Summary
static PhotoPicker createPicker()
          Obtain a reference to the PhotoPicker instance.
abstract  long getMaxSelectionByteCount()
          Returns the maximum # of selectable bytes photos in the PhotoPicker.
abstract  int getMaxSelectionCount()
          Returns the maximum # of selectable photos in the PhotoPicker.
abstract  int getMode()
          Deprecated. Deprecated Do not use getMode().
abstract  void setEvent(Listener listener, int type)
          Define the return event sent to the caller when PhotoPicker is done.
abstract  void setEvent(Listener listener, int type, int what, int data)
          Define the return event sent to the caller when PhotoPicker is done.
abstract  void setMaxSelectionByteCount(long byteCount)
          Set the maximum # of bytes of selectable photos in the PhotoPicker.
abstract  void setMaxSelectionCount(int count)
          Set the maximum # of selectable photos in the PhotoPicker.
abstract  void setMode(int mode)
          Deprecated. Deprecated Do not use setMode().
abstract  void setStartInCaptureView(boolean start)
          Indicate whether the PhotoPicker should start in photo capture mode.
 
Methods inherited from class danger.ui.ScreenWindow
aboutToHideMenu, aboutToShowMenu, adjustActionMenuState, adjustActionMenuState, eventKeyUp, eventShortcut, eventWidgetDown, eventWidgetUp, getActionMenu, getIcon, getSubTitle, getSubTitleFont, getSubTitleSequence, getTitle, getTitleFont, getTitleSequence, isActionMenuVisible, onScreenWindowActivate, onScreenWindowDeactivate, onShortcut, removeAllChildren, setFullScreen, setIcon, setSubTitle, setSubTitle, setSubTitle, setSubTitle, setTitle, setTitle, setTitle, setTitle
 
Methods inherited from class danger.ui.Window
advanceFocus, autoHide, autoHideIfIdle, autoHideIfIdle, blocksBackButton, blocksChooser, blocksFloatingControls, blocksKeyGuard, blocksVolumeButtons, centerHorizontal, centerOnScreen, centerUnderTitleBar, centerVertical, disableControlWithID, dropOrphanedEvents, enableControlWithID, forwardQueuedEvents, getApplication, getDefaultFocus, getDescendantWithID, getIDOfChild, getListener, getWindowBelow, hide, hideActiveMenu, hideControlWithID, incrementMaxChildID, isFullScreen, isUnresponsive, onActivate, onDeactivate, onPeriodicPulse, onWindowPaint, receiveMessage, reverseFocus, setDefaultFocus, setDefaultListener, setEventArgForControlWithID, setEventForControlWithID, setMaxChildID, setMaxControlID, setPosition, setSize, setTitled, setTitleFormatDate, setTitleFormatText, setTitleFormatText, setTitleFormatText, setTitleFormatText, setTitleFormatText, shouldDropEvent, show, showControlWithID, startQueueingEvents, wantsEndButton, wantsSendButton, willPassEventToWindow
 
Methods inherited from class danger.ui.Container
addChild, addChild, addChildAt, addChildAt, addFromContainerResource, addFromContainerResource, addFromContainerResource, addFromDialogResource, addFromDialogResource, advanceFocusInWindow, childCount, childIsOnScreen, disable, enable, eventKeyDown, eventKeyHeld, eventKeyRepeat, eventPeriodicPulse, eventRawKeyDown, eventRawKeyHeld, eventRawKeyRepeat, eventRawKeyUp, eventWidgetHeld, focusedDescendantIsValid, getBottomChild, getBottomChild, getChildAt, getChildIndex, getChildWithID, getControlWithID, getFirstChild, getFirstFocusableChild, getFocusableChildInWindow, getFocusedChild, getFocusedLeaf, getInterestingRect, getLastChild, getLastFocusableChild, getLeftMostChild, getNextFocusableChild, getNextFocusableChild, getPageHeight, getPrevFocusableChild, getPrevFocusableChild, getRightMostChild, getRightMostChild, handleButtonShortcut, hideAllChildren, isDescendant, keepRectInView, loseFocus, moveChildToIndex, onChildPositionChanged, onChildSizeChanged, onChildVisibilityChanged, pageToEnd, pageToHome, paint, paintChildren, receiveEvent, reflowChildren, removeChild, 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, takeFocus, willFocusWithin, 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, 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, onPositionChanged, onRemovedFromParent, onShortcut, onShortcutConsumed, onShow, onSizeChanged, onStyleChanged, onViewPositionChanged, onViewSizeChanged, 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, setPreferredDirection, setRight, setScrollFocusMargin, setStyle, setStyleColor, setStyleFont, setStyleFrameColor, setTop, setTransparent, setVisible, setWidth, 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
 

Field Detail

BROWSER_VIEW

public static final int BROWSER_VIEW
Deprecated. Deprecated Do not use BROWSER_VIEW constant.
See Also:
Constant Field Values

FULL_SCREEN_VIEW

public static final int FULL_SCREEN_VIEW
Deprecated. Deprecated Do not use FULL_SCREEN_VIEW constant.
See Also:
Constant Field Values

CAPTURE_VIEW

public static final int CAPTURE_VIEW
Deprecated. Deprecated Do not use CAPTURE_VIEW constant.
See Also:
Constant Field Values

REVIEW_VIEW

public static final int REVIEW_VIEW
Deprecated. Deprecated Do not use REVIEW_VIEW constant.
See Also:
Constant Field Values

EXPLORER_VIEW

public static final int EXPLORER_VIEW
Deprecated. Deprecated Do not use EXPLORER_VIEW constant.
See Also:
Constant Field Values

SLIDESHOW_VIEW

public static final int SLIDESHOW_VIEW
Deprecated. Deprecated Do not use SLIDESHOW_VIEW constant.
See Also:
Constant Field Values

IMAX_VIEW

public static final int IMAX_VIEW
Deprecated. Deprecated Do not use IMAX_VIEW constant.
See Also:
Constant Field Values

DIALOG_MODE

public static final int DIALOG_MODE
Deprecated. Deprecated Do not use DIALOG_MODE constant.
See Also:
Constant Field Values

APP_MODE

public static final int APP_MODE
Deprecated. Deprecated Do not use APP_MODE constant.
See Also:
Constant Field Values
Constructor Detail

PhotoPicker

public PhotoPicker()
Method Detail

createPicker

public static final PhotoPicker createPicker()
Obtain a reference to the PhotoPicker instance.

Returns:
PhotoPicker instance.

setEvent

public abstract void setEvent(Listener listener,
                              int type,
                              int what,
                              int data)
Define the return event sent to the caller when PhotoPicker is done.


setEvent

public abstract void setEvent(Listener listener,
                              int type)
Define the return event sent to the caller when PhotoPicker is done.


setStartInCaptureView

public abstract void setStartInCaptureView(boolean start)
Indicate whether the PhotoPicker should start in photo capture mode.

Parameters:
start - if true, start PhotoPicker in photo capture mode.

setMaxSelectionCount

public abstract void setMaxSelectionCount(int count)
Set the maximum # of selectable photos in the PhotoPicker.

Parameters:
count - maximum # of selectable photos.

getMaxSelectionCount

public abstract int getMaxSelectionCount()
Returns the maximum # of selectable photos in the PhotoPicker. By default, any # of photos may be selected.

Returns:
maximum # of selectable photos.

setMaxSelectionByteCount

public abstract void setMaxSelectionByteCount(long byteCount)
Set the maximum # of bytes of selectable photos in the PhotoPicker.

Parameters:
byteCount - maximum # of selectable bytes of photos.

getMaxSelectionByteCount

public abstract long getMaxSelectionByteCount()
Returns the maximum # of selectable bytes photos in the PhotoPicker. By default, any # of bytes of photos may be selected.

Returns:
maximum # of selectable bytes of photos.

getMode

public abstract int getMode()
Deprecated. Deprecated Do not use getMode().


setMode

public abstract void setMode(int mode)
Deprecated. Deprecated Do not use setMode().