com.hammingweight.hammock.mocks.microedition.lcdui
Class MockList
java.lang.Object
javax.microedition.lcdui.Displayable
javax.microedition.lcdui.Screen
javax.microedition.lcdui.List
com.hammingweight.hammock.mocks.microedition.lcdui.MockList
- All Implemented Interfaces:
- IMockObject, javax.microedition.lcdui.Choice
public class MockList
- extends javax.microedition.lcdui.List
- implements IMockObject
| Fields inherited from class javax.microedition.lcdui.List |
SELECT_COMMAND |
| Fields inherited from interface javax.microedition.lcdui.Choice |
EXCLUSIVE, IMPLICIT, MULTIPLE, POPUP, TEXT_WRAP_DEFAULT, TEXT_WRAP_OFF, TEXT_WRAP_ON |
|
Constructor Summary |
MockList(java.lang.String arg0,
int arg1)
|
MockList(java.lang.String arg0,
int arg1,
IInvocationHandler handler)
|
MockList(java.lang.String arg0,
int arg1,
java.lang.String[] arg2,
javax.microedition.lcdui.Image[] arg3)
|
MockList(java.lang.String arg0,
int arg1,
java.lang.String[] arg2,
javax.microedition.lcdui.Image[] 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_APPEND_$_STRING_IMAGE
public static final MockMethod MTHD_APPEND_$_STRING_IMAGE
MTHD_DELETE_$_INT
public static final MockMethod MTHD_DELETE_$_INT
MTHD_DELETE_ALL
public static final MockMethod MTHD_DELETE_ALL
MTHD_GET_FIT_POLICY
public static final MockMethod MTHD_GET_FIT_POLICY
MTHD_GET_FONT_$_INT
public static final MockMethod MTHD_GET_FONT_$_INT
MTHD_GET_HEIGHT
public static final MockMethod MTHD_GET_HEIGHT
MTHD_GET_IMAGE_$_INT
public static final MockMethod MTHD_GET_IMAGE_$_INT
MTHD_GET_SELECTED_FLAGS_$_ARRAY_BOOLEAN
public static final MockMethod MTHD_GET_SELECTED_FLAGS_$_ARRAY_BOOLEAN
MTHD_GET_SELECTED_INDEX
public static final MockMethod MTHD_GET_SELECTED_INDEX
MTHD_GET_STRING_$_INT
public static final MockMethod MTHD_GET_STRING_$_INT
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_$_INT_STRING_IMAGE
public static final MockMethod MTHD_INSERT_$_INT_STRING_IMAGE
MTHD_IS_SELECTED_$_INT
public static final MockMethod MTHD_IS_SELECTED_$_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_$_INT_STRING_IMAGE
public static final MockMethod MTHD_SET_$_INT_STRING_IMAGE
MTHD_SET_COMMAND_LISTENER_$_COMMANDLISTENER
public static final MockMethod MTHD_SET_COMMAND_LISTENER_$_COMMANDLISTENER
MTHD_SET_FIT_POLICY_$_INT
public static final MockMethod MTHD_SET_FIT_POLICY_$_INT
MTHD_SET_FONT_$_INT_FONT
public static final MockMethod MTHD_SET_FONT_$_INT_FONT
MTHD_SET_SELECTED_FLAGS_$_ARRAY_BOOLEAN
public static final MockMethod MTHD_SET_SELECTED_FLAGS_$_ARRAY_BOOLEAN
MTHD_SET_SELECTED_INDEX_$_INT_BOOLEAN
public static final MockMethod MTHD_SET_SELECTED_INDEX_$_INT_BOOLEAN
MTHD_SET_SELECT_COMMAND_$_COMMAND
public static final MockMethod MTHD_SET_SELECT_COMMAND_$_COMMAND
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
MockList
public MockList(java.lang.String arg0,
int arg1,
java.lang.String[] arg2,
javax.microedition.lcdui.Image[] arg3)
MockList
public MockList(java.lang.String arg0,
int arg1,
java.lang.String[] arg2,
javax.microedition.lcdui.Image[] arg3,
IInvocationHandler handler)
MockList
public MockList(java.lang.String arg0,
int arg1)
MockList
public MockList(java.lang.String arg0,
int arg1,
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
append
public int append(java.lang.String arg0,
javax.microedition.lcdui.Image arg1)
- Specified by:
append in interface javax.microedition.lcdui.Choice- Overrides:
append in class javax.microedition.lcdui.List
delete
public void delete(int arg0)
- Specified by:
delete in interface javax.microedition.lcdui.Choice- Overrides:
delete in class javax.microedition.lcdui.List
deleteAll
public void deleteAll()
- Specified by:
deleteAll in interface javax.microedition.lcdui.Choice- Overrides:
deleteAll in class javax.microedition.lcdui.List
getFitPolicy
public int getFitPolicy()
- Specified by:
getFitPolicy in interface javax.microedition.lcdui.Choice- Overrides:
getFitPolicy in class javax.microedition.lcdui.List
getFont
public javax.microedition.lcdui.Font getFont(int arg0)
- Specified by:
getFont in interface javax.microedition.lcdui.Choice- Overrides:
getFont in class javax.microedition.lcdui.List
getHeight
public int getHeight()
- Overrides:
getHeight in class javax.microedition.lcdui.Displayable
getImage
public javax.microedition.lcdui.Image getImage(int arg0)
- Specified by:
getImage in interface javax.microedition.lcdui.Choice- Overrides:
getImage in class javax.microedition.lcdui.List
getSelectedFlags
public int getSelectedFlags(boolean[] arg0)
- Specified by:
getSelectedFlags in interface javax.microedition.lcdui.Choice- Overrides:
getSelectedFlags in class javax.microedition.lcdui.List
getSelectedIndex
public int getSelectedIndex()
- Specified by:
getSelectedIndex in interface javax.microedition.lcdui.Choice- Overrides:
getSelectedIndex in class javax.microedition.lcdui.List
getString
public java.lang.String getString(int arg0)
- Specified by:
getString in interface javax.microedition.lcdui.Choice- Overrides:
getString in class javax.microedition.lcdui.List
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(int arg0,
java.lang.String arg1,
javax.microedition.lcdui.Image arg2)
- Specified by:
insert in interface javax.microedition.lcdui.Choice- Overrides:
insert in class javax.microedition.lcdui.List
isSelected
public boolean isSelected(int arg0)
- Specified by:
isSelected in interface javax.microedition.lcdui.Choice- Overrides:
isSelected in class javax.microedition.lcdui.List
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.List
set
public void set(int arg0,
java.lang.String arg1,
javax.microedition.lcdui.Image arg2)
- Specified by:
set in interface javax.microedition.lcdui.Choice- Overrides:
set in class javax.microedition.lcdui.List
setCommandListener
public void setCommandListener(javax.microedition.lcdui.CommandListener arg0)
- Overrides:
setCommandListener in class javax.microedition.lcdui.Displayable
setFitPolicy
public void setFitPolicy(int arg0)
- Specified by:
setFitPolicy in interface javax.microedition.lcdui.Choice- Overrides:
setFitPolicy in class javax.microedition.lcdui.List
setFont
public void setFont(int arg0,
javax.microedition.lcdui.Font arg1)
- Specified by:
setFont in interface javax.microedition.lcdui.Choice- Overrides:
setFont in class javax.microedition.lcdui.List
setSelectedFlags
public void setSelectedFlags(boolean[] arg0)
- Specified by:
setSelectedFlags in interface javax.microedition.lcdui.Choice- Overrides:
setSelectedFlags in class javax.microedition.lcdui.List
setSelectedIndex
public void setSelectedIndex(int arg0,
boolean arg1)
- Specified by:
setSelectedIndex in interface javax.microedition.lcdui.Choice- Overrides:
setSelectedIndex in class javax.microedition.lcdui.List
setSelectCommand
public void setSelectCommand(javax.microedition.lcdui.Command arg0)
- Overrides:
setSelectCommand in class javax.microedition.lcdui.List
setTicker
public void setTicker(javax.microedition.lcdui.Ticker arg0)
- Overrides:
setTicker in class javax.microedition.lcdui.List
setTitle
public void setTitle(java.lang.String arg0)
- Overrides:
setTitle in class javax.microedition.lcdui.List
size
public int size()
- Specified by:
size in interface javax.microedition.lcdui.Choice- Overrides:
size in class javax.microedition.lcdui.List
sizeChanged
public void sizeChanged(int arg0,
int arg1)
- Overrides:
sizeChanged in class javax.microedition.lcdui.Displayable