|
|||||||||
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.component.TextField
net.rim.device.api.ui.component.BasicEditField
net.rim.device.api.ui.component.PasswordEditField
com.sybase.uep.bobclient.controls.PasswordInput
public class PasswordInput
This is the password input control
Field Summary |
---|
Fields inherited from class net.rim.device.api.ui.component.BasicEditField |
---|
FILTER_DEFAULT, FILTER_EMAIL, FILTER_FILENAME, FILTER_HEXADECIMAL, FILTER_INTEGER, FILTER_LOWERCASE, FILTER_NUMERIC, FILTER_PHONE, FILTER_PIN_ADDRESS, FILTER_REAL_NUMERIC, FILTER_UPPERCASE, FILTER_URL |
Fields inherited from class net.rim.device.api.ui.component.TextField |
---|
CONSUME_INPUT, DEFAULT_MAXCHARS, JUMP_FOCUS_AT_END, NO_COMPLEX_INPUT, NO_EDIT_MODE_INPUT, NO_LEARNING, NO_NEWLINE, NO_SWITCHING_INPUT |
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 |
Fields inherited from interface net.rim.device.api.ui.FieldChangeListener |
---|
PROGRAMMATIC |
Constructor Summary | |
---|---|
PasswordInput(java.lang.String defaultValue,
int maxNumChars,
long style)
Password input constructor |
Method Summary | |
---|---|
protected void |
drawFocus(net.rim.device.api.ui.Graphics g,
boolean on)
(non-Javadoc) |
void |
fieldChanged(net.rim.device.api.ui.Field field,
int context)
(non-Javadoc) |
int |
getColSpan()
(non-Javadoc) |
int |
getControlID()
Returns the control's ID |
TextInputController |
getController()
Get the text input controller |
ICustomEventsDelegate |
getCustomEventsDelegate()
Returns the control's custom events delegate |
java.lang.String |
getDisplayName()
Retrieve the display name |
int |
getFieldIndex()
Retrieve the edit index for this PasswordInput |
FontStyle |
getFontStyle()
Retrieve this control's font style |
long |
getHorizontalAlignment()
(non-Javadoc) |
LogicalType |
getLogicalType()
|
java.lang.String |
getName()
(non-Javadoc) |
java.lang.Object |
getPIMValue()
|
int |
getPreferredHeight()
(non-Javadoc) |
int |
getPreferredWidth()
(non-Javadoc) |
byte[] |
getRawBinaryData()
Get byte array data |
int |
getRowSpan()
(non-Javadoc) |
java.lang.String |
getSchemaType()
|
java.lang.String |
getType()
Retrieve the type for this PasswordInput |
ValidationObject |
getValidationObj()
Retrieve the validation object set on this checkbox |
java.lang.Object |
getValue()
(non-Javadoc) |
long |
getVerticalAlignment()
(non-Javadoc) |
boolean |
hasValidation()
Check if there is a validation object assigned to this control |
boolean |
isRequired()
Check if this PasswordInput is required |
protected void |
layout(int width,
int height)
(non-Javadoc) |
protected void |
makeContextMenu(net.rim.device.api.ui.ContextMenu menu)
(non-Javadoc) |
protected boolean |
navigationClick(int status,
int time)
(non-Javadoc) |
protected boolean |
navigationMovement(int dx,
int dy,
int status,
int time)
(non-Javadoc) |
protected boolean |
navigationUnclick(int status,
int time)
(non-Javadoc) |
protected void |
onFocus(int direction)
(non-Javadoc) |
protected void |
onUnfocus()
|
protected void |
paint(net.rim.device.api.ui.Graphics g)
(non-Javadoc) |
void |
paintBackground(net.rim.device.api.ui.Graphics g)
(non-Javadoc) |
void |
refresh()
(non-Javadoc) |
void |
refreshFooter(java.lang.String valueToBeDisplay)
Refresh the footer field from the screen that contains the text of the button. |
void |
setBackgroundColor(int bgcolor)
(non-Javadoc) |
void |
setBorderColor(int borderColor)
Set the border color |
void |
setColSpan(int colspan)
(non-Javadoc) |
void |
setControlID(int controlID)
Sets the control's ID |
void |
setController(TextInputController textInputCtrller)
Set text input controller |
void |
setCustomEventsDelegate(ICustomEventsDelegate delegate,
int eventsFlags)
Sets the control's custom events delegate for the given events |
void |
setDisplayName(java.lang.String displayName)
Set display name |
void |
setEmptyMeanNull(boolean emptyMeansNull)
Set if any empty values in the text fields should return a null value for empty. |
void |
setFieldIndex(int fieldIndex)
Set the edit index |
void |
setFontStyle(FontStyle fontStyle)
Set the font style for this control |
void |
setFooterField(FooterField field)
Set the footer field |
void |
setInvalidValueMessage(int invalidValueMessageRID)
Set invalid value message by localization resource id |
void |
setInvalidValueMessage(java.lang.String invalidValueMessage)
Set invalid value message |
void |
setLayoutHeight(int height)
(non-Javadoc) |
void |
setLayoutWidth(int width)
(non-Javadoc) |
void |
setLogicalType(LogicalType logicalType)
Set logical type |
void |
setName(java.lang.String name)
Set a key name for this control |
void |
setNeedValidate(boolean needValidate)
Specify need validate or not |
void |
setPIMValue(java.lang.Object value)
|
void |
setProperty(int key,
java.lang.String value)
Set the property values for this password input |
void |
setRawBinaryData(byte[] data)
Set the byte array data |
void |
setRequired(boolean required)
Set if this PasswordInput is required |
void |
setRowSpan(int rowspan)
(non-Javadoc) |
void |
setSchemaType(java.lang.String schemaType)
Set the schema type |
void |
setShowBackgroundColor(boolean isShowBackgroundColor)
Sets if background color is drawing |
void |
setShowBorder(boolean bol)
Set if to show the border around the text input |
void |
setText(java.lang.String text)
Set text value |
void |
setType(java.lang.String type)
Set type |
void |
setValidationObject(ValidationObject obj)
Set validation object |
void |
setValidators(java.util.Vector validators)
|
void |
setVariableInput(ControlVariable variable)
Set the control variable object for the input value |
protected boolean |
touchEvent(net.rim.device.api.ui.TouchEvent message)
(non-Javadoc) |
boolean |
validate()
Validates the text input value |
Methods inherited from class net.rim.device.api.ui.component.PasswordEditField |
---|
backspace, backspace, backspace, charAt, clear, displayFieldFullMessage, getCursorPosition, getLabel, getLabelLength, getMaxSize, getText, getText, getText, getTextAbstractString, getTextLength, insert, insert, isSelectionCopyable, isSymbolScreenAllowed, keyRepeat, paste, selectionCopy, selectionDelete, setCursorPosition, setCursorPosition, setLabel, setMaxSize, setText, update, wipe |
Methods inherited from class net.rim.device.api.ui.component.BasicEditField |
---|
getFilter, keyChar, keyControl, keyDown, moveFocus, moveFocus, setFilter, setFont |
Methods inherited from class net.rim.device.api.ui.component.TextField |
---|
drawText, fieldChangeNotify, getAccessibleContext, getComposedTextEnd, getComposedTextStart, getDisplayLineCount, getFocusRect, getText, insert, insert, insert, insert, insert, isPasteable, isSelectable, isSelecting, isSelectionDeleteable, onUndisplay, select, setPreLayoutInternal, setSelection, toString |
Methods inherited from class net.rim.device.api.ui.Field |
---|
drawHighlightRegion, 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, getLeafFieldWithFocus, getLeft, getManager, getMargin, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getOriginal, getPadding, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getScreen, getState, getStyle, getTop, getVisualState, getWidth, invalidate, invalidate, invalidateAll, invokeAction, isDataValid, isDirty, isEditable, isFocus, isFocusable, isMuddy, isSelectionCutable, isSpellCheckable, isStyle, isVisible, keyStatus, keyUp, makeContextMenu, onDisplay, onExposed, onMenuDismissed, onMenuDismissed, onObscured, onVisibilityChange, selectionCut, setBackground, setBackground, setBorder, setBorder, setBorder, setBorder, setBorder, setChangeListener, setCookie, setDirty, setEditable, setExtent, setFocus, setFocusListener, setFont, setMargin, setMargin, setMuddy, setNonSpellCheckable, setPadding, setPadding, setPosition, setVisualState, trackwheelClick, trackwheelUnclick, updateLayout |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.sybase.uep.bobclient.controls.ITextInput |
---|
getText |
Methods inherited from interface net.rim.device.internal.ui.Formatter.TextRenderer |
---|
getFont |
Constructor Detail |
---|
public PasswordInput(java.lang.String defaultValue, int maxNumChars, long style)
defaultValue
- String
default value that goes in the password inputmaxNumChars
- int
value for the max number of characters allow for user to enterstyle
- long
value for the input stleMethod Detail |
---|
public void setBackgroundColor(int bgcolor)
setBackgroundColor
in interface Control
bgcolor
- int
value of the color in HEX.
For example: 0x00000000, 0x00FF0000, 0x00FFFFFFControl.setBackgroundColor(int bgcolor)
public void setColSpan(int colspan)
setColSpan
in interface Control
colspan
- int
value of the column spanControl.setColSpan(int colspan)
public int getColSpan()
getColSpan
in interface Control
int
value of the column spanControl.getColSpan()
public void setRowSpan(int rowspan)
setRowSpan
in interface Control
rowspan
- int
value of the row spanControl.setRowSpan(int rowspan)
public int getRowSpan()
getRowSpan
in interface Control
int
value of the row spanControl.getRowSpan()
public long getHorizontalAlignment()
getHorizontalAlignment
in interface Control
long
value of the horizontal alignment.
Possible values could be Field.FIELD_HCENTER, Field.FIELD_RIGHT, or Field.FIELD_LEFTControl.getHorizontalAlignment()
public long getVerticalAlignment()
getVerticalAlignment
in interface Control
long
value of the vertical alignment
Possible values could be Field.FIELD_TOP, Field.FIELD_BOTTOM, or Field.FIELD_VCENTERControl.getVerticalAlignment()
public void setBorderColor(int borderColor)
color
- int
HEX value for the border color.
Examples of colors are 0x00FFFFFF, 0x00FF0000, 0x00000000public void setShowBorder(boolean bol)
bol
- true
to show border around text input, otherwise false
public FontStyle getFontStyle()
FontStyle
font style objectFontStyle
public void setFontStyle(FontStyle fontStyle)
fontStyle
- FontStyle
font style objectFontStyle
public int getFieldIndex()
int
valeu for the field indexpublic java.lang.String getDisplayName()
String
value of the display namepublic java.lang.String getType()
String
for the control typepublic java.lang.String getName()
getName
in interface Control
String
value of the key nameControl.getName()
public ValidationObject getValidationObj()
ValidationObject
validation objectValidationObject
public boolean hasValidation()
true
if there is validation object set, otherwise false
public void setRequired(boolean required)
required
- true
if control is required, otherwise false
public boolean isRequired()
int
if required, otherwise false
public void setLayoutWidth(int width)
setLayoutWidth
in interface Control
width
- int
value of the available layout widthControl.setLayoutWidth(int width)
public int getPreferredWidth()
getPreferredWidth
in interface Control
getPreferredWidth
in class net.rim.device.api.ui.component.PasswordEditField
int
value of the available layout widthControl.getPreferredWidth()
public void setLayoutHeight(int height)
setLayoutHeight
in interface Control
height
- int
value of the available layout heightControl.setLayoutHeight(int height)
public int getPreferredHeight()
getPreferredHeight
in interface Control
getPreferredHeight
in class net.rim.device.api.ui.component.PasswordEditField
int
value of the available layout heightControl.getPreferredHeight()
protected void onFocus(int direction)
onFocus
in class net.rim.device.api.ui.component.TextField
Field.onFocus(int direction)
protected void onUnfocus()
onUnfocus
in class net.rim.device.api.ui.component.PasswordEditField
protected boolean navigationClick(int status, int time)
navigationClick
in class net.rim.device.api.ui.component.TextField
Field.navigationClick(int status, int time)
protected boolean navigationUnclick(int status, int time)
navigationUnclick
in class net.rim.device.api.ui.component.TextField
Field.navigationUnclick(int status, int time)
protected boolean navigationMovement(int dx, int dy, int status, int time)
navigationMovement
in class net.rim.device.api.ui.Field
Field.navigationMovement(int dx, int dy, int status, int time)
public void fieldChanged(net.rim.device.api.ui.Field field, int context)
fieldChanged
in interface net.rim.device.api.ui.FieldChangeListener
FieldChangeListener.fieldChanged(Field field, int context)
protected boolean touchEvent(net.rim.device.api.ui.TouchEvent message)
touchEvent
in class net.rim.device.api.ui.Field
Field.touchEvent(TouchEvent message)
protected void layout(int width, int height)
layout
in class net.rim.device.api.ui.component.BasicEditField
Field.layout(int width, int height)
protected void drawFocus(net.rim.device.api.ui.Graphics g, boolean on)
drawFocus
in class net.rim.device.api.ui.component.BasicEditField
Field.drawFocus(Graphics g, boolean on)
public void paintBackground(net.rim.device.api.ui.Graphics g)
paintBackground
in class net.rim.device.api.ui.Field
Field.paintBackground(Graphics g)
protected void paint(net.rim.device.api.ui.Graphics g)
paint
in class net.rim.device.api.ui.component.BasicEditField
Field.paint(Graphics g)
public void refresh()
refresh
in interface Control
Control.refresh()
protected void makeContextMenu(net.rim.device.api.ui.ContextMenu menu)
makeContextMenu
in class net.rim.device.api.ui.component.BasicEditField
Field.makeContextMenu(ContextMenu menu)
public void setProperty(int key, java.lang.String value)
key
- int
int value for the key of a specific attributevalue
- String
value for this attributepublic void refreshFooter(java.lang.String valueToBeDisplay)
valueToBeDisplay
- String
value for the text to be display in the footerpublic void setFooterField(FooterField field)
{@link
- FooterField} footer field to put the text of the textinput into.
This is useful for long text, so it can be displayed in the footer.
null
value if there is no footer.FooterField
public void setName(java.lang.String name)
name
- String
value for the key name for this controlpublic void setDisplayName(java.lang.String displayName)
displayName
- String
value for the display namepublic void setType(java.lang.String type)
type
- String
value for the type of the updatepublic void setValidationObject(ValidationObject obj)
obj
- ValidationObject
validation objectValidationObject
public void setFieldIndex(int fieldIndex)
fieldIndex
- int
value for the edit indexpublic ICustomEventsDelegate getCustomEventsDelegate()
public void setCustomEventsDelegate(ICustomEventsDelegate delegate, int eventsFlags)
delegate
- custom events delegateeventsFlags
- the events to set delegate topublic int getControlID()
public void setControlID(int controlID)
controlId
- control IDpublic void setInvalidValueMessage(java.lang.String invalidValueMessage)
invalidValueMessage
- String
value for the error message that is displayed then the value doesn't
match the datatype/logical type.public void setInvalidValueMessage(int invalidValueMessageRID)
invalidValueMessageRID
- int
value for the localization resource id of invalid value messagepublic void setEmptyMeanNull(boolean emptyMeansNull)
emptyMeansNull
- true
if empty text input means null, otherwise false
public void setVariableInput(ControlVariable variable)
variable
- ControlVariable
control variable objectControlVariable
public void setValidators(java.util.Vector validators)
public java.lang.Object getValue()
getValue
in interface Control
Object
of the value set for this controlControl.getValue()
public boolean validate()
validate
in interface ITextInput
true
if the validation passes, otherwise false
public void setNeedValidate(boolean needValidate)
setNeedValidate
in interface ITextInput
public byte[] getRawBinaryData()
ITextInput
getRawBinaryData
in interface ITextInput
public void setRawBinaryData(byte[] data)
ITextInput
setRawBinaryData
in interface ITextInput
public void setLogicalType(LogicalType logicalType)
setLogicalType
in interface ITextInput
logicalType
- LogicalType
logical type objectLogicalType
public void setSchemaType(java.lang.String schemaType)
setSchemaType
in interface ITextInput
schemaType
- String
value for the schema typepublic LogicalType getLogicalType()
getLogicalType
in interface PIMControl
public java.lang.Object getPIMValue()
getPIMValue
in interface PIMControl
public java.lang.String getSchemaType()
getSchemaType
in interface PIMControl
public void setPIMValue(java.lang.Object value)
setPIMValue
in interface PIMControl
public TextInputController getController()
ITextInput
getController
in interface ITextInput
public void setController(TextInputController textInputCtrller)
ITextInput
setController
in interface ITextInput
public void setText(java.lang.String text)
ITextInput
setText
in interface ITextInput
setText
in class net.rim.device.api.ui.component.PasswordEditField
public void setShowBackgroundColor(boolean isShowBackgroundColor)
isShowBackgroundColor
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |