|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.Field
net.rim.device.api.ui.Manager
net.rim.device.api.ui.Screen
net.rim.device.api.ui.container.FullScreen
net.rim.device.api.ui.container.MainScreen
com.sybase.uep.bobclient.screens.BaseBOBScreen
com.sybase.uep.bobclient.screens.BaseBOBStockScreen
com.sybase.uep.bobclient.screens.LoginScreen
public class LoginScreen
This is the login screen
This screen shows the password input screen to request user to enter a password
BaseBOBStockScreen
Field Summary | |
---|---|
static net.rim.device.api.system.EncodedImage |
DEFAULT_BANNER_IMAGE
|
static java.lang.String |
DEFAULT_CANCEL_BUTTON_LABEL
|
static java.lang.String |
DEFAULT_CANCEL_MENU_LABEL
|
static java.lang.String |
DEFAULT_ENTER_LOGIN_MESSAGE
|
static java.lang.String |
DEFAULT_ENTER_PASSWORD_MESSAGE
|
static java.lang.String |
DEFAULT_ERROR_AUTHENTICATE_MESSAGE
|
static java.lang.String |
DEFAULT_ERROR_LOADING_PROFILES_MESSAGE
|
static java.lang.String |
DEFAULT_FAILED_LOGIN_ALERT_MESSAGE
|
static java.lang.String |
DEFAULT_LOGIN_BUTTON_LABEL
|
static java.lang.String |
DEFAULT_LOGIN_INPUT_LABEL
|
static java.lang.String |
DEFAULT_LOGIN_MENU_LABEL
|
static java.lang.String |
DEFAULT_PASSWORD_INPUT_LABEL
|
static java.lang.String |
DEFAULT_TITLE_LABEL
|
static java.lang.String |
DEFAULT_WAIT_AUTHENTICATE_MESSAGE
|
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 | |
---|---|
LoginScreen(int screenTitleRID)
Constructor to create a login screen |
|
LoginScreen(int screenTitleRID,
boolean isScreenSaver)
Constructor to create a login screen |
|
LoginScreen(java.lang.String screenTitle)
Constructor to create a login screen |
|
LoginScreen(java.lang.String screenTitle,
boolean isScreenSaver)
Constructor to create a login screen |
Method Summary | |
---|---|
void |
buttonClicked(net.rim.device.api.ui.Field buttonField)
Overridden to perform actions when buttons are clicked on |
void |
callOnFailAction()
Call on fail action |
void |
callOnSuccessAction(boolean isLoginToSyncRequired)
call the on success action |
protected void |
defineScreen()
(non-Javadoc) |
FontStyle |
getButtonFocusFontStyle()
Get the button focus font style |
FontStyle |
getButtonUnfocusFontStyle()
Get the button unfocus font style |
IBOBAction |
getFailedLoginAlertMessageAction(java.lang.String errorMessage)
Get the failed login alert message action |
IBOBAction |
getOnFailAction()
Get on fail action |
IBOBAction |
getOnSuccessAction()
Get the on success action |
FontStyle |
getScreenFontStyle()
Get this screen's font style |
protected boolean |
onSavePrompt()
This is called when the user click the escape We will then want to ask if the user want to save the form |
void |
refresh()
(non-Javadoc) |
void |
setBannerImage(net.rim.device.api.system.EncodedImage banner)
Set the banner of the login screen |
void |
setBannerImage(java.lang.String imageName)
Set the banner of the login screen by image name |
void |
setButtonExitLabel(java.lang.String label)
Set button exit label |
void |
setButtonFocusFontStyle(FontStyle fontStyle)
Set the button focus font style for this control |
void |
setButtonLoginLabel(java.lang.String label)
Set button login label |
void |
setButtonUnfocusFontStyle(FontStyle fontStyle)
Set the button unfocus font style for this control |
void |
setErrorAuthenticateMessage(java.lang.String str)
Set the error authenticate message |
void |
setErrorLoadingProfileMsg(java.lang.String msg)
Set the error loading profile message string |
void |
setFailedLoginAlertMessage(java.lang.String msg)
Set the failed login alert message string |
void |
setIsScreenSaver(boolean isScreenSaver)
Set isScreenSaver flag. |
void |
setLoginInputLabel(java.lang.String label)
Set the login input label |
void |
setLoginPromptMessage(java.lang.String str)
Set the login prompt message |
void |
setMenuCancelLabel(java.lang.String label)
Set menu exit label for exit |
void |
setMenuLoginLabel(java.lang.String label)
Set menu login label for login |
void |
setOnFail(IBOBAction action)
Set on fail action |
void |
setOnSuccess(IBOBAction action)
Set the on success action |
void |
setPasswordInputLabel(java.lang.String label)
Set the password input label |
void |
setPasswordPromptMessage(java.lang.String str)
Set the password prompt message |
void |
setProperty(int key,
java.lang.Object value)
Set the property values for this screen |
void |
setScreenFontStyle(FontStyle fontStyle)
Set the font style for this screen |
void |
setShowButtons(boolean bol)
Show or hide login and exit buttons |
void |
setShowLogo(boolean bol)
Hide or show the banner logo |
void |
setWaitAuthenticateMessage(java.lang.String str)
Set the wait authenticate message |
Methods inherited from class com.sybase.uep.bobclient.screens.BaseBOBStockScreen |
---|
closeScreen, runOnSaveActions, setNavigationBarBorderStyle, setNavigationBarLabel, setNavigationBarStyle, setOnCloseActions, setOnSaveActions |
Methods inherited from class net.rim.device.api.ui.container.MainScreen |
---|
addMenuItem, getField, getFieldCount, getFieldWithFocus, getFieldWithFocusIndex, getMainManager, keyCharUnhandled, 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 |
---|
public static final java.lang.String DEFAULT_TITLE_LABEL
public static final net.rim.device.api.system.EncodedImage DEFAULT_BANNER_IMAGE
public static final java.lang.String DEFAULT_LOGIN_INPUT_LABEL
public static final java.lang.String DEFAULT_PASSWORD_INPUT_LABEL
public static final java.lang.String DEFAULT_LOGIN_MENU_LABEL
public static final java.lang.String DEFAULT_CANCEL_MENU_LABEL
public static final java.lang.String DEFAULT_LOGIN_BUTTON_LABEL
public static final java.lang.String DEFAULT_CANCEL_BUTTON_LABEL
public static final java.lang.String DEFAULT_ENTER_LOGIN_MESSAGE
public static final java.lang.String DEFAULT_ENTER_PASSWORD_MESSAGE
public static final java.lang.String DEFAULT_WAIT_AUTHENTICATE_MESSAGE
public static final java.lang.String DEFAULT_FAILED_LOGIN_ALERT_MESSAGE
public static final java.lang.String DEFAULT_ERROR_AUTHENTICATE_MESSAGE
public static final java.lang.String DEFAULT_ERROR_LOADING_PROFILES_MESSAGE
Constructor Detail |
---|
public LoginScreen(java.lang.String screenTitle)
screenTitle
- String
value for the screen titlepublic LoginScreen(int screenTitleRID)
screenTitleRID
- int
value for the screen title resource idpublic LoginScreen(java.lang.String screenTitle, boolean isScreenSaver)
screenTitle
- String
value for the screen titleisScreenSaver
- true
if this is called by the screen saver, otherwise false
public LoginScreen(int screenTitleRID, boolean isScreenSaver)
screenTitleRID
- int
value for the screen title resource idisScreenSaver
- true
if this is called by the screen saver, otherwise false
Method Detail |
---|
protected void defineScreen()
defineScreen
in class BaseBOBStockScreen
BaseBOBScreen.defineScreen()
public FontStyle getScreenFontStyle()
FontStyle
font style objectFontStyle
public void setScreenFontStyle(FontStyle fontStyle)
fontStyle
- FontStyle
font style objectFontStyle
public FontStyle getButtonUnfocusFontStyle()
FontStyle
font style objectFontStyle
public void setButtonUnfocusFontStyle(FontStyle fontStyle)
fontStyle
- FontStyle
font style objectFontStyle
public FontStyle getButtonFocusFontStyle()
FontStyle
font style objectFontStyle
public void setButtonFocusFontStyle(FontStyle fontStyle)
fontStyle
- FontStyle
font style objectFontStyle
public void setBannerImage(java.lang.String imageName)
imageName
- String
value for the image file namepublic void setBannerImage(net.rim.device.api.system.EncodedImage banner)
banner
- EncodedImage
object for the bannerEncodedImage
public void setLoginInputLabel(java.lang.String label)
label
- String
value for the new labelpublic void setPasswordInputLabel(java.lang.String label)
label
- String
value for the new labelpublic void setMenuLoginLabel(java.lang.String label)
label
- String
value for the new labelpublic void setMenuCancelLabel(java.lang.String label)
label
- String
value for the new labelpublic void setButtonLoginLabel(java.lang.String label)
label
- String
value for the new labelpublic void setButtonExitLabel(java.lang.String label)
label
- String
value for the new labelpublic void setShowLogo(boolean bol)
public void setShowButtons(boolean bol)
public void setLoginPromptMessage(java.lang.String str)
str
- String
value for the messagepublic void setPasswordPromptMessage(java.lang.String str)
str
- String
value for the messagepublic void setWaitAuthenticateMessage(java.lang.String str)
str
- String
value for the messagepublic void setErrorAuthenticateMessage(java.lang.String str)
str
- String
value for the messagepublic void setErrorLoadingProfileMsg(java.lang.String msg)
msg
- String
value for the new messagepublic void setFailedLoginAlertMessage(java.lang.String msg)
msg
- String
value for the new messagepublic void buttonClicked(net.rim.device.api.ui.Field buttonField)
buttonField
- Field
object for the the buttonpublic void setOnSuccess(IBOBAction action)
action
- IBOBAction
action objectIBOBAction
public IBOBAction getOnSuccessAction()
IBOBAction
action objectIBOBAction
public void callOnSuccessAction(boolean isLoginToSyncRequired)
isLoginToSyncRequired
- true
if login to sync is required, otherwise false
public IBOBAction getFailedLoginAlertMessageAction(java.lang.String errorMessage)
errorMessage
- String
value for the error message to be appended to invalid login message
IBOBAction
action objectIBOBAction
public void setOnFail(IBOBAction action)
action
- IBOBAction
action objectpublic IBOBAction getOnFailAction()
IBOBAction
action objectIBOBAction
public void callOnFailAction()
public void setProperty(int key, java.lang.Object value)
setProperty
in class BaseBOBStockScreen
key
- int
value for a screen attributevalue
- Object
value for the attribute valueScreenProperties
public void refresh()
refresh
in interface IBOBScreen
refresh
in class BaseBOBScreen
BaseBOBScreen.refresh()
protected boolean onSavePrompt()
onSavePrompt
in class net.rim.device.api.ui.container.MainScreen
true
if prompt's resulting choice is to save; false
if the prompt's resulting choice is to cancelpublic void setIsScreenSaver(boolean isScreenSaver)
isScreenSaver
- true
to set screen save, otherwise false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |