#include "choice.h"
#include "component.h"
Include dependency graph for choice.c:
Go to the source code of this file.
Functions | |
void | addChoiceItem (Choice *choice, const char *item) |
Adds an item to the Choice. | |
ItemListener | addChoiceItemListener (Choice *choice, void(*func)(Component, jboolean, const char *)) |
Adds an ItemListener for the Choice to call back the specified function. | |
void | createChoice_ (Choice *choice) |
Creates the Choice by getting the Java Choice-Class, the method ids and createing a new Java Choice-Object. | |
void | createChoiceC (Choice_ *choice) |
Function is called when working with C and calling the function createChoice. | |
void | createChoiceCPP (ChoiceCPP_ *choice) |
Function is called when working with C++ and calling the function createChoice. | |
void | deleteChoice_ (Choice *choice) |
Deletes the Choice by deleting the global references. | |
void | deleteChoiceC (Choice_ *choice) |
Function is called when working with C and calling the function deleteChoice. | |
void | deleteChoiceCPP (ChoiceCPP_ *choice) |
Function is called when working with C++ and calling the function deleteChoice. | |
jint | getChoiceHeight (Choice *choice) |
Gets the height of the Choice. | |
char * | getChoiceItem (Choice *choice, jint pos) |
Gets the item at the position of the Choice. | |
jint | getChoiceItemCount (Choice *choice) |
Gets the number of items in the Choice. | |
jobject | getChoiceObject (Choice *choice) |
Gets the reference to the java choice object. | |
jint | getChoiceSelectedIndex (Choice *choice) |
Gets index of the selected item in the Choice, if the choice is not in mulpitple mode. | |
jint | getChoiceWidth (Choice *choice) |
Gets the width of the Choice. | |
jint | getChoiceX (Choice *choice) |
Gets the X-Pos of the Choice. | |
jint | getChoiceY (Choice *choice) |
Gets the Y-Pos of the Choice. | |
void | initChoice_ (Choice_ *choice) |
Initializes the Choice_ structure by setting the function pointers. | |
void | removeChoiceAll (Choice *choice) |
Removes the item at the specified position from the Choice. | |
void | removeChoiceItem (Choice *choice, const char *item) |
Removes the first occurence of the item from the Choice. | |
void | removeChoiceItemAtPos (Choice *choice, jint pos) |
Removes the item at the specified position from the Choice. | |
void | removeChoiceItemListener (Choice *choice, ItemListener il) |
Removes an ItemListener from the Choice and deletes the global reference to the ItemListener. | |
void | selectChoiceItem (Choice *choice, jint item) |
Selects the item at the specified position from the Choice. | |
void | setChoiceLocation (Choice *choice, jint x, jint y) |
Sets the location of the Choice. | |
void | setChoiceSize (Choice *choice, jint width, jint height) |
Sets Size of the Choice. |
A Choice represents a popup-menu of values. You can choose only one of these values which will be displayed permanently.
Definition in file choice.c.
|
Adds an item to the Choice.
|
|
Adds an ItemListener for the Choice to call back the specified function. For more information see: addItemListener
|
|
Creates the Choice by getting the Java Choice-Class, the method ids and createing a new Java Choice-Object.
|
|
Function is called when working with C and calling the function createChoice. It initializes the Choice_ structure.
|
|
Function is called when working with C++ and calling the function createChoice. It initializes the ChoiceCPP_ structure.
|
|
Deletes the Choice by deleting the global references.
|
|
Function is called when working with C and calling the function deleteChoice.
|
|
Function is called when working with C++ and calling the function deleteChoice.
|
|
Gets the height of the Choice.
|
|
Gets the item at the position of the Choice.
|
|
Gets the number of items in the Choice.
|
|
Gets the reference to the java choice object.
|
|
Gets index of the selected item in the Choice, if the choice is not in mulpitple mode.
|
|
Gets the width of the Choice.
|
|
Gets the X-Pos of the Choice.
|
|
Gets the Y-Pos of the Choice.
|
|
Initializes the Choice_ structure by setting the function pointers.
|
|
Removes the item at the specified position from the Choice.
|
|
Removes the first occurence of the item from the Choice.
|
|
Removes the item at the specified position from the Choice.
|
|
Removes an ItemListener from the Choice and deletes the global reference to the ItemListener.
|
|
Selects the item at the specified position from the Choice.
|
|
Sets the location of the Choice.
|
|
Sets Size of the Choice.
|