com.hammingweight.hammock.mocks.microedition.lcdui
Class MockTextBox
java.lang.Object
javax.microedition.lcdui.Displayable
javax.microedition.lcdui.Screen
javax.microedition.lcdui.TextBox
com.hammingweight.hammock.mocks.microedition.lcdui.MockTextBox
- All Implemented Interfaces:
- IMockObject
public class MockTextBox
- extends javax.microedition.lcdui.TextBox
- implements IMockObject
Constructor Summary |
MockTextBox(java.lang.String arg0,
java.lang.String arg1,
int arg2,
int arg3)
|
MockTextBox(java.lang.String arg0,
java.lang.String arg1,
int arg2,
int arg3,
IInvocationHandler handler)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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_HEIGHT
public static final MockMethod MTHD_GET_HEIGHT
MTHD_GET_MAX_SIZE
public static final MockMethod MTHD_GET_MAX_SIZE
MTHD_GET_STRING
public static final MockMethod MTHD_GET_STRING
MTHD_GET_TICKER
public static final MockMethod MTHD_GET_TICKER
MTHD_GET_TITLE
public static final MockMethod MTHD_GET_TITLE
MTHD_GET_WIDTH
public static final MockMethod MTHD_GET_WIDTH
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_IS_SHOWN
public static final MockMethod MTHD_IS_SHOWN
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_COMMAND_LISTENER_$_COMMANDLISTENER
public static final MockMethod MTHD_SET_COMMAND_LISTENER_$_COMMANDLISTENER
MTHD_SET_CONSTRAINTS_$_INT
public static final MockMethod MTHD_SET_CONSTRAINTS_$_INT
MTHD_SET_INITIAL_INPUT_MODE_$_STRING
public static final MockMethod MTHD_SET_INITIAL_INPUT_MODE_$_STRING
MTHD_SET_MAX_SIZE_$_INT
public static final MockMethod MTHD_SET_MAX_SIZE_$_INT
MTHD_SET_STRING_$_STRING
public static final MockMethod MTHD_SET_STRING_$_STRING
MTHD_SET_TICKER_$_TICKER
public static final MockMethod MTHD_SET_TICKER_$_TICKER
MTHD_SET_TITLE_$_STRING
public static final MockMethod MTHD_SET_TITLE_$_STRING
MTHD_SIZE
public static final MockMethod MTHD_SIZE
MTHD_SIZE_CHANGED_$_INT_INT
public static final MockMethod MTHD_SIZE_CHANGED_$_INT_INT
MockTextBox
public MockTextBox(java.lang.String arg0,
java.lang.String arg1,
int arg2,
int arg3)
MockTextBox
public MockTextBox(java.lang.String arg0,
java.lang.String arg1,
int arg2,
int arg3,
IInvocationHandler handler)
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.Displayable
delete
public void delete(int arg0,
int arg1)
- Overrides:
delete
in class javax.microedition.lcdui.TextBox
getCaretPosition
public int getCaretPosition()
- Overrides:
getCaretPosition
in class javax.microedition.lcdui.TextBox
getChars
public int getChars(char[] arg0)
- Overrides:
getChars
in class javax.microedition.lcdui.TextBox
getConstraints
public int getConstraints()
- Overrides:
getConstraints
in class javax.microedition.lcdui.TextBox
getHeight
public int getHeight()
- Overrides:
getHeight
in class javax.microedition.lcdui.Displayable
getMaxSize
public int getMaxSize()
- Overrides:
getMaxSize
in class javax.microedition.lcdui.TextBox
getString
public java.lang.String getString()
- Overrides:
getString
in class javax.microedition.lcdui.TextBox
getTicker
public javax.microedition.lcdui.Ticker getTicker()
- Overrides:
getTicker
in class javax.microedition.lcdui.Displayable
getTitle
public java.lang.String getTitle()
- Overrides:
getTitle
in class javax.microedition.lcdui.Displayable
getWidth
public int getWidth()
- Overrides:
getWidth
in class javax.microedition.lcdui.Displayable
insert
public void insert(char[] arg0,
int arg1,
int arg2,
int arg3)
- Overrides:
insert
in class javax.microedition.lcdui.TextBox
insert
public void insert(java.lang.String arg0,
int arg1)
- Overrides:
insert
in class javax.microedition.lcdui.TextBox
isShown
public boolean isShown()
- Overrides:
isShown
in class javax.microedition.lcdui.Displayable
removeCommand
public void removeCommand(javax.microedition.lcdui.Command arg0)
- Overrides:
removeCommand
in class javax.microedition.lcdui.Displayable
setChars
public void setChars(char[] arg0,
int arg1,
int arg2)
- Overrides:
setChars
in class javax.microedition.lcdui.TextBox
setCommandListener
public void setCommandListener(javax.microedition.lcdui.CommandListener arg0)
- Overrides:
setCommandListener
in class javax.microedition.lcdui.Displayable
setConstraints
public void setConstraints(int arg0)
- Overrides:
setConstraints
in class javax.microedition.lcdui.TextBox
setInitialInputMode
public void setInitialInputMode(java.lang.String arg0)
- Overrides:
setInitialInputMode
in class javax.microedition.lcdui.TextBox
setMaxSize
public int setMaxSize(int arg0)
- Overrides:
setMaxSize
in class javax.microedition.lcdui.TextBox
setString
public void setString(java.lang.String arg0)
- Overrides:
setString
in class javax.microedition.lcdui.TextBox
setTicker
public void setTicker(javax.microedition.lcdui.Ticker arg0)
- Overrides:
setTicker
in class javax.microedition.lcdui.TextBox
setTitle
public void setTitle(java.lang.String arg0)
- Overrides:
setTitle
in class javax.microedition.lcdui.TextBox
size
public int size()
- Overrides:
size
in class javax.microedition.lcdui.TextBox
sizeChanged
public void sizeChanged(int arg0,
int arg1)
- Overrides:
sizeChanged
in class javax.microedition.lcdui.Displayable