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

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

public class MockDateField
extends javax.microedition.lcdui.DateField
implements IMockObject


Field Summary
static MockMethod MTHD_ADD_COMMAND_$_COMMAND
           
static MockMethod MTHD_GET_DATE
           
static MockMethod MTHD_GET_INPUT_MODE
           
static MockMethod MTHD_GET_LABEL
           
static MockMethod MTHD_GET_LAYOUT
           
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_NOTIFY_STATE_CHANGED
           
static MockMethod MTHD_REMOVE_COMMAND_$_COMMAND
           
static MockMethod MTHD_SET_DATE_$_DATE
           
static MockMethod MTHD_SET_DEFAULT_COMMAND_$_COMMAND
           
static MockMethod MTHD_SET_INPUT_MODE_$_INT
           
static MockMethod MTHD_SET_ITEM_COMMAND_LISTENER_$_ITEMCOMMANDLISTENER
           
static MockMethod MTHD_SET_LABEL_$_STRING
           
static MockMethod MTHD_SET_LAYOUT_$_INT
           
static MockMethod MTHD_SET_PREFERRED_SIZE_$_INT_INT
           
 
Fields inherited from class javax.microedition.lcdui.DateField
DATE, DATE_TIME, TIME
 
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
MockDateField(java.lang.String arg0, int arg1)
           
MockDateField(java.lang.String arg0, int arg1, IInvocationHandler handler)
           
MockDateField(java.lang.String arg0, int arg1, java.util.TimeZone arg2)
           
MockDateField(java.lang.String arg0, int arg1, java.util.TimeZone arg2, IInvocationHandler handler)
           
 
Method Summary
 void addCommand(javax.microedition.lcdui.Command arg0)
           
 java.util.Date getDate()
           
 int getInputMode()
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 java.lang.String getLabel()
           
 int getLayout()
           
 int getMinimumHeight()
           
 int getMinimumWidth()
           
 int getPreferredHeight()
           
 int getPreferredWidth()
           
 void notifyStateChanged()
           
 void removeCommand(javax.microedition.lcdui.Command arg0)
           
 void setDate(java.util.Date arg0)
           
 void setDefaultCommand(javax.microedition.lcdui.Command arg0)
           
 void setInputMode(int 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)
           
 
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_GET_DATE

public static final MockMethod MTHD_GET_DATE

MTHD_GET_INPUT_MODE

public static final MockMethod MTHD_GET_INPUT_MODE

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_PREFERRED_HEIGHT

public static final MockMethod MTHD_GET_PREFERRED_HEIGHT

MTHD_GET_PREFERRED_WIDTH

public static final MockMethod MTHD_GET_PREFERRED_WIDTH

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_DATE_$_DATE

public static final MockMethod MTHD_SET_DATE_$_DATE

MTHD_SET_DEFAULT_COMMAND_$_COMMAND

public static final MockMethod MTHD_SET_DEFAULT_COMMAND_$_COMMAND

MTHD_SET_INPUT_MODE_$_INT

public static final MockMethod MTHD_SET_INPUT_MODE_$_INT

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

MockDateField

public MockDateField(java.lang.String arg0,
                     int arg1)

MockDateField

public MockDateField(java.lang.String arg0,
                     int arg1,
                     IInvocationHandler handler)

MockDateField

public MockDateField(java.lang.String arg0,
                     int arg1,
                     java.util.TimeZone arg2)

MockDateField

public MockDateField(java.lang.String arg0,
                     int arg1,
                     java.util.TimeZone arg2,
                     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

getDate

public java.util.Date getDate()
Overrides:
getDate in class javax.microedition.lcdui.DateField

getInputMode

public int getInputMode()
Overrides:
getInputMode in class javax.microedition.lcdui.DateField

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

getPreferredHeight

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

getPreferredWidth

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

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

setDate

public void setDate(java.util.Date arg0)
Overrides:
setDate in class javax.microedition.lcdui.DateField

setDefaultCommand

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

setInputMode

public void setInputMode(int arg0)
Overrides:
setInputMode in class javax.microedition.lcdui.DateField

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