com.hammingweight.hammock.mocks.microedition.lcdui
Class MockCustomItem
java.lang.Object
javax.microedition.lcdui.Item
javax.microedition.lcdui.CustomItem
com.hammingweight.hammock.mocks.microedition.lcdui.MockCustomItem
- All Implemented Interfaces:
- IMockObject
public class MockCustomItem
- extends javax.microedition.lcdui.CustomItem
- implements IMockObject
Fields inherited from class javax.microedition.lcdui.CustomItem |
KEY_PRESS, KEY_RELEASE, KEY_REPEAT, NONE, POINTER_DRAG, POINTER_PRESS, POINTER_RELEASE, TRAVERSE_HORIZONTAL, TRAVERSE_VERTICAL |
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 |
Method Summary |
void |
addCommand(javax.microedition.lcdui.Command arg0)
|
int |
getGameAction(int arg0)
|
IInvocationHandler |
getInvocationHandler()
Gets the invocation handler that the mock object uses to evaluate method
invocations. |
java.lang.String |
getLabel()
|
int |
getLayout()
|
int |
getMinContentHeight()
|
int |
getMinContentWidth()
|
int |
getMinimumHeight()
|
int |
getMinimumWidth()
|
int |
getPrefContentHeight(int arg0)
|
int |
getPrefContentWidth(int arg0)
|
int |
getPreferredHeight()
|
int |
getPreferredWidth()
|
void |
hideNotify()
|
void |
keyPressed(int arg0)
|
void |
keyReleased(int arg0)
|
void |
keyRepeated(int arg0)
|
void |
notifyStateChanged()
|
void |
paint(javax.microedition.lcdui.Graphics arg0,
int arg1,
int arg2)
|
void |
pointerDragged(int arg0,
int arg1)
|
void |
pointerPressed(int arg0,
int arg1)
|
void |
pointerReleased(int arg0,
int arg1)
|
void |
removeCommand(javax.microedition.lcdui.Command arg0)
|
void |
setDefaultCommand(javax.microedition.lcdui.Command 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)
|
void |
setPreferredSize(int arg0,
int arg1)
|
void |
showNotify()
|
void |
sizeChanged(int arg0,
int arg1)
|
boolean |
traverse(int arg0,
int arg1,
int arg2,
int[] arg3)
|
void |
traverseOut()
|
Methods inherited from class javax.microedition.lcdui.CustomItem |
getInteractionModes, invalidate, repaint, repaint |
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_GET_GAME_ACTION_$_INT
public static final MockMethod MTHD_GET_GAME_ACTION_$_INT
MTHD_GET_LABEL
public static final MockMethod MTHD_GET_LABEL
MTHD_GET_LAYOUT
public static final MockMethod MTHD_GET_LAYOUT
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_MIN_CONTENT_HEIGHT
public static final MockMethod MTHD_GET_MIN_CONTENT_HEIGHT
MTHD_GET_MIN_CONTENT_WIDTH
public static final MockMethod MTHD_GET_MIN_CONTENT_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_PREF_CONTENT_HEIGHT_$_INT
public static final MockMethod MTHD_GET_PREF_CONTENT_HEIGHT_$_INT
MTHD_GET_PREF_CONTENT_WIDTH_$_INT
public static final MockMethod MTHD_GET_PREF_CONTENT_WIDTH_$_INT
MTHD_HIDE_NOTIFY
public static final MockMethod MTHD_HIDE_NOTIFY
MTHD_KEY_PRESSED_$_INT
public static final MockMethod MTHD_KEY_PRESSED_$_INT
MTHD_KEY_RELEASED_$_INT
public static final MockMethod MTHD_KEY_RELEASED_$_INT
MTHD_KEY_REPEATED_$_INT
public static final MockMethod MTHD_KEY_REPEATED_$_INT
MTHD_NOTIFY_STATE_CHANGED
public static final MockMethod MTHD_NOTIFY_STATE_CHANGED
MTHD_PAINT_$_GRAPHICS_INT_INT
public static final MockMethod MTHD_PAINT_$_GRAPHICS_INT_INT
MTHD_POINTER_DRAGGED_$_INT_INT
public static final MockMethod MTHD_POINTER_DRAGGED_$_INT_INT
MTHD_POINTER_PRESSED_$_INT_INT
public static final MockMethod MTHD_POINTER_PRESSED_$_INT_INT
MTHD_POINTER_RELEASED_$_INT_INT
public static final MockMethod MTHD_POINTER_RELEASED_$_INT_INT
MTHD_REMOVE_COMMAND_$_COMMAND
public static final MockMethod MTHD_REMOVE_COMMAND_$_COMMAND
MTHD_SET_DEFAULT_COMMAND_$_COMMAND
public static final MockMethod MTHD_SET_DEFAULT_COMMAND_$_COMMAND
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_PREFERRED_SIZE_$_INT_INT
public static final MockMethod MTHD_SET_PREFERRED_SIZE_$_INT_INT
MTHD_SHOW_NOTIFY
public static final MockMethod MTHD_SHOW_NOTIFY
MTHD_SIZE_CHANGED_$_INT_INT
public static final MockMethod MTHD_SIZE_CHANGED_$_INT_INT
MTHD_TRAVERSE_$_INT_INT_INT_ARRAY_INT
public static final MockMethod MTHD_TRAVERSE_$_INT_INT_INT_ARRAY_INT
MTHD_TRAVERSE_OUT
public static final MockMethod MTHD_TRAVERSE_OUT
MockCustomItem
public MockCustomItem(java.lang.String arg0)
MockCustomItem
public MockCustomItem(java.lang.String arg0,
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.Item
getGameAction
public int getGameAction(int arg0)
- Overrides:
getGameAction
in class javax.microedition.lcdui.CustomItem
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
getMinimumHeight
public int getMinimumHeight()
- Overrides:
getMinimumHeight
in class javax.microedition.lcdui.Item
getMinimumWidth
public int getMinimumWidth()
- Overrides:
getMinimumWidth
in class javax.microedition.lcdui.Item
getMinContentHeight
public int getMinContentHeight()
- Specified by:
getMinContentHeight
in class javax.microedition.lcdui.CustomItem
getMinContentWidth
public int getMinContentWidth()
- Specified by:
getMinContentWidth
in class javax.microedition.lcdui.CustomItem
getPreferredHeight
public int getPreferredHeight()
- Overrides:
getPreferredHeight
in class javax.microedition.lcdui.Item
getPreferredWidth
public int getPreferredWidth()
- Overrides:
getPreferredWidth
in class javax.microedition.lcdui.Item
getPrefContentHeight
public int getPrefContentHeight(int arg0)
- Specified by:
getPrefContentHeight
in class javax.microedition.lcdui.CustomItem
getPrefContentWidth
public int getPrefContentWidth(int arg0)
- Specified by:
getPrefContentWidth
in class javax.microedition.lcdui.CustomItem
hideNotify
public void hideNotify()
- Overrides:
hideNotify
in class javax.microedition.lcdui.CustomItem
keyPressed
public void keyPressed(int arg0)
- Overrides:
keyPressed
in class javax.microedition.lcdui.CustomItem
keyReleased
public void keyReleased(int arg0)
- Overrides:
keyReleased
in class javax.microedition.lcdui.CustomItem
keyRepeated
public void keyRepeated(int arg0)
- Overrides:
keyRepeated
in class javax.microedition.lcdui.CustomItem
notifyStateChanged
public void notifyStateChanged()
- Overrides:
notifyStateChanged
in class javax.microedition.lcdui.Item
paint
public void paint(javax.microedition.lcdui.Graphics arg0,
int arg1,
int arg2)
- Specified by:
paint
in class javax.microedition.lcdui.CustomItem
pointerDragged
public void pointerDragged(int arg0,
int arg1)
- Overrides:
pointerDragged
in class javax.microedition.lcdui.CustomItem
pointerPressed
public void pointerPressed(int arg0,
int arg1)
- Overrides:
pointerPressed
in class javax.microedition.lcdui.CustomItem
pointerReleased
public void pointerReleased(int arg0,
int arg1)
- Overrides:
pointerReleased
in class javax.microedition.lcdui.CustomItem
removeCommand
public void removeCommand(javax.microedition.lcdui.Command arg0)
- Overrides:
removeCommand
in class javax.microedition.lcdui.Item
setDefaultCommand
public void setDefaultCommand(javax.microedition.lcdui.Command arg0)
- Overrides:
setDefaultCommand
in class javax.microedition.lcdui.Item
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
setPreferredSize
public void setPreferredSize(int arg0,
int arg1)
- Overrides:
setPreferredSize
in class javax.microedition.lcdui.Item
showNotify
public void showNotify()
- Overrides:
showNotify
in class javax.microedition.lcdui.CustomItem
sizeChanged
public void sizeChanged(int arg0,
int arg1)
- Overrides:
sizeChanged
in class javax.microedition.lcdui.CustomItem
traverse
public boolean traverse(int arg0,
int arg1,
int arg2,
int[] arg3)
- Overrides:
traverse
in class javax.microedition.lcdui.CustomItem
traverseOut
public void traverseOut()
- Overrides:
traverseOut
in class javax.microedition.lcdui.CustomItem