com.sybase.uep.bobclient.utils
Class TextInputUtil

java.lang.Object
  extended by com.sybase.uep.bobclient.utils.TextInputUtil

public class TextInputUtil
extends java.lang.Object


Constructor Summary
TextInputUtil()
           
 
Method Summary
static ITextInput createTextInputForPK(java.lang.String name, boolean isProtected, boolean isDrawBg)
          static factory method to create instance of ITextInput according specified parameters
static void datePicker(java.lang.String datetype, ITextInput textInput)
          Create a date picker
static void fileFileExplorer(boolean imageExplorerOnly, ITextInput textInput)
          Open the image file explorer for the user to select the image on the device
static int getNumberSplitParts(java.lang.String str, net.rim.device.api.ui.Font f, int width, boolean isPassword)
          Split the label into pieces if it's too long
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextInputUtil

public TextInputUtil()
Method Detail

datePicker

public static void datePicker(java.lang.String datetype,
                              ITextInput textInput)
Create a date picker

Parameters:
datetype - String value for the data type

fileFileExplorer

public static void fileFileExplorer(boolean imageExplorerOnly,
                                    ITextInput textInput)
Open the image file explorer for the user to select the image on the device

Parameters:
imageExplorerOnly - true to show images only in the file explorer, otherwise false

createTextInputForPK

public static ITextInput createTextInputForPK(java.lang.String name,
                                              boolean isProtected,
                                              boolean isDrawBg)
static factory method to create instance of ITextInput according specified parameters

Parameters:
name -
isProtected -
datatype -
isDrawBg -
Returns:

getNumberSplitParts

public static int getNumberSplitParts(java.lang.String str,
                                      net.rim.device.api.ui.Font f,
                                      int width,
                                      boolean isPassword)
Split the label into pieces if it's too long

Parameters:
str - String value for the label
f - Font being used
width - int value for the available width
isPassword - boolean for password input or not
Returns:
int value for the size of the array for the splits of the label