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

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Screen
          extended by javax.microedition.lcdui.Form
              extended by com.hammingweight.hammock.mocks.microedition.lcdui.MockForm
All Implemented Interfaces:
IMockObject

public class MockForm
extends javax.microedition.lcdui.Form
implements IMockObject


Field Summary
static MockMethod MTHD_ADD_COMMAND_$_COMMAND
           
static MockMethod MTHD_APPEND_$_IMAGE
           
static MockMethod MTHD_APPEND_$_ITEM
           
static MockMethod MTHD_APPEND_$_STRING
           
static MockMethod MTHD_DELETE_$_INT
           
static MockMethod MTHD_DELETE_ALL
           
static MockMethod MTHD_GET_$_INT
           
static MockMethod MTHD_GET_HEIGHT
           
static MockMethod MTHD_GET_TICKER
           
static MockMethod MTHD_GET_TITLE
           
static MockMethod MTHD_GET_WIDTH
           
static MockMethod MTHD_INSERT_$_INT_ITEM
           
static MockMethod MTHD_IS_SHOWN
           
static MockMethod MTHD_REMOVE_COMMAND_$_COMMAND
           
static MockMethod MTHD_SET_$_INT_ITEM
           
static MockMethod MTHD_SET_COMMAND_LISTENER_$_COMMANDLISTENER
           
static MockMethod MTHD_SET_ITEM_STATE_LISTENER_$_ITEMSTATELISTENER
           
static MockMethod MTHD_SET_TICKER_$_TICKER
           
static MockMethod MTHD_SET_TITLE_$_STRING
           
static MockMethod MTHD_SIZE
           
static MockMethod MTHD_SIZE_CHANGED_$_INT_INT
           
 
Constructor Summary
MockForm(java.lang.String arg0)
           
MockForm(java.lang.String arg0, IInvocationHandler handler)
           
MockForm(java.lang.String arg0, javax.microedition.lcdui.Item[] arg1)
           
MockForm(java.lang.String arg0, javax.microedition.lcdui.Item[] arg1, IInvocationHandler handler)
           
 
Method Summary
 void addCommand(javax.microedition.lcdui.Command arg0)
           
 int append(javax.microedition.lcdui.Image arg0)
           
 int append(javax.microedition.lcdui.Item arg0)
           
 int append(java.lang.String arg0)
           
 void delete(int arg0)
           
 void deleteAll()
           
 javax.microedition.lcdui.Item get(int arg0)
           
 int getHeight()
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 javax.microedition.lcdui.Ticker getTicker()
           
 java.lang.String getTitle()
           
 int getWidth()
           
 void insert(int arg0, javax.microedition.lcdui.Item arg1)
           
 boolean isShown()
           
 void removeCommand(javax.microedition.lcdui.Command arg0)
           
 void set(int arg0, javax.microedition.lcdui.Item arg1)
           
 void setCommandListener(javax.microedition.lcdui.CommandListener arg0)
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 void setItemStateListener(javax.microedition.lcdui.ItemStateListener arg0)
           
 void setTicker(javax.microedition.lcdui.Ticker arg0)
           
 void setTitle(java.lang.String arg0)
           
 int size()
           
 void sizeChanged(int arg0, int arg1)
           
 
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_APPEND_$_IMAGE

public static final MockMethod MTHD_APPEND_$_IMAGE

MTHD_APPEND_$_ITEM

public static final MockMethod MTHD_APPEND_$_ITEM

MTHD_APPEND_$_STRING

public static final MockMethod MTHD_APPEND_$_STRING

MTHD_DELETE_$_INT

public static final MockMethod MTHD_DELETE_$_INT

MTHD_DELETE_ALL

public static final MockMethod MTHD_DELETE_ALL

MTHD_GET_$_INT

public static final MockMethod MTHD_GET_$_INT

MTHD_GET_HEIGHT

public static final MockMethod MTHD_GET_HEIGHT

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_ITEM

public static final MockMethod MTHD_INSERT_$_INT_ITEM

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_ITEM

public static final MockMethod MTHD_SET_$_INT_ITEM

MTHD_SET_COMMAND_LISTENER_$_COMMANDLISTENER

public static final MockMethod MTHD_SET_COMMAND_LISTENER_$_COMMANDLISTENER

MTHD_SET_ITEM_STATE_LISTENER_$_ITEMSTATELISTENER

public static final MockMethod MTHD_SET_ITEM_STATE_LISTENER_$_ITEMSTATELISTENER

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
Constructor Detail

MockForm

public MockForm(java.lang.String arg0,
                javax.microedition.lcdui.Item[] arg1)

MockForm

public MockForm(java.lang.String arg0,
                javax.microedition.lcdui.Item[] arg1,
                IInvocationHandler handler)

MockForm

public MockForm(java.lang.String arg0)

MockForm

public MockForm(java.lang.String arg0,
                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.Displayable

append

public int append(javax.microedition.lcdui.Image arg0)
Overrides:
append in class javax.microedition.lcdui.Form

append

public int append(javax.microedition.lcdui.Item arg0)
Overrides:
append in class javax.microedition.lcdui.Form

append

public int append(java.lang.String arg0)
Overrides:
append in class javax.microedition.lcdui.Form

delete

public void delete(int arg0)
Overrides:
delete in class javax.microedition.lcdui.Form

deleteAll

public void deleteAll()
Overrides:
deleteAll in class javax.microedition.lcdui.Form

get

public javax.microedition.lcdui.Item get(int arg0)
Overrides:
get in class javax.microedition.lcdui.Form

getHeight

public int getHeight()
Overrides:
getHeight in class javax.microedition.lcdui.Form

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.Form

insert

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

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

set

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

setCommandListener

public void setCommandListener(javax.microedition.lcdui.CommandListener arg0)
Overrides:
setCommandListener in class javax.microedition.lcdui.Displayable

setItemStateListener

public void setItemStateListener(javax.microedition.lcdui.ItemStateListener arg0)
Overrides:
setItemStateListener in class javax.microedition.lcdui.Form

setTicker

public void setTicker(javax.microedition.lcdui.Ticker arg0)
Overrides:
setTicker in class javax.microedition.lcdui.Displayable

setTitle

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

size

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

sizeChanged

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