FileDocCategorySizeDatePackage
AutoMIDlet.javaAPI DocphoneME MR2 API (J2ME)3702Wed May 02 18:00:08 BST 2007com.sun.midp.automation

AutoMIDlet

public interface AutoMIDlet
Represents MIDlet in launched state.

Fields Summary
Constructors Summary
Methods Summary
public AutoEventQueuegetEventQueue()
Gets MIDlet's event queue.

return
AutoEventQueue representing event queue.

public AutoMIDletForegroundStategetForegroundState()
Gets current foreground state.

return
AutoForegroundState representing current foreground state

public AutoMIDletLifeCycleStategetLifeCycleState()
Gets current lifecycle state.

return
AutoLifeCycleState representing current lifecycle state

public AutoMIDletDescriptorgetMIDletDescriptor()
Gets MIDlet's descriptor.

return
AutoMIDletDescriptor representing descriptor.

public voidswitchTo(AutoMIDletLifeCycleState state, boolean wait)
Initiates a switch (transition) from current to specified lifecycle state.

param
state state to switch to
param
wait if true, wait (block) until transition to the specified state has been completed
throws
IllegalStateException thrown when switching to specified state is invalid

public voidswitchTo(AutoMIDletForegroundState state, boolean wait)
Initiates a switch (transition) from current to specified foreground state.

param
state state to switch to
param
wait if true, wait (block) until transition to the specified state has been completed
throws
IllegalStateException thrown when switching to specified state is invalid

public voidwaitFor(AutoMIDletLifeCycleState state)
Waits (blocks) until MIDlet reaches specified lifecycle state.

param
state state to wait for
throws
IlegalStateException thrown if state to wait for is invalid, or if during waiting MIDlet has reached the state where waiting for specified state is no longer valid

public voidwaitFor(AutoMIDletForegroundState state)
Waits (blocks) until MIDlet reaches specified foreground state.

param
state state to wait for
throws
IlegalStateException thrown if state to wait for is invalid, or if during waiting MIDlet has reached the state where waiting for specified state is no longer valid