com.sybase.uep.bobclient.screens
Class SynchronizationGroupInfoScreen

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.SynchronizationGroupInfoScreen
All Implemented Interfaces:
IBOBScreen, java.lang.Runnable

public class SynchronizationGroupInfoScreen
extends BaseBOBStockScreen

This is the Synchronization Group info screen

This screen will show detailed information about the Synchronization Group and allow the user to set the push properties as well.

Author:
bdeng
See Also:
BaseBOBStockScreen

Field Summary
static java.lang.String DEFAULT_CANCEL_MENU_LABEL
           
static java.lang.String DEFAULT_ENTER_NUMBER_PROMPT_MESSAGE
           
static java.lang.String DEFAULT_ERROR_SAVING_SYNC_GROUP_MESSAGE
           
static java.lang.String DEFAULT_LOADING_SYNC_GROUP_INFO_ERROR_MESSAGE
           
static java.lang.String DEFAULT_LOG_MESSAGE_MENU_LABEL
           
static java.lang.String DEFAULT_NO_PUSH_LOGS_PROMPT_MESSAGE
           
static java.lang.String DEFAULT_PACKAGE_NAME_LABEL
           
static java.lang.String DEFAULT_PUSH_ADMIN_ERROR_MESSAGE
           
static java.lang.String DEFAULT_PUSH_ENABLED_LABEL
           
static java.lang.String DEFAULT_PUSH_NOTIFICATION_LABEL
           
static java.lang.String DEFAULT_PUSH_SYNC_INTERVAL_LABEL
           
static java.lang.String DEFAULT_PUSH_SYNC_INTERVAL_PROMPT_MESSAGE
           
static java.lang.String DEFAULT_PUSH_TYPE_LABEL_NO_PROMPT_LABEL
           
static java.lang.String DEFAULT_PUSH_TYPE_LABEL_NO_SYNC_NO_RESPONSE_LABEL
           
static java.lang.String DEFAULT_PUSH_TYPE_LABEL_SYNC_IMMEDIATELY_LABEL
           
static java.lang.String DEFAULT_PUSH_TYPE_LABEL_SYNC_NO_RESPONSE_LABEL
           
static java.lang.String DEFAULT_SAVE_MENU_LABEL
           
static java.lang.String DEFAULT_SAVING_SYNC_GROUP_MESSAGE
           
static java.lang.String DEFAULT_SYNC_GROUP_ID_UNDEFINED_MESSAGE
           
static java.lang.String DEFAULT_SYNC_GROUP_NAME_LABEL
           
static java.lang.String DEFAULT_SYNC_GROUP_WAIT_IDLE_TIME_LABEL
           
static java.lang.String DEFAULT_TITLE_LABEL
           
 
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
SynchronizationGroupInfoScreen()
          Constructor to create the Synchronization Group Info screen
SynchronizationGroupInfoScreen(java.lang.String packageName, java.lang.String syncGroupName)
          Constructor to create the Synchronization Group Info screen
 
Method Summary
protected  void defineScreen()
          (non-Javadoc)
 FontStyle getScreenFontStyle()
          Get this screen's font style
 void refresh()
          (non-Javadoc)
 void setCancelMenuLabel(java.lang.String label)
          Set the Close Menu Label
 void setErrorLoadingSyncGroupMsg(java.lang.String msg)
          Set the error loading sync group Message
 void setErrorSavingSyncGroupMsg(java.lang.String msg)
          Set the error saving sync group Message
 void setIDUndefintedMsg(java.lang.String msg)
          Set the ID undefined Message
 void setLogMessageMenuLabel(java.lang.String label)
          Set the Log Message Menu Label
 void setNoPushLogsMsg(java.lang.String msg)
          Set the no push logs Message
 void setPackageLabel(java.lang.String label)
          Set the Profile Label
 void setPackageName(java.lang.String packageName)
          Set the package name
 void setProperty(int key, java.lang.Object value)
          Set the property values for this screen
 void setPushAdminMsg(java.lang.String msg)
          Set the Push Admin Message
 void setPushEnableLabel(java.lang.String label)
          Set the Push Enable Label
 void setPushNotificationLabel(java.lang.String label)
          Set the Push Notification Label
 void setPushSyncIntervalLabel(java.lang.String label)
          Set the Push Sync Interval Label
 void setPushSyncIntervalMsg(java.lang.String msg)
          Set the Push Sync Interval Message
 void setPushSyncIntervalNumberMsg(java.lang.String msg)
          Set the Push Sync Interval Number Message
 void setPushTypeNoPromptNoSyncLabel(java.lang.String label)
          Set the Push Type No Prompt No Sync Label
 void setPushTypeNoSyncNoResponseLabel(java.lang.String label)
          Set the Push Type No Sync No Response Label
 void setPushTypeSyncImmediatelyLabel(java.lang.String label)
          Set the Push Type Sync Immediately Label
 void setPushTypeSyncNoResponseLabel(java.lang.String label)
          Set the Push Type Sync No Response Label
 void setSaveMenuLabel(java.lang.String label)
          Set the Save Menu Label
 void setSavingSyncGroupMsg(java.lang.String msg)
          Set the saving sync group Message
 void setScreenFontStyle(FontStyle fontStyle)
          Set the font style for this screen
 void setScreenTitle(java.lang.String msg)
          Set the screen title
 void setSyncGroupNameLabel(java.lang.String label)
          Set the Application Name Label
 void setSynGroupName(java.lang.String synGroupName)
          Set the sync Group Name
 void setWaitIdleLabel(java.lang.String label)
          Set the Wait Idle Label
 void updateScreenLayout()
          Delegates to protected method updateLayout
 
Methods inherited from class com.sybase.uep.bobclient.screens.BaseBOBStockScreen
closeScreen, runOnSaveActions, setNavigationBarBorderStyle, setNavigationBarLabel, setNavigationBarStyle, setOnCloseActions, setOnSaveActions
 
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, keyChar, makeMenu, onFocusNotify, 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, trackwheelClick, 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_TITLE_LABEL

public static final java.lang.String DEFAULT_TITLE_LABEL
See Also:
Constant Field Values

DEFAULT_LOG_MESSAGE_MENU_LABEL

public static final java.lang.String DEFAULT_LOG_MESSAGE_MENU_LABEL
See Also:
Constant Field Values

DEFAULT_SAVE_MENU_LABEL

public static final java.lang.String DEFAULT_SAVE_MENU_LABEL
See Also:
Constant Field Values

DEFAULT_CANCEL_MENU_LABEL

public static final java.lang.String DEFAULT_CANCEL_MENU_LABEL
See Also:
Constant Field Values

DEFAULT_PACKAGE_NAME_LABEL

public static final java.lang.String DEFAULT_PACKAGE_NAME_LABEL
See Also:
Constant Field Values

DEFAULT_SYNC_GROUP_NAME_LABEL

public static final java.lang.String DEFAULT_SYNC_GROUP_NAME_LABEL
See Also:
Constant Field Values

DEFAULT_SYNC_GROUP_WAIT_IDLE_TIME_LABEL

public static final java.lang.String DEFAULT_SYNC_GROUP_WAIT_IDLE_TIME_LABEL
See Also:
Constant Field Values

DEFAULT_PUSH_SYNC_INTERVAL_PROMPT_MESSAGE

public static final java.lang.String DEFAULT_PUSH_SYNC_INTERVAL_PROMPT_MESSAGE
See Also:
Constant Field Values

DEFAULT_ENTER_NUMBER_PROMPT_MESSAGE

public static final java.lang.String DEFAULT_ENTER_NUMBER_PROMPT_MESSAGE
See Also:
Constant Field Values

DEFAULT_PUSH_ADMIN_ERROR_MESSAGE

public static final java.lang.String DEFAULT_PUSH_ADMIN_ERROR_MESSAGE
See Also:
Constant Field Values

DEFAULT_NO_PUSH_LOGS_PROMPT_MESSAGE

public static final java.lang.String DEFAULT_NO_PUSH_LOGS_PROMPT_MESSAGE
See Also:
Constant Field Values

DEFAULT_PUSH_ENABLED_LABEL

public static final java.lang.String DEFAULT_PUSH_ENABLED_LABEL
See Also:
Constant Field Values

DEFAULT_PUSH_SYNC_INTERVAL_LABEL

public static final java.lang.String DEFAULT_PUSH_SYNC_INTERVAL_LABEL
See Also:
Constant Field Values

DEFAULT_PUSH_NOTIFICATION_LABEL

public static final java.lang.String DEFAULT_PUSH_NOTIFICATION_LABEL
See Also:
Constant Field Values

DEFAULT_PUSH_TYPE_LABEL_NO_PROMPT_LABEL

public static final java.lang.String DEFAULT_PUSH_TYPE_LABEL_NO_PROMPT_LABEL
See Also:
Constant Field Values

DEFAULT_PUSH_TYPE_LABEL_NO_SYNC_NO_RESPONSE_LABEL

public static final java.lang.String DEFAULT_PUSH_TYPE_LABEL_NO_SYNC_NO_RESPONSE_LABEL
See Also:
Constant Field Values

DEFAULT_PUSH_TYPE_LABEL_SYNC_NO_RESPONSE_LABEL

public static final java.lang.String DEFAULT_PUSH_TYPE_LABEL_SYNC_NO_RESPONSE_LABEL
See Also:
Constant Field Values

DEFAULT_PUSH_TYPE_LABEL_SYNC_IMMEDIATELY_LABEL

public static final java.lang.String DEFAULT_PUSH_TYPE_LABEL_SYNC_IMMEDIATELY_LABEL
See Also:
Constant Field Values

DEFAULT_SYNC_GROUP_ID_UNDEFINED_MESSAGE

public static final java.lang.String DEFAULT_SYNC_GROUP_ID_UNDEFINED_MESSAGE
See Also:
Constant Field Values

DEFAULT_LOADING_SYNC_GROUP_INFO_ERROR_MESSAGE

public static final java.lang.String DEFAULT_LOADING_SYNC_GROUP_INFO_ERROR_MESSAGE
See Also:
Constant Field Values

DEFAULT_ERROR_SAVING_SYNC_GROUP_MESSAGE

public static final java.lang.String DEFAULT_ERROR_SAVING_SYNC_GROUP_MESSAGE
See Also:
Constant Field Values

DEFAULT_SAVING_SYNC_GROUP_MESSAGE

public static final java.lang.String DEFAULT_SAVING_SYNC_GROUP_MESSAGE
See Also:
Constant Field Values
Constructor Detail

SynchronizationGroupInfoScreen

public SynchronizationGroupInfoScreen()
Constructor to create the Synchronization Group Info screen


SynchronizationGroupInfoScreen

public SynchronizationGroupInfoScreen(java.lang.String packageName,
                                      java.lang.String syncGroupName)
Constructor to create the Synchronization Group Info screen

Parameters:
packageName - the package name
syncGroupName - the sync group name
Method Detail

defineScreen

protected void defineScreen()
(non-Javadoc)

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

setSynGroupName

public void setSynGroupName(java.lang.String synGroupName)
Set the sync Group Name

Parameters:
synGroupName - String value for the sync Group Name

setPackageName

public void setPackageName(java.lang.String packageName)
Set the package name

Parameters:
packageName - String value for the package name

getScreenFontStyle

public FontStyle getScreenFontStyle()
Get this screen's font style

Returns:
FontStyle font style object
See Also:
FontStyle

setScreenFontStyle

public void setScreenFontStyle(FontStyle fontStyle)
Set the font style for this screen

Parameters:
fontStyle - FontStyle font style object
See Also:
FontStyle

setScreenTitle

public void setScreenTitle(java.lang.String msg)
Set the screen title

Parameters:
msg - String value for the new message

setSaveMenuLabel

public void setSaveMenuLabel(java.lang.String label)
Set the Save Menu Label

Parameters:
label - String value for the new label

setLogMessageMenuLabel

public void setLogMessageMenuLabel(java.lang.String label)
Set the Log Message Menu Label

Parameters:
label - String value for the new label

setCancelMenuLabel

public void setCancelMenuLabel(java.lang.String label)
Set the Close Menu Label

Parameters:
label - String value for the new label

setSyncGroupNameLabel

public void setSyncGroupNameLabel(java.lang.String label)
Set the Application Name Label

Parameters:
label - String value for the new label

setPackageLabel

public void setPackageLabel(java.lang.String label)
Set the Profile Label

Parameters:
label - String value for the new label

setWaitIdleLabel

public void setWaitIdleLabel(java.lang.String label)
Set the Wait Idle Label

Parameters:
label - String value for the new label

setPushSyncIntervalMsg

public void setPushSyncIntervalMsg(java.lang.String msg)
Set the Push Sync Interval Message

Parameters:
label - String value for the new label

setPushSyncIntervalNumberMsg

public void setPushSyncIntervalNumberMsg(java.lang.String msg)
Set the Push Sync Interval Number Message

Parameters:
msg - String value for the new message

setPushAdminMsg

public void setPushAdminMsg(java.lang.String msg)
Set the Push Admin Message

Parameters:
msg - String value for the new message

setNoPushLogsMsg

public void setNoPushLogsMsg(java.lang.String msg)
Set the no push logs Message

Parameters:
msg - String value for the new message

setIDUndefintedMsg

public void setIDUndefintedMsg(java.lang.String msg)
Set the ID undefined Message

Parameters:
msg - String value for the new message

setErrorLoadingSyncGroupMsg

public void setErrorLoadingSyncGroupMsg(java.lang.String msg)
Set the error loading sync group Message

Parameters:
msg - String value for the new message

setErrorSavingSyncGroupMsg

public void setErrorSavingSyncGroupMsg(java.lang.String msg)
Set the error saving sync group Message

Parameters:
msg - String value for the new message

setSavingSyncGroupMsg

public void setSavingSyncGroupMsg(java.lang.String msg)
Set the saving sync group Message

Parameters:
msg - String value for the new message

setPushEnableLabel

public void setPushEnableLabel(java.lang.String label)
Set the Push Enable Label

Parameters:
label - String value for the new label

setPushSyncIntervalLabel

public void setPushSyncIntervalLabel(java.lang.String label)
Set the Push Sync Interval Label

Parameters:
label - String value for the new label

setPushNotificationLabel

public void setPushNotificationLabel(java.lang.String label)
Set the Push Notification Label

Parameters:
label - String value for the new label

setPushTypeNoPromptNoSyncLabel

public void setPushTypeNoPromptNoSyncLabel(java.lang.String label)
Set the Push Type No Prompt No Sync Label

Parameters:
label - String value for the new label

setPushTypeNoSyncNoResponseLabel

public void setPushTypeNoSyncNoResponseLabel(java.lang.String label)
Set the Push Type No Sync No Response Label

Parameters:
label - String value for the new label

setPushTypeSyncNoResponseLabel

public void setPushTypeSyncNoResponseLabel(java.lang.String label)
Set the Push Type Sync No Response Label

Parameters:
label - String value for the new label

setPushTypeSyncImmediatelyLabel

public void setPushTypeSyncImmediatelyLabel(java.lang.String label)
Set the Push Type Sync Immediately Label

Parameters:
label - String value for the new label

setProperty

public void setProperty(int key,
                        java.lang.Object value)
Set the property values for this screen

Overrides:
setProperty in class BaseBOBStockScreen
Parameters:
key - int value for a screen attribute
value - Object value for the attribute value
See Also:
ScreenProperties

refresh

public void refresh()
(non-Javadoc)

Specified by:
refresh in interface IBOBScreen
Overrides:
refresh in class BaseBOBScreen
See Also:
BaseBOBScreen.refresh()

updateScreenLayout

public void updateScreenLayout()
Delegates to protected method updateLayout