Controles
Nota: la mayoría de los métodos esenciales se han especificado en la Choice de la interfaz.
Since:Desde:
MIDP 1.0 MIDP 1.0
CONSTRUCTOR |
ChoiceGroup ( String label, int choiceType) | Crea un nuevo vacío ChoiceGroup, especificando el título y el tipo. |
ChoiceGroup ( String label, int choiceType,String [] stringElements, Image [] ImageElements)
Creates a new ChoiceGroup , specifying its title, the type of the ChoiceGroup , and an array of Strings and Images to be used as its initial contents. | Crea un nuevo ChoiceGroup , especificando el título, el tipo de ChoiceGroup , y una serie de Strings y de Images para ser utilizado como su contenido inicial. |
MÉTODOS:
int | append ( StringstringPart, Image imagePart)
Appends an element to the ChoiceGroup . Añade un elemento a la ChoiceGroup . |
void | delete (int elementNum)
Deletes the element referenced by elementNum . Elimina el elemento de referencia elementNum . |
void | deleteAll ()
Deletes all elements from this ChoiceGroup . Elimina todos los elementos de esta ChoiceGroup . |
int | getFitPolicy ()
Gets theapplication's preferred policy for fitting Choice element contents to the available screen space. Obtiene política preferida de la aplicación para el montaje Choice contenido del elemento en el espacio disponible en pantalla. |
Font | getFont (int elementNum)
Gets the application's preferred font for rendering the specified element of this Choice . Obtiene la fuente preferida de laaplicación para representar el elemento específico de esta Choice . |
Image | getImage (int elementNum)
Gets the Image part of the element referenced by elementNum . Obtiene la Image parte del elemento de referencia elementNum . |
int | getSelectedFlags (boolean[] selectedArray_return)
Queries the state of a ChoiceGroup and returns the state of all elements in the boolean arrayselectedArray_return . Consulta el estado de un ChoiceGroup y devuelve el estado de todos los elementos de la matriz booleana selectedArray_return . |
int | getSelectedIndex ()
Returns the index number of an element in the ChoiceGroup that is selected. Devuelve el número de índice de un elemento en el ChoiceGroup que se seleccione. |
String | getString (int elementNum)
Gets the String part of theelement referenced by elementNum . Obtiene la String parte del elemento de referencia elementNum . |
void | insert (int elementNum, String stringPart, Image imagePart)
Inserts an element into the ChoiceGroup just prior to the element specified. Inserta un elemento en la ChoiceGroup justo antes del elemento especificado. |
boolean | isSelected (int elementNum)
Gets a boolean valueindicating whether this element is selected. Obtiene un valor booleano que indica si este elemento está seleccionado. |
void | set (int elementNum, String stringPart, Image imagePart)
Sets the String and Image parts of the element referenced by elementNum , replacing the previous contents of the element. Establece la String y Image partes del elemento de referencia elementNum , sustituyendo el...
Regístrate para leer el documento completo.