com.sybase.uep.bobclient.screens
Class LoggingScreen

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.BaseBOBSettingsScreen
                                  extended by com.sybase.uep.bobclient.screens.LoggingScreen
All Implemented Interfaces:
IBOBScreen, ISettingScreen, java.lang.Runnable

public class LoggingScreen
extends BaseBOBSettingsScreen
implements ISettingScreen

This is the log configure screen

This is used to configure the logger level

Author:
luox
See Also:
BaseBOBSettingsScreen

Field Summary
static java.lang.String DEFAULT_CLOSE_BUTTON_LABEL
           
static java.lang.String DEFAULT_CLOSE_MENU_LABEL
           
static java.lang.String DEFAULT_DELETELOG_CHECKBOX_LABEL
           
static java.lang.String DEFAULT_LOG_LEVEL_LABEL
           
static java.lang.String DEFAULT_LOGLEVEL_SELECT_DEBUG_LABEL
           
static java.lang.String DEFAULT_LOGLEVEL_SELECT_ERROR_LABEL
           
static java.lang.String DEFAULT_LOGLEVEL_SELECT_FATAL_LABEL
           
static java.lang.String DEFAULT_LOGLEVEL_SELECT_INFO_LABEL
           
static java.lang.String DEFAULT_LOGLEVEL_SELECT_OFF_LABEL
           
static java.lang.String DEFAULT_LOGLEVEL_SELECT_WARN_LABEL
           
static java.lang.String DEFAULT_NO_CHANGE_MESSAGE
           
static java.lang.String DEFAULT_SAVE_BUTTON_LABEL
           
static java.lang.String DEFAULT_SAVE_LOGSETTING_MESSAGE
           
static java.lang.String DEFAULT_SAVE_MENU_LABEL
           
static java.lang.String DEFAULT_TITLE_LABEL
           
static long KEY
           
 
Fields inherited from class com.sybase.uep.bobclient.screens.BaseBOBSettingsScreen
_clientName, _encodedBackgroundImage
 
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
 
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
LoggingScreen(int screenTitleRID, java.lang.String clientName)
           
LoggingScreen(java.lang.String clientName)
           
LoggingScreen(java.lang.String screenTitle, java.lang.String clientName)
           
 
Method Summary
protected  void defineScreen()
          (non-Javadoc)
 void setButtonFocusFontStyle(FontStyle fontStyle)
          Set the button focus font style for this control
 void setButtonUnfocusFontStyle(FontStyle fontStyle)
          Set the button unfocus font style for this control
 void setCloseButtonLabel(java.lang.String label)
          Set the close button label
 void setCloseMenuLabel(java.lang.String label)
          Set the close menu label
 void setDefaultDeleteLogs(boolean isDeleteLogs)
          Sets default value of the delete log checkbox
 void setDefaultLogLevel(java.lang.String level)
          Set the default log level
 void setDeleteLogsCheckboxLabel(java.lang.String label)
          Sets label of the delete logs check box
 void setLabelFontStyle(FontStyle fontStyle)
          Set label font style
 void setLogConfigNoChangeMessage(java.lang.String msg)
          Set the no log config change message
 void setLogLevelLabel(java.lang.String label)
          Set the log level label
 void setProperty(int key, java.lang.Object value)
          Set the property values for this screen
 void setSaveLogConfigButtonLabel(java.lang.String label)
          Set the save log config button label
 void setSaveLogConfigMenuLabel(java.lang.String label)
          Set the save log config menu label
 void setScreenFontStyle(FontStyle fontStyle)
          Set the font style for this screen
 
Methods inherited from class com.sybase.uep.bobclient.screens.BaseBOBSettingsScreen
getClientName, getLabelMsgString, getScreenTitle
 
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, getLabelMsgValue, getMenuGroup, getMenuItemByName, getMenuItemByNameAndDisable, getParentScreen, getReferencedMBOList, getScreenContext, getSyncProgressBar, getUIController, initAppLogger, initScreenContext, isCache, isSynchronizing, keyChar, 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, 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
 
Methods inherited from interface com.sybase.uep.bobclient.screens.ISettingScreen
getClientName, getScreenTitle
 

Field Detail

KEY

public static final long KEY
See Also:
Constant Field Values

DEFAULT_TITLE_LABEL

public static java.lang.String DEFAULT_TITLE_LABEL

DEFAULT_SAVE_MENU_LABEL

public static java.lang.String DEFAULT_SAVE_MENU_LABEL

DEFAULT_CLOSE_MENU_LABEL

public static java.lang.String DEFAULT_CLOSE_MENU_LABEL

DEFAULT_SAVE_BUTTON_LABEL

public static java.lang.String DEFAULT_SAVE_BUTTON_LABEL

DEFAULT_CLOSE_BUTTON_LABEL

public static java.lang.String DEFAULT_CLOSE_BUTTON_LABEL

DEFAULT_NO_CHANGE_MESSAGE

public static java.lang.String DEFAULT_NO_CHANGE_MESSAGE

DEFAULT_DELETELOG_CHECKBOX_LABEL

public static java.lang.String DEFAULT_DELETELOG_CHECKBOX_LABEL

DEFAULT_SAVE_LOGSETTING_MESSAGE

public static java.lang.String DEFAULT_SAVE_LOGSETTING_MESSAGE

DEFAULT_LOG_LEVEL_LABEL

public static java.lang.String DEFAULT_LOG_LEVEL_LABEL

DEFAULT_LOGLEVEL_SELECT_DEBUG_LABEL

public static java.lang.String DEFAULT_LOGLEVEL_SELECT_DEBUG_LABEL

DEFAULT_LOGLEVEL_SELECT_INFO_LABEL

public static java.lang.String DEFAULT_LOGLEVEL_SELECT_INFO_LABEL

DEFAULT_LOGLEVEL_SELECT_WARN_LABEL

public static java.lang.String DEFAULT_LOGLEVEL_SELECT_WARN_LABEL

DEFAULT_LOGLEVEL_SELECT_ERROR_LABEL

public static java.lang.String DEFAULT_LOGLEVEL_SELECT_ERROR_LABEL

DEFAULT_LOGLEVEL_SELECT_FATAL_LABEL

public static java.lang.String DEFAULT_LOGLEVEL_SELECT_FATAL_LABEL

DEFAULT_LOGLEVEL_SELECT_OFF_LABEL

public static java.lang.String DEFAULT_LOGLEVEL_SELECT_OFF_LABEL
Constructor Detail

LoggingScreen

public LoggingScreen(java.lang.String clientName)

LoggingScreen

public LoggingScreen(java.lang.String screenTitle,
                     java.lang.String clientName)

LoggingScreen

public LoggingScreen(int screenTitleRID,
                     java.lang.String clientName)
Method Detail

defineScreen

protected void defineScreen()
Description copied from class: BaseBOBStockScreen
(non-Javadoc)

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

setScreenFontStyle

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

Parameters:
key - - font style key

setLabelFontStyle

public void setLabelFontStyle(FontStyle fontStyle)
Set label font style

Parameters:
key - - font style key

setButtonUnfocusFontStyle

public void setButtonUnfocusFontStyle(FontStyle fontStyle)
Set the button unfocus font style for this control

Parameters:
key - - font style key
type - - font style type

setButtonFocusFontStyle

public void setButtonFocusFontStyle(FontStyle fontStyle)
Set the button focus font style for this control

Parameters:
key - - font style key
type - - font style type

setProperty

public void setProperty(int key,
                        java.lang.Object value)
Description copied from class: BaseBOBStockScreen
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

setSaveLogConfigMenuLabel

public void setSaveLogConfigMenuLabel(java.lang.String label)
Set the save log config menu label

Parameters:
label - - New label

setCloseMenuLabel

public void setCloseMenuLabel(java.lang.String label)
Set the close menu label

Parameters:
label - - New close menu label

setSaveLogConfigButtonLabel

public void setSaveLogConfigButtonLabel(java.lang.String label)
Set the save log config button label

Parameters:
label - - New label

setCloseButtonLabel

public void setCloseButtonLabel(java.lang.String label)
Set the close button label

Parameters:
label - - New close button label

setLogConfigNoChangeMessage

public void setLogConfigNoChangeMessage(java.lang.String msg)
Set the no log config change message

Parameters:
msg - - New message

setLogLevelLabel

public void setLogLevelLabel(java.lang.String label)
Set the log level label

Parameters:
label - - New log level label

setDefaultLogLevel

public void setDefaultLogLevel(java.lang.String level)
Set the default log level

Parameters:
level - - New default log level

setDefaultDeleteLogs

public void setDefaultDeleteLogs(boolean isDeleteLogs)
Sets default value of the delete log checkbox

Parameters:
isDeleteLogs - - true means delete server and client logs when leaving the first screen

setDeleteLogsCheckboxLabel

public void setDeleteLogsCheckboxLabel(java.lang.String label)
Sets label of the delete logs check box

Parameters:
label -