Controles

Páginas: 11 (2679 palabras) Publicado: 27 de febrero de 2012
CHOICE GROUP: Es un grupo de elementos seleccionables destinados a ser introducidos en un Form . The group may be created with a mode that requires a single choice to be made or that allows multiple choices. El grupo se pueden crear con un modo que requiere una sola opción de hacerse o que permite múltiples opciones. The implementation is responsible for providing the graphical representation ofthese modes and must provide visually different graphics for different modes. La implementación es responsable de proporcionar la representación gráfica de estos modos y debe proporcionar gráficos visualmente diferentes para los distintos modos. For example, it might use "radio buttons" for the single choice mode and "check boxes" for the multiple choice mode. Por ejemplo, podría utilizar"botones" para el modo de elección individual y "casillas" para el modo de opción múltiple.
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...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Control
  • Control
  • Control
  • Control
  • control
  • el control
  • Controladores
  • control

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS