com.sybase.uep.bobclient.screens
Class SyncProgressScreen

java.lang.Object
  extended by net.rim.device.api.ui.Field
      extended by net.rim.device.api.ui.Manager
          extended by net.rim.device.api.ui.Screen
              extended by net.rim.device.api.ui.container.FullScreen
                  extended by net.rim.device.api.ui.container.MainScreen
                      extended by com.sybase.uep.bobclient.screens.BaseBOBScreen
                          extended by com.sybase.uep.bobclient.screens.BaseBOBStockScreen
                              extended by com.sybase.uep.bobclient.screens.SyncProgressScreen
All Implemented Interfaces:
IBOBScreen, java.lang.Runnable

Deprecated.

public class SyncProgressScreen
extends BaseBOBStockScreen

This is the Sync Progress Screen. This screen will popup to show sync progress of application(s)

Author:
tdang

Field Summary
static java.lang.String DEFAULT_CANCEL_MENU_LABEL
          Deprecated.  
 
Fields inherited from class com.sybase.uep.bobclient.screens.BaseBOBStockScreen
_backgroundImage, _isScaleBackgroundImageAspectFit, _navigationBarBorderStyle, _navigationBarStyle, _screenTitle
 
Fields inherited from class com.sybase.uep.bobclient.screens.BaseBOBScreen
_appLogger, KEY
 
Fields inherited from class net.rim.device.api.ui.container.MainScreen
NO_STATUS_SEPARATOR, NO_TITLE_SEPARATOR
 
Fields inherited from class net.rim.device.api.ui.Screen
DEFAULT_CLOSE, DEFAULT_MENU, NO_SYSTEM_MENU_ITEMS
 
Fields inherited from class net.rim.device.api.ui.Manager
BOTTOMMOST, DOWNWARD, HORIZONTAL_SCROLL, HORIZONTAL_SCROLL_MASK, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_MASK, LEAVE_BLANK_SPACE, LEFTMOST, LEFTWARD, NO_HORIZONTAL_SCROLL, NO_HORIZONTAL_SCROLLBAR, NO_SCROLL_RESET, NO_VERTICAL_SCROLL, NO_VERTICAL_SCROLLBAR, QUANTA_FONT, RIGHTMOST, RIGHTWARD, TOPMOST, UPWARD, VERTICAL_SCROLL, VERTICAL_SCROLL_MASK, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_MASK
 
Fields inherited from class net.rim.device.api.ui.Field
ACTION_INVOKE, EDITABLE, EDITABLE_MASK, FIELD_BOTTOM, FIELD_HALIGN_MASK, FIELD_HCENTER, FIELD_LEADING, FIELD_LEFT, FIELD_RIGHT, FIELD_TOP, FIELD_TRAILING, FIELD_VALIGN_MASK, FIELD_VCENTER, FOCUSABLE, FOCUSABLE_MASK, HIGHLIGHT_FOCUS, HIGHLIGHT_SELECT, NON_FOCUSABLE, NON_SPELLCHECKABLE, READONLY, SPELLCHECKABLE, SPELLCHECKABLE_MASK, STATUS_MOVE_FOCUS_HORIZONTALLY, STATUS_MOVE_FOCUS_VERTICALLY, USE_ALL_HEIGHT, USE_ALL_WIDTH, VISUAL_STATE_ACTIVE, VISUAL_STATE_DISABLED, VISUAL_STATE_DISABLED_FOCUS, VISUAL_STATE_FOCUS, VISUAL_STATE_NORMAL
 
Constructor Summary
SyncProgressScreen(IBOBScreen currentScreen, boolean showCompleteMessage, java.lang.String refreshCompleteMsg, IBOBAction action, java.lang.String[] mobileAppList)
          Deprecated. Constructor to create the Sync progress screen
SyncProgressScreen(IBOBScreen currentScreen, boolean showCompleteMessage, java.lang.String refreshCompleteMsg, IBOBAction action, java.lang.String[] mobileAppList, java.util.Hashtable parameters)
          Deprecated. Constructor to create the Sync progress screen
SyncProgressScreen(IBOBScreen currentScreen, boolean showCompleteMessage, java.lang.String refreshCompleteMsg, IBOBAction action, java.lang.String[] mobileAppList, java.util.Hashtable parameters, java.lang.String packageName, java.lang.String publication)
          Deprecated. Constructor to create the Sync progress screen
SyncProgressScreen(IBOBScreen currentScreen, boolean showCompleteMessage, java.lang.String refreshCompleteMsg, IBOBAction action, java.lang.String packageName, java.lang.String publication)
          Deprecated. Constructor to create the Sync progress screen based on publication
 
Method Summary
protected  void defineScreen()
          Deprecated. (non-Javadoc)
 boolean keyChar(char key, int status, int time)
          Deprecated. Override the keyChar method to catch keys being clicked on If the user click the Escape button, we want to cancel the sync
 void setDescriptionLabel(java.lang.String str)
          Deprecated.  
 void setMainGaugeValue(int value)
          Deprecated.  
 void setRefreshMobileAppList(java.lang.String[] mobileAppList)
          Deprecated.  
 void setSyncObjectLabel(java.lang.String str)
          Deprecated.  
 void syncDone(java.lang.Exception exception)
          Deprecated.  
 boolean trackwheelClick(int status, int time)
          Deprecated. Override the trackwheel click to check if the user clicked on the buttons
 
Methods inherited from class com.sybase.uep.bobclient.screens.BaseBOBStockScreen
closeScreen, runOnSaveActions, setNavigationBarBorderStyle, setNavigationBarLabel, setNavigationBarStyle, setOnCloseActions, setOnSaveActions, setProperty
 
Methods inherited from class com.sybase.uep.bobclient.screens.BaseBOBScreen
addMenuAction, addMenuAction, addMenuAction, addMenuAction, addMenuAction, addMenuAction, addMenuAction, addMenuAction, addMenuAction, addMenuAction, addMenuSeperator, addMenuSeperator, addReferencedMBO, addSourceConnectionReference, addSpacer, askMobileDataControlRefresh, deleteMenuAction, getFooter, getLabelMsgString, getLabelMsgValue, getMenuGroup, getMenuItemByName, getMenuItemByNameAndDisable, getParentScreen, getReferencedMBOList, getScreenContext, getSyncProgressBar, getUIController, initAppLogger, initScreenContext, isCache, isSynchronizing, makeMenu, onFocusNotify, refresh, refreshScreenContext, run, setFooter, setFooterBorderColor, setFooterFontStyle, setFooterHasBorder, setFooterLabel, setHeaderFooter, setIsCache, setLabelMsgValue, setParentScreen, setProperty, setSynchronizing
 
Methods inherited from class net.rim.device.api.ui.container.MainScreen
addMenuItem, getField, getFieldCount, getFieldWithFocus, getFieldWithFocusIndex, getMainManager, keyCharUnhandled, onSavePrompt, removeAllMenuItems, removeMenuItem, setBanner, setId, setStatus, setTitle, setTitle, setTitle, setTitle
 
Methods inherited from class net.rim.device.api.ui.container.FullScreen
sublayout
 
Methods inherited from class net.rim.device.api.ui.Screen
add, addKeyListener, addScreenUiEngineAttachedListener, addTrackwheelListener, close, delete, deleteRange, dispatchKeyEvent, doLayout, doPaint, ensureRegionVisible, getAccessibleContext, getApplication, getDefaultMenuItem, getDelegate, getFieldAtLocation, getFocusRect, getGraphics, getLeafFieldWithFocus, getMenu, getScreenAbove, getScreenBelow, getUiEngine, getVirtualKeyboard, insert, invalidate, invalidate, invalidateAll, invalidateLayout, invokeAction, isDataValid, isDirty, isDisplayed, isFocus, isFocusable, isGlobal, isGlobalStatus, isMuddy, isObscured, isSelecting, keyControl, keyDown, keyRepeat, keyStatus, keyUp, layoutDelegate, navigationClick, navigationMovement, navigationUnclick, onClose, onDisplay, onExposed, onFocus, onMenu, onMenuDismissed, onMenuDismissed, onObscured, onSave, onUiEngineAttached, onUndisplay, onUnfocus, openDevelopmentBackdoor, openProductionBackdoor, paint, paintBackground, removeFocus, removeKeyListener, removeScreenUiEngineAttachedListener, removeTrackwheelListener, replace, save, scroll, setBackdoorAltStatus, setDefaultClose, setDirty, setFocus, setFocus, setFocus, setHorizontalQuantization, setPositionDelegate, setTrackballFilter, setTrackballSensitivityXOffset, setTrackballSensitivityYOffset, setVerticalQuantization, touchEvent, trackwheelClickUnhandled, trackwheelRoll, trackwheelUnclick, updateDisplay
 
Methods inherited from class net.rim.device.api.ui.Manager
clearCustomScrollArrows, deleteAll, getHorizontalScroll, getPreferredHeightOfChild, getPreferredWidthOfChild, getVerticalScroll, getVirtualHeight, getVirtualWidth, getVisibleHeight, getVisibleWidth, invalidateFieldRange, isDownArrowShown, isUpArrowShown, isValidLayout, layout, layoutChild, moveFocus, moveFocus, moveFocus, nextFocus, nextFocus, paintChild, setFocus, setHorizontalScroll, setNonfocusableOverride, setPositionChild, setScrollListener, setVerticalScroll, setVirtualExtent, subpaint
 
Methods inherited from class net.rim.device.api.ui.Field
drawFocus, drawHighlightRegion, fieldChangeNotify, focusAdd, focusChangeNotify, focusRemove, getBackground, getBackground, getBorder, getBorder, getBorder, getChangeListener, getContentHeight, getContentLeft, getContentRect, getContentRect, getContentTop, getContentWidth, getContextMenu, getContextMenu, getCookie, getExtent, getExtent, getFieldStyle, getFocusListener, getFont, getHeight, getIndex, getLeft, getManager, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getOriginal, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPreferredHeight, getPreferredWidth, getScreen, getState, getStyle, getTop, getVisualState, getWidth, isEditable, isPasteable, isSelectable, isSelectionCopyable, isSelectionCutable, isSelectionDeleteable, isSpellCheckable, isStyle, isVisible, makeContextMenu, makeContextMenu, onVisibilityChange, paste, select, selectionCopy, selectionCut, selectionDelete, setBackground, setBackground, setBorder, setBorder, setBorder, setBorder, setBorder, setChangeListener, setCookie, setEditable, setExtent, setFocusListener, setFont, setFont, setMargin, setMargin, setMuddy, setNonSpellCheckable, setPadding, setPadding, setPosition, setVisualState, updateLayout
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CANCEL_MENU_LABEL

public static final java.lang.String DEFAULT_CANCEL_MENU_LABEL
Deprecated. 
Constructor Detail

SyncProgressScreen

public SyncProgressScreen(IBOBScreen currentScreen,
                          boolean showCompleteMessage,
                          java.lang.String refreshCompleteMsg,
                          IBOBAction action,
                          java.lang.String[] mobileAppList)
Deprecated. 
Constructor to create the Sync progress screen

Parameters:
currentScreen - - The screen to go to after sync is done
showCompleteMessage - - If true, so the refresh complete message
refreshCompleteMsg - - Custom refresh complete message to be displayed
action - - action that calls this screen
syncList - - Vector of applications list to sync, If not null we need to sync 1 to many applications

SyncProgressScreen

public SyncProgressScreen(IBOBScreen currentScreen,
                          boolean showCompleteMessage,
                          java.lang.String refreshCompleteMsg,
                          IBOBAction action,
                          java.lang.String packageName,
                          java.lang.String publication)
Deprecated. 
Constructor to create the Sync progress screen based on publication

Parameters:
currentScreen - - The screen to go to after sync is done
showCompleteMessage - - If true, so the refresh complete message
refreshCompleteMsg - - Custom refresh complete message to be displayed
action - - action that calls this screen
packageName - - package name of the mobile application to sync
publication - - publication to sync

SyncProgressScreen

public SyncProgressScreen(IBOBScreen currentScreen,
                          boolean showCompleteMessage,
                          java.lang.String refreshCompleteMsg,
                          IBOBAction action,
                          java.lang.String[] mobileAppList,
                          java.util.Hashtable parameters)
Deprecated. 
Constructor to create the Sync progress screen

Parameters:
currentScreen - - The screen to go to after sync is done
showCompleteMessage - - If true, so the refresh complete message
refreshCompleteMsg - - Custom refresh complete message to be displayed
action - - action that calls this screen
syncList - - Vector of applications list to sync, If not null we need to sync 1 to many applications
parameters - - request input parameters to send to server

SyncProgressScreen

public SyncProgressScreen(IBOBScreen currentScreen,
                          boolean showCompleteMessage,
                          java.lang.String refreshCompleteMsg,
                          IBOBAction action,
                          java.lang.String[] mobileAppList,
                          java.util.Hashtable parameters,
                          java.lang.String packageName,
                          java.lang.String publication)
Deprecated. 
Constructor to create the Sync progress screen

Parameters:
currentScreen - - The screen to go to after sync is done
showCompleteMessage - - If true, so the refresh complete message
refreshCompleteMsg - - Custom refresh complete message to be displayed
action - - action that calls this screen
syncList - - Vector of applications list to sync, If not null we need to sync 1 to many applications
parameters - - request input parameters to send to server
packageName - - package name of the mobile application to sync
publication - - publication to sync
Method Detail

defineScreen

protected void defineScreen()
Deprecated. 
(non-Javadoc)

Overrides:
defineScreen in class BaseBOBStockScreen
See Also:
BaseBOBScreen.defineScreen()

setMainGaugeValue

public void setMainGaugeValue(int value)
Deprecated. 

setSyncObjectLabel

public void setSyncObjectLabel(java.lang.String str)
Deprecated. 

setDescriptionLabel

public void setDescriptionLabel(java.lang.String str)
Deprecated. 

setRefreshMobileAppList

public void setRefreshMobileAppList(java.lang.String[] mobileAppList)
Deprecated. 

syncDone

public void syncDone(java.lang.Exception exception)
Deprecated. 

trackwheelClick

public boolean trackwheelClick(int status,
                               int time)
Deprecated. 
Override the trackwheel click to check if the user clicked on the buttons

Overrides:
trackwheelClick in class net.rim.device.api.ui.Screen
Parameters:
status - - State of the modifier keys.
- - Number of milliseconds since the device was turned on.
Returns:
- True if delegate manager consumed the event; otherwise false

keyChar

public boolean keyChar(char key,
                       int status,
                       int time)
Deprecated. 
Override the keyChar method to catch keys being clicked on If the user click the Escape button, we want to cancel the sync

Overrides:
keyChar in class BaseBOBScreen
Parameters:
key - - Character generated, after any effects of the ALT or SHIFT keys and any complex keyboard mappings.
status - - Status of the ALT, SHIFT and CAPS LOCK keys.
time - - Number of milliseconds since the device was turned on.
Returns:
True if the event was consumed.
See Also:
Screen.keyChar(char key,int status,int time)