|
Page 5 of 12
StringItem is a high-level user interface component. It is used to display a string or pair of strings on a Form. A user cannot modify the value displayed by a StringItem. It defines the following constructor: public StringItem(String Label, String Text) Here, the Label parameter defines... [read more..]
The compare() method is a method of the RecordComparator interface. It is used to compare two values in a record store for sorting. The general syntax of this method is as follows: public int compare(byte[] rec1, byte[] rec2) Here, the rec1 parameter denotes the value of the first record... [read more..]
The setString() method is a method of the Ticker class. It defines a text to be displayed by a given Ticker instance. The general syntax of this method is as follows: public void setString(String str) Here, the str parameter defines the text to be displayed. [read more..]
The setTicker() method is a method of the Screen class. It is used to associate a Ticker with an instance of a Screen object. The general syntax of this method is as follows: public void setTicker(Ticker tick) Here, tick is the instance of the Ticker class. For example, the syntax... [read more..]
The setTitle() method is a method of the Displayable class. It is used to change a string associated with a given TextBox. The general syntax of this method is as follows: public void setTitle(String str) Here, the str parameter defines the caption or label to be displayed with a given... [read more..]
The getProperty() method is a method of the System class. It is used to extract system properties. The general syntax of this method is as follows: public static String getProperty(String key) Here, the key parameter specifies one of the following system properties: microedition.profile... [read more..]
The itemStateChanged() method is a method of the ItemListener interface. It is called in the application when a user selects or deselects an item on the screen. It contains the code to be executed when a user performs a selection or deselection action. The general syntax of this method is as... [read more..]
Over- the- air provisioning is a mechanism to deploy MIDlet suites over a network. It is a method of distributing MIDlet suites. MIDlet suite providers install their MIDlet suites on Web servers and provide a hypertext link for downloading. A user can use this link to download the MIDlet suite... [read more..]
The setMode() method is a method of the RecordStore class. The general syntax of this method is as follows: public void setMode(int mode, boolean b) Here, the mode parameter defines the author mode for a specified record store. It can have one of the following two values:... [read more..]
The getRecord() method is a method of the RecordStore class. It returns a copy of the specified record. The general syntax of this method is as follows: public byte[] getRecord(int recordid) Here, the recordid parameter specifies ID (unique number) of the record to be extracted. It... [read more..]
|