|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectmanagers.GeneralManager
public class GeneralManager
Delivers general MIDlet functionality.
| Method Summary | |
|---|---|
Screen |
getCurrent()
Returns the MIDlet's current Screen object. |
Integer |
getHeight()
Gets height of the displayable area in pixels. |
String |
getPlatformName()
Returns System.getProperty("microedition.platform"). |
Integer |
getRandomNumber()
Generates the pseudorandom number. |
Long |
getTimestamp()
Returns the current time in milliseconds. |
Integer |
getWidth()
Gets width of the displayable area in pixels. |
Boolean |
isColor()
Gets information about color support of the device. |
Boolean |
isMemoryAvailable(Number sizeRequired)
Checks wheather the specified amount of memory is available. |
Boolean |
isStorageSpaceAvailable(Number sizeRequired)
Checks wheather the specified amount of storage space is available. |
Integer |
numColors()
Gets the number of colors (if isColor() is true) or
graylevels (if isColor() is false) that can be
represented on the device. |
void |
quit()
Quits the MIDlet. |
void |
restart()
Restarts the MIDlet. |
void |
setCurrent(Alert alert,
Screen screen)
Requests that this Alert be made current, and that Screen be made current after the Alert is dismissed. |
void |
setCurrent(Screen screen)
Requests that a different Screen object be made visible on the display. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Screen getCurrent()
MIDP1 Display
<blue:call manager="GeneralManager" method="getCurrent"
toVariable="form"
castTo="com/emarson/lemonade/bluelemon/midp1/Form"/>
public Integer getHeight()
<blue:call manager="GeneralManager"
method="getHeight" toVariable="height"/>
public String getPlatformName()
<blue:call manager="GeneralManager" method="getPlatformName"
toVariable="platformName">
public Integer getRandomNumber()
Random
<blue:call manager="GeneralManager" method="getRandomNumber"
toVariable="number"/>
public Long getTimestamp()
<blue:call manager="GeneralManager"
method="getTimestamp" toVariable="timestamp"/>
public Integer getWidth()
<blue:call manager="GeneralManager"
method="getWidth" toVariable="width"/>
public Boolean isColor()
true if the display supports color,
false otherwise.
<blue:call manager="GeneralManager"
method="isColor" toVariable="isColor"/>
public Boolean isMemoryAvailable(Number sizeRequired)
sizeRequired - the memory size (in bytes) that needs
to be allocated
true if that amount of memory is
available, false otherwise.
<blue:call manager="GeneralManager"
method="isMemoryAvailable"
toVariable="are2kBsAvailable">
<blue:argument type="int" name="2048"/>
</blue:call>
public Boolean isStorageSpaceAvailable(Number sizeRequired)
sizeRequired - the storage space size (in bytes) that needs
to be allocated
true if that amount of storage space is
available, false otherwise.
<blue:call manager="GeneralManager"
method="isStorageSpaceAvailable"
toVariable="are2kBsAvailable">
<blue:argument type="int" name="2048"/>
</blue:call>
public Integer numColors()
isColor() is true) or
graylevels (if isColor() is false) that can be
represented on the device.
<blue:call manager="GeneralManager"
method="numColors" toVariable="numColors"/>
public void quit()
alert - the alert to be shownscreen - the Screen requested to be made currentMIDP1 Display<blue:call manager="GeneralManager" method="quit"/>
public void restart()
<blue:call manager="GeneralManager" method="restart"/>
public void setCurrent(Alert alert,
Screen screen)
alert - the alert to be shownscreen - the Screen requested to be made currentMIDP1 Display
<blue:call manager="GeneralManager" method="setCurrent">
<blue:argument type="variable" name="alert"/>
<blue:argument type="variable" name="form"/>
</blue:call>
public void setCurrent(Screen screen)
screen - the Screen requested to be made currentMIDP1 Display
<blue:call manager="GeneralManager" method="setCurrent">
<blue:argument type="variable" name="form"/>
</blue:call>
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||