com.hammingweight.hammock.mocks.microedition.lcdui
Class MockTextField

java.lang.Object
  extended by javax.microedition.lcdui.Item
      extended by javax.microedition.lcdui.TextField
          extended by com.hammingweight.hammock.mocks.microedition.lcdui.MockTextField
All Implemented Interfaces:
IMockObject

public class MockTextField
extends javax.microedition.lcdui.TextField
implements IMockObject


Field Summary
static MockMethod MTHD_ADD_COMMAND_$_COMMAND
           
static MockMethod MTHD_DELETE_$_INT_INT
           
static MockMethod MTHD_GET_CARET_POSITION
           
static MockMethod MTHD_GET_CHARS_$_ARRAY_CHAR
           
static MockMethod MTHD_GET_CONSTRAINTS
           
static MockMethod MTHD_GET_LABEL
           
static MockMethod MTHD_GET_LAYOUT
           
static MockMethod MTHD_GET_MAX_SIZE
           
static MockMethod MTHD_GET_MINIMUM_HEIGHT
           
static MockMethod MTHD_GET_MINIMUM_WIDTH
           
static MockMethod MTHD_GET_PREFERRED_HEIGHT
           
static MockMethod MTHD_GET_PREFERRED_WIDTH
           
static MockMethod MTHD_GET_STRING
           
static MockMethod MTHD_INSERT_$_ARRAY_CHAR_INT_INT_INT
           
static MockMethod MTHD_INSERT_$_STRING_INT
           
static MockMethod MTHD_NOTIFY_STATE_CHANGED
           
static MockMethod MTHD_REMOVE_COMMAND_$_COMMAND
           
static MockMethod MTHD_SET_CHARS_$_ARRAY_CHAR_INT_INT
           
static MockMethod MTHD_SET_CONSTRAINTS_$_INT
           
static MockMethod MTHD_SET_DEFAULT_COMMAND_$_COMMAND
           
static MockMethod MTHD_SET_INITIAL_INPUT_MODE_$_STRING
           
static MockMethod MTHD_SET_ITEM_COMMAND_LISTENER_$_ITEMCOMMANDLISTENER
           
static MockMethod MTHD_SET_LABEL_$_STRING
           
static MockMethod MTHD_SET_LAYOUT_$_INT
           
static MockMethod MTHD_SET_MAX_SIZE_$_INT
           
static MockMethod MTHD_SET_PREFERRED_SIZE_$_INT_INT
           
static MockMethod MTHD_SET_STRING_$_STRING
           
static MockMethod MTHD_SIZE
           
 
Fields inherited from class javax.microedition.lcdui.TextField
ANY, CONSTRAINT_MASK, DECIMAL, EMAILADDR, INITIAL_CAPS_SENTENCE, INITIAL_CAPS_WORD, NON_PREDICTIVE, NUMERIC, PASSWORD, PHONENUMBER, SENSITIVE, UNEDITABLE, URL
 
Fields inherited from class javax.microedition.lcdui.Item
BUTTON, HYPERLINK, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_CENTER, LAYOUT_DEFAULT, LAYOUT_EXPAND, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLINE_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAIN
 
Constructor Summary
MockTextField(java.lang.String arg0, java.lang.String arg1, int arg2, int arg3)
           
MockTextField(java.lang.String arg0, java.lang.String arg1, int arg2, int arg3, IInvocationHandler handler)
           
 
Method Summary
 void addCommand(javax.microedition.lcdui.Command arg0)
           
 void delete(int arg0, int arg1)
           
 int getCaretPosition()
           
 int getChars(char[] arg0)
           
 int getConstraints()
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 java.lang.String getLabel()
           
 int getLayout()
           
 int getMaxSize()
           
 int getMinimumHeight()
           
 int getMinimumWidth()
           
 int getPreferredHeight()
           
 int getPreferredWidth()
           
 java.lang.String getString()
           
 void insert(char[] arg0, int arg1, int arg2, int arg3)
           
 void insert(java.lang.String arg0, int arg1)
           
 void notifyStateChanged()
           
 void removeCommand(javax.microedition.lcdui.Command arg0)
           
 void setChars(char[] arg0, int arg1, int arg2)
           
 void setConstraints(int arg0)
           
 void setDefaultCommand(javax.microedition.lcdui.Command arg0)
           
 void setInitialInputMode(java.lang.String arg0)
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 void setItemCommandListener(javax.microedition.lcdui.ItemCommandListener arg0)
           
 void setLabel(java.lang.String arg0)
           
 void setLayout(int arg0)
           
 int setMaxSize(int arg0)
           
 void setPreferredSize(int arg0, int arg1)
           
 void setString(java.lang.String arg0)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_ADD_COMMAND_$_COMMAND

public static final MockMethod MTHD_ADD_COMMAND_$_COMMAND

MTHD_DELETE_$_INT_INT

public static final MockMethod MTHD_DELETE_$_INT_INT

MTHD_GET_CARET_POSITION

public static final MockMethod MTHD_GET_CARET_POSITION

MTHD_GET_CHARS_$_ARRAY_CHAR

public static final MockMethod MTHD_GET_CHARS_$_ARRAY_CHAR

MTHD_GET_CONSTRAINTS

public static final MockMethod MTHD_GET_CONSTRAINTS

MTHD_GET_LABEL

public static final MockMethod MTHD_GET_LABEL

MTHD_GET_LAYOUT

public static final MockMethod MTHD_GET_LAYOUT

MTHD_GET_MAX_SIZE

public static final MockMethod MTHD_GET_MAX_SIZE

MTHD_GET_MINIMUM_HEIGHT

public static final MockMethod MTHD_GET_MINIMUM_HEIGHT

MTHD_GET_MINIMUM_WIDTH

public static final MockMethod MTHD_GET_MINIMUM_WIDTH

MTHD_GET_PREFERRED_HEIGHT

public static final MockMethod MTHD_GET_PREFERRED_HEIGHT

MTHD_GET_PREFERRED_WIDTH

public static final MockMethod MTHD_GET_PREFERRED_WIDTH

MTHD_GET_STRING

public static final MockMethod MTHD_GET_STRING

MTHD_INSERT_$_ARRAY_CHAR_INT_INT_INT

public static final MockMethod MTHD_INSERT_$_ARRAY_CHAR_INT_INT_INT

MTHD_INSERT_$_STRING_INT

public static final MockMethod MTHD_INSERT_$_STRING_INT

MTHD_NOTIFY_STATE_CHANGED

public static final MockMethod MTHD_NOTIFY_STATE_CHANGED

MTHD_REMOVE_COMMAND_$_COMMAND

public static final MockMethod MTHD_REMOVE_COMMAND_$_COMMAND

MTHD_SET_CHARS_$_ARRAY_CHAR_INT_INT

public static final MockMethod MTHD_SET_CHARS_$_ARRAY_CHAR_INT_INT

MTHD_SET_CONSTRAINTS_$_INT

public static final MockMethod MTHD_SET_CONSTRAINTS_$_INT

MTHD_SET_DEFAULT_COMMAND_$_COMMAND

public static final MockMethod MTHD_SET_DEFAULT_COMMAND_$_COMMAND

MTHD_SET_INITIAL_INPUT_MODE_$_STRING

public static final MockMethod MTHD_SET_INITIAL_INPUT_MODE_$_STRING

MTHD_SET_ITEM_COMMAND_LISTENER_$_ITEMCOMMANDLISTENER

public static final MockMethod MTHD_SET_ITEM_COMMAND_LISTENER_$_ITEMCOMMANDLISTENER

MTHD_SET_LABEL_$_STRING

public static final MockMethod MTHD_SET_LABEL_$_STRING

MTHD_SET_LAYOUT_$_INT

public static final MockMethod MTHD_SET_LAYOUT_$_INT

MTHD_SET_MAX_SIZE_$_INT

public static final MockMethod MTHD_SET_MAX_SIZE_$_INT

MTHD_SET_PREFERRED_SIZE_$_INT_INT

public static final MockMethod MTHD_SET_PREFERRED_SIZE_$_INT_INT

MTHD_SET_STRING_$_STRING

public static final MockMethod MTHD_SET_STRING_$_STRING

MTHD_SIZE

public static final MockMethod MTHD_SIZE
Constructor Detail

MockTextField

public MockTextField(java.lang.String arg0,
                     java.lang.String arg1,
                     int arg2,
                     int arg3)

MockTextField

public MockTextField(java.lang.String arg0,
                     java.lang.String arg1,
                     int arg2,
                     int arg3,
                     IInvocationHandler handler)
Method Detail

setInvocationHandler

public final void setInvocationHandler(IInvocationHandler handler)
Description copied from interface: IMockObject
Sets the invocation handler that the mock object should use to evaluate method invocations.

Specified by:
setInvocationHandler in interface IMockObject
Parameters:
handler - The invocation handler to be used by the mock object.

getInvocationHandler

public final IInvocationHandler getInvocationHandler()
Description copied from interface: IMockObject
Gets the invocation handler that the mock object uses to evaluate method invocations.

Specified by:
getInvocationHandler in interface IMockObject
Returns:
The invocation handler used by the mock object.

addCommand

public void addCommand(javax.microedition.lcdui.Command arg0)
Overrides:
addCommand in class javax.microedition.lcdui.Item

delete

public void delete(int arg0,
                   int arg1)
Overrides:
delete in class javax.microedition.lcdui.TextField

getCaretPosition

public int getCaretPosition()
Overrides:
getCaretPosition in class javax.microedition.lcdui.TextField

getChars

public int getChars(char[] arg0)
Overrides:
getChars in class javax.microedition.lcdui.TextField

getConstraints

public int getConstraints()
Overrides:
getConstraints in class javax.microedition.lcdui.TextField

getLabel

public java.lang.String getLabel()
Overrides:
getLabel in class javax.microedition.lcdui.Item

getLayout

public int getLayout()
Overrides:
getLayout in class javax.microedition.lcdui.Item

getMaxSize

public int getMaxSize()
Overrides:
getMaxSize in class javax.microedition.lcdui.TextField

getMinimumHeight

public int getMinimumHeight()
Overrides:
getMinimumHeight in class javax.microedition.lcdui.Item

getMinimumWidth

public int getMinimumWidth()
Overrides:
getMinimumWidth in class javax.microedition.lcdui.Item

getPreferredHeight

public int getPreferredHeight()
Overrides:
getPreferredHeight in class javax.microedition.lcdui.Item

getPreferredWidth

public int getPreferredWidth()
Overrides:
getPreferredWidth in class javax.microedition.lcdui.Item

getString

public java.lang.String getString()
Overrides:
getString in class javax.microedition.lcdui.TextField

insert

public void insert(char[] arg0,
                   int arg1,
                   int arg2,
                   int arg3)
Overrides:
insert in class javax.microedition.lcdui.TextField

insert

public void insert(java.lang.String arg0,
                   int arg1)
Overrides:
insert in class javax.microedition.lcdui.TextField

notifyStateChanged

public void notifyStateChanged()
Overrides:
notifyStateChanged in class javax.microedition.lcdui.Item

removeCommand

public void removeCommand(javax.microedition.lcdui.Command arg0)
Overrides:
removeCommand in class javax.microedition.lcdui.Item

setChars

public void setChars(char[] arg0,
                     int arg1,
                     int arg2)
Overrides:
setChars in class javax.microedition.lcdui.TextField

setConstraints

public void setConstraints(int arg0)
Overrides:
setConstraints in class javax.microedition.lcdui.TextField

setDefaultCommand

public void setDefaultCommand(javax.microedition.lcdui.Command arg0)
Overrides:
setDefaultCommand in class javax.microedition.lcdui.Item

setInitialInputMode

public void setInitialInputMode(java.lang.String arg0)
Overrides:
setInitialInputMode in class javax.microedition.lcdui.TextField

setItemCommandListener

public void setItemCommandListener(javax.microedition.lcdui.ItemCommandListener arg0)
Overrides:
setItemCommandListener in class javax.microedition.lcdui.Item

setLabel

public void setLabel(java.lang.String arg0)
Overrides:
setLabel in class javax.microedition.lcdui.Item

setLayout

public void setLayout(int arg0)
Overrides:
setLayout in class javax.microedition.lcdui.Item

setMaxSize

public int setMaxSize(int arg0)
Overrides:
setMaxSize in class javax.microedition.lcdui.TextField

setPreferredSize

public void setPreferredSize(int arg0,
                             int arg1)
Overrides:
setPreferredSize in class javax.microedition.lcdui.Item

setString

public void setString(java.lang.String arg0)
Overrides:
setString in class javax.microedition.lcdui.TextField

size

public int size()
Overrides:
size in class javax.microedition.lcdui.TextField