|
|||||||||
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.RichTextField
net.rim.device.api.ui.component.ActiveRichTextField
com.sybase.uep.bobclient.controls.PhoneEmailRichTextInput
public class PhoneEmailRichTextInput
This is the phone and email rich text input It will detect and highlight emails and phone numbers It will also allow user to call phone numbers in the inputs and email the email address. As well as save to address book.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.rim.device.api.ui.component.ActiveRichTextField |
---|
net.rim.device.api.ui.component.ActiveRichTextField.RegionQueue |
Field Summary |
---|
Fields inherited from class net.rim.device.api.ui.component.ActiveRichTextField |
---|
_cookieID, INVALID_COOKIE_ID, SCANFLAG_DISABLE_ALL_THREADING, SCANFLAG_THREAD_ON_CREATE |
Fields inherited from class net.rim.device.api.ui.component.RichTextField |
---|
TEXT_ALIGN_HCENTER, TEXT_ALIGN_LEFT, TEXT_ALIGN_RIGHT, USE_TEXT_WIDTH |
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 |
Constructor Summary | |
---|---|
PhoneEmailRichTextInput(java.lang.String text,
long style)
Phone Email Rich Text Input constructor |
Method Summary | |
---|---|
int |
getColSpan()
(non-Javadoc) |
FontStyle |
getFocusFontStyle()
Retrieve this control's focus font style |
FontStyle |
getFontStyle()
Retrieve this control's font style |
long |
getHorizontalAlignment()
(non-Javadoc) |
java.lang.String |
getName()
(non-Javadoc) |
static int |
getNumberSplitParts(java.lang.String str,
net.rim.device.api.ui.Font f,
int width)
Split the label into pieces if it's too long |
int |
getPreferredHeight()
(non-Javadoc) |
int |
getPreferredWidth()
(non-Javadoc) |
int |
getRowSpan()
(non-Javadoc) |
java.lang.Object |
getValue()
(non-Javadoc) |
long |
getVerticalAlignment()
(non-Javadoc) |
protected void |
layout(int width,
int height)
(non-Javadoc) |
protected void |
makeContextMenu(net.rim.device.api.ui.ContextMenu menu)
(non-Javadoc) |
protected void |
onFocus(int direction)
(non-Javadoc) |
protected void |
onUnfocus()
Invoked when a field loses the focus. |
void |
paint(net.rim.device.api.ui.Graphics graphics)
(non-Javadoc) |
void |
refresh()
(non-Javadoc) |
void |
setBackgroundColor(int bgcolor)
(non-Javadoc) |
void |
setColSpan(int colspan)
(non-Javadoc) |
void |
setFocusFontStyle(FontStyle fontStyle)
Set the focus font style for this control |
void |
setFontStyle(FontStyle fontStyle)
Set the font style for this control |
void |
setFooterField(FooterField footerField)
Set the footer field |
void |
setLayoutHeight(int height)
(non-Javadoc) |
void |
setLayoutWidth(int width)
(non-Javadoc) |
void |
setRowSpan(int rowspan)
(non-Javadoc) |
Methods inherited from class net.rim.device.api.ui.component.ActiveRichTextField |
---|
drawFocus, drawText, executeBackgroundScan, getContextMenuContext, getCookieWithFocus, getFocusRect, getMainScreenManager, getRegionCookie, getRegionCookie, getScanFlags, getText, invokeAction, keyDown, regionHasCookie, regionHasCookie, scrollVertically, selectionCopy, setAttributes, setScanFlags, setText, setText, setText, setText, setText |
Methods inherited from class net.rim.device.api.ui.component.RichTextField |
---|
charAt, getAttributes, getBackgroundColors, getCursorPosition, getFonts, getFonts, getForegroundColors, getOffsets, getRegion, getRegionFont, getRegionFont, getRegionText, getRegionText, getText, getTextLength, isSelectable, keyChar, moveFocus, setCursorPosition, setFont, setFont, setText, setText |
Methods inherited from class net.rim.device.api.ui.component.TextField |
---|
backspace, backspace, backspace, clear, displayFieldFullMessage, drawText, fieldChangeNotify, getAccessibleContext, getComposedTextEnd, getComposedTextStart, getDisplayLineCount, getFilter, getLabel, getLabelLength, getMaxSize, getText, getText, getTextAbstractString, insert, insert, insert, insert, insert, insert, insert, isPasteable, isSelecting, isSelectionCopyable, isSelectionDeleteable, isSymbolScreenAllowed, keyControl, moveFocus, navigationClick, navigationUnclick, onUndisplay, paste, select, selectionDelete, setCursorPosition, setFilter, setLabel, setMaxSize, setPreLayoutInternal, setSelection, setText, toString, update, wipe |
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, isDataValid, isDirty, isEditable, isFocus, isFocusable, isMuddy, isSelectionCutable, isSpellCheckable, isStyle, isVisible, keyRepeat, keyStatus, keyUp, makeContextMenu, navigationMovement, onDisplay, onExposed, onMenuDismissed, onMenuDismissed, onObscured, onVisibilityChange, paintBackground, selectionCut, setBackground, setBackground, setBorder, setBorder, setBorder, setBorder, setBorder, setChangeListener, setCookie, setDirty, setEditable, setExtent, setFocus, setFocusListener, setFont, setMargin, setMargin, setMuddy, setNonSpellCheckable, setPadding, setPadding, setPosition, setVisualState, touchEvent, trackwheelClick, trackwheelUnclick, updateLayout |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.rim.device.internal.ui.Formatter.TextRenderer |
---|
getFont |
Constructor Detail |
---|
public PhoneEmailRichTextInput(java.lang.String text, long style)
text
- String
value for the initial default textstyle
- long
value for the input styleField
Method Detail |
---|
public FontStyle getFontStyle()
FontStyle
font style objectFontStyle
public void setFontStyle(FontStyle fontStyle)
fontStyle
- FontStyle
font style objectFontStyle
public FontStyle getFocusFontStyle()
FontStyle
font style objectFontStyle
public void setFocusFontStyle(FontStyle fontStyle)
fontStyle
- FontStyle
font style objectFontStyle
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 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.TextField
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 java.lang.Object getValue()
getValue
in interface Control
Object
of the value set for this controlControl.getValue()
public java.lang.String getName()
getName
in interface Control
String
value of the key nameControl.getName()
public void refresh()
refresh
in interface Control
Control.refresh()
public int getPreferredHeight()
getPreferredHeight
in interface Control
getPreferredHeight
in class net.rim.device.api.ui.component.RichTextField
int
value of the available layout heightControl.getPreferredHeight()
public static int getNumberSplitParts(java.lang.String str, net.rim.device.api.ui.Font f, int width)
str
- String
value for the labelf
- Font
object being used in this controlwidth
- int
value for the avaiable width
int
value for the size of the array size of the labelprotected 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.Field
public void paint(net.rim.device.api.ui.Graphics graphics)
paint
in class net.rim.device.api.ui.component.RichTextField
Field.paint(Graphics g)
protected void makeContextMenu(net.rim.device.api.ui.ContextMenu menu)
makeContextMenu
in class net.rim.device.api.ui.component.TextField
Field.makeContextMenu(ContextMenu menu)
protected void layout(int width, int height)
layout
in class net.rim.device.api.ui.component.RichTextField
Field.layout(int width, int height)
public void setFooterField(FooterField footerField)
{@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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |