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

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

public class MockAlert
extends javax.microedition.lcdui.Alert
implements IMockObject


Field Summary
static MockMethod MTHD_ADD_COMMAND_$_COMMAND
           
static MockMethod MTHD_GET_DEFAULT_TIMEOUT
           
static MockMethod MTHD_GET_HEIGHT
           
static MockMethod MTHD_GET_IMAGE
           
static MockMethod MTHD_GET_INDICATOR
           
static MockMethod MTHD_GET_STRING
           
static MockMethod MTHD_GET_TICKER
           
static MockMethod MTHD_GET_TIMEOUT
           
static MockMethod MTHD_GET_TITLE
           
static MockMethod MTHD_GET_TYPE
           
static MockMethod MTHD_GET_WIDTH
           
static MockMethod MTHD_IS_SHOWN
           
static MockMethod MTHD_REMOVE_COMMAND_$_COMMAND
           
static MockMethod MTHD_SET_COMMAND_LISTENER_$_COMMANDLISTENER
           
static MockMethod MTHD_SET_IMAGE_$_IMAGE
           
static MockMethod MTHD_SET_INDICATOR_$_GAUGE
           
static MockMethod MTHD_SET_STRING_$_STRING
           
static MockMethod MTHD_SET_TICKER_$_TICKER
           
static MockMethod MTHD_SET_TIMEOUT_$_INT
           
static MockMethod MTHD_SET_TITLE_$_STRING
           
static MockMethod MTHD_SET_TYPE_$_ALERTTYPE
           
static MockMethod MTHD_SIZE_CHANGED_$_INT_INT
           
 
Fields inherited from class javax.microedition.lcdui.Alert
DISMISS_COMMAND, FOREVER
 
Constructor Summary
MockAlert(java.lang.String arg0)
           
MockAlert(java.lang.String arg0, IInvocationHandler handler)
           
MockAlert(java.lang.String arg0, java.lang.String arg1, javax.microedition.lcdui.Image arg2, javax.microedition.lcdui.AlertType arg3)
           
MockAlert(java.lang.String arg0, java.lang.String arg1, javax.microedition.lcdui.Image arg2, javax.microedition.lcdui.AlertType arg3, IInvocationHandler handler)
           
 
Method Summary
 void addCommand(javax.microedition.lcdui.Command arg0)
           
 int getDefaultTimeout()
           
 int getHeight()
           
 javax.microedition.lcdui.Image getImage()
           
 javax.microedition.lcdui.Gauge getIndicator()
           
 IInvocationHandler getInvocationHandler()
          Gets the invocation handler that the mock object uses to evaluate method invocations.
 java.lang.String getString()
           
 javax.microedition.lcdui.Ticker getTicker()
           
 int getTimeout()
           
 java.lang.String getTitle()
           
 javax.microedition.lcdui.AlertType getType()
           
 int getWidth()
           
 boolean isShown()
           
 void removeCommand(javax.microedition.lcdui.Command arg0)
           
 void setCommandListener(javax.microedition.lcdui.CommandListener arg0)
           
 void setImage(javax.microedition.lcdui.Image arg0)
           
 void setIndicator(javax.microedition.lcdui.Gauge arg0)
           
 void setInvocationHandler(IInvocationHandler handler)
          Sets the invocation handler that the mock object should use to evaluate method invocations.
 void setString(java.lang.String arg0)
           
 void setTicker(javax.microedition.lcdui.Ticker arg0)
           
 void setTimeout(int arg0)
           
 void setTitle(java.lang.String arg0)
           
 void setType(javax.microedition.lcdui.AlertType arg0)
           
 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_GET_DEFAULT_TIMEOUT

public static final MockMethod MTHD_GET_DEFAULT_TIMEOUT

MTHD_GET_HEIGHT

public static final MockMethod MTHD_GET_HEIGHT

MTHD_GET_IMAGE

public static final MockMethod MTHD_GET_IMAGE

MTHD_GET_INDICATOR

public static final MockMethod MTHD_GET_INDICATOR

MTHD_GET_STRING

public static final MockMethod MTHD_GET_STRING

MTHD_GET_TICKER

public static final MockMethod MTHD_GET_TICKER

MTHD_GET_TIMEOUT

public static final MockMethod MTHD_GET_TIMEOUT

MTHD_GET_TITLE

public static final MockMethod MTHD_GET_TITLE

MTHD_GET_TYPE

public static final MockMethod MTHD_GET_TYPE

MTHD_GET_WIDTH

public static final MockMethod MTHD_GET_WIDTH

MTHD_IS_SHOWN

public static final MockMethod MTHD_IS_SHOWN

MTHD_REMOVE_COMMAND_$_COMMAND

public static final MockMethod MTHD_REMOVE_COMMAND_$_COMMAND

MTHD_SET_COMMAND_LISTENER_$_COMMANDLISTENER

public static final MockMethod MTHD_SET_COMMAND_LISTENER_$_COMMANDLISTENER

MTHD_SET_IMAGE_$_IMAGE

public static final MockMethod MTHD_SET_IMAGE_$_IMAGE

MTHD_SET_INDICATOR_$_GAUGE

public static final MockMethod MTHD_SET_INDICATOR_$_GAUGE

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_TIMEOUT_$_INT

public static final MockMethod MTHD_SET_TIMEOUT_$_INT

MTHD_SET_TITLE_$_STRING

public static final MockMethod MTHD_SET_TITLE_$_STRING

MTHD_SET_TYPE_$_ALERTTYPE

public static final MockMethod MTHD_SET_TYPE_$_ALERTTYPE

MTHD_SIZE_CHANGED_$_INT_INT

public static final MockMethod MTHD_SIZE_CHANGED_$_INT_INT
Constructor Detail

MockAlert

public MockAlert(java.lang.String arg0,
                 java.lang.String arg1,
                 javax.microedition.lcdui.Image arg2,
                 javax.microedition.lcdui.AlertType arg3)

MockAlert

public MockAlert(java.lang.String arg0,
                 java.lang.String arg1,
                 javax.microedition.lcdui.Image arg2,
                 javax.microedition.lcdui.AlertType arg3,
                 IInvocationHandler handler)

MockAlert

public MockAlert(java.lang.String arg0)

MockAlert

public MockAlert(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.Alert

getDefaultTimeout

public int getDefaultTimeout()
Overrides:
getDefaultTimeout in class javax.microedition.lcdui.Alert

getHeight

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

getImage

public javax.microedition.lcdui.Image getImage()
Overrides:
getImage in class javax.microedition.lcdui.Alert

getIndicator

public javax.microedition.lcdui.Gauge getIndicator()
Overrides:
getIndicator in class javax.microedition.lcdui.Alert

getString

public java.lang.String getString()
Overrides:
getString in class javax.microedition.lcdui.Alert

getTicker

public javax.microedition.lcdui.Ticker getTicker()
Overrides:
getTicker in class javax.microedition.lcdui.Displayable

getTimeout

public int getTimeout()
Overrides:
getTimeout in class javax.microedition.lcdui.Alert

getTitle

public java.lang.String getTitle()
Overrides:
getTitle in class javax.microedition.lcdui.Displayable

getType

public javax.microedition.lcdui.AlertType getType()
Overrides:
getType in class javax.microedition.lcdui.Alert

getWidth

public int getWidth()
Overrides:
getWidth in class javax.microedition.lcdui.Displayable

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

setCommandListener

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

setImage

public void setImage(javax.microedition.lcdui.Image arg0)
Overrides:
setImage in class javax.microedition.lcdui.Alert

setIndicator

public void setIndicator(javax.microedition.lcdui.Gauge arg0)
Overrides:
setIndicator in class javax.microedition.lcdui.Alert

setString

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

setTicker

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

setTimeout

public void setTimeout(int arg0)
Overrides:
setTimeout in class javax.microedition.lcdui.Alert

setTitle

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

setType

public void setType(javax.microedition.lcdui.AlertType arg0)
Overrides:
setType in class javax.microedition.lcdui.Alert

sizeChanged

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