checkboxmenuitem.c File Reference

Implementation of the CheckBoxMenuItem functions. More...

#include "checkboxmenuitem.h"
#include "component.h"

Include dependency graph for checkboxmenuitem.c:

Go to the source code of this file.

Functions

ItemListener addCheckBoxMenuItemItemListener (CheckBoxMenuItem *checkboxmenuitem, void(*func)(Component, jboolean, const char *))
 Adds an ItemListener for the CheckBoxMenuItem to call back the specified function.
void createCheckBoxMenuItem_ (CheckBoxMenuItem *checkboxmenuitem)
 Creates the CheckBoxMenuItem by getting the Java CheckBoxMenuItem-Class, the method ids and createing a new Java CheckBoxMenuItem-Object.
void createCheckBoxMenuItemC (CheckBoxMenuItem_ *checkboxmenuitem)
 Function is called when working with C and calling the function createCheckBoxMenuItem.
void createCheckBoxMenuItemCPP (CheckBoxMenuItemCPP_ *checkboxmenuitem)
 Function is called when working with C++ and calling the function createCheckBoxMenuItem.
void deleteCheckBoxMenuItem_ (CheckBoxMenuItem *checkboxmenuitem)
 Deletes the CheckBoxMenuItem by deleting the global references.
void deleteCheckBoxMenuItemC (CheckBoxMenuItem_ *checkboxmenuitem)
 Function is called when working with C and calling the function deleteCheckBoxMenuItem.
void deleteCheckBoxMenuItemCPP (CheckBoxMenuItemCPP_ *checkboxmenuitem)
 Function is called when working with C++ and calling the function deleteCheckBoxMenuItem.
char * getCheckBoxMenuItemLabel (CheckBoxMenuItem *checkboxmenuitem)
 Gets the label of the CheckBoxMenuItem.
jobject getCheckBoxMenuItemObject (CheckBoxMenuItem *checkboxmenuitem)
 Gets the reference to the java checkboxmenuitem object.
jboolean getCheckBoxMenuItemState (CheckBoxMenuItem *checkboxmenuitem)
 Gets the checked status of the CheckBoxMenuItem.
void initCheckBoxMenuItem_ (CheckBoxMenuItem_ *checkboxmenuitem)
 Initializes the CheckBoxMenuItem_ structure by setting the function pointers.
jboolean isCheckBoxMenuItemEnabled (CheckBoxMenuItem *checkboxmenuitem)
 Gets the enabled status of the CheckBoxMenuItem.
void removeCheckBoxMenuItemItemListener (CheckBoxMenuItem *checkboxmenuitem, ItemListener il)
 Removes an ItemListener from the CheckBoxMenuItem and deletes the global reference to the ItemListener.
void setCheckBoxMenuItemEnabled (CheckBoxMenuItem *checkboxmenuitem, jboolean enable)
 Sets the enabled status of the CheckBoxMenuItem.
void setCheckBoxMenuItemLabel (CheckBoxMenuItem *checkboxmenuitem, const char *label)
 Sets the label of the CheckBoxMenuItem.
void setCheckBoxMenuItemState (CheckBoxMenuItem *checkboxmenuitem, jboolean state)
 Sets the checked status of the CheckBoxMenuItem.


Detailed Description

Implementation of the CheckBoxMenuItem functions.

A CheckboxMenuItem is a Checkbox which can be included into a menu.

Author:
Stefan Gruber
Date:
01.02.2005

Definition in file checkboxmenuitem.c.


Function Documentation

ItemListener addCheckBoxMenuItemItemListener CheckBoxMenuItem checkboxmenuitem,
void(*)(Component, jboolean, const char *)  func
 

Adds an ItemListener for the CheckBoxMenuItem to call back the specified function.

For more information see: addItemListener

Parameters:
checkboxmenuitem - The CheckBoxMenuItem to add the listener to.
func - The function to call back.
Returns:
the created ItemListener object.
See also:
removeCheckBoxMenuItemItemListener(CheckBoxMenuItem* checkboxmenuitem, ItemListener il)

Definition at line 119 of file checkboxmenuitem.c.

void createCheckBoxMenuItem_ CheckBoxMenuItem checkboxmenuitem  ) 
 

Creates the CheckBoxMenuItem by getting the Java CheckBoxMenuItem-Class, the method ids and createing a new Java CheckBoxMenuItem-Object.

Parameters:
checkboxmenuitem - The CheckBoxMenuItem to create.

Definition at line 159 of file checkboxmenuitem.c.

void createCheckBoxMenuItemC CheckBoxMenuItem_ checkboxmenuitem  ) 
 

Function is called when working with C and calling the function createCheckBoxMenuItem.

It initializes the CheckBoxMenuItem_ structure.

Parameters:
checkboxmenuitem - A pointer to a CheckBoxMenuItem_ structure.

Definition at line 189 of file checkboxmenuitem.c.

void createCheckBoxMenuItemCPP CheckBoxMenuItemCPP_ checkboxmenuitem  ) 
 

Function is called when working with C++ and calling the function createCheckBoxMenuItem.

It initializes the CheckBoxMenuItemCPP_ structure.

Parameters:
checkboxmenuitem - A pointer to a CheckBoxMenuItemCPP_ structure.

Definition at line 177 of file checkboxmenuitem.c.

void deleteCheckBoxMenuItem_ CheckBoxMenuItem checkboxmenuitem  ) 
 

Deletes the CheckBoxMenuItem by deleting the global references.

Parameters:
checkboxmenuitem - A pointer to a checkboxmenuitem.

Definition at line 199 of file checkboxmenuitem.c.

void deleteCheckBoxMenuItemC CheckBoxMenuItem_ checkboxmenuitem  ) 
 

Function is called when working with C and calling the function deleteCheckBoxMenuItem.

Parameters:
checkboxmenuitem - A pointer to a CheckBoxMenuItem_ structure.

Definition at line 219 of file checkboxmenuitem.c.

void deleteCheckBoxMenuItemCPP CheckBoxMenuItemCPP_ checkboxmenuitem  ) 
 

Function is called when working with C++ and calling the function deleteCheckBoxMenuItem.

Parameters:
checkboxmenuitem - A pointer to a CheckBoxMenuItemCPP_ structure.

Definition at line 209 of file checkboxmenuitem.c.

char* getCheckBoxMenuItemLabel CheckBoxMenuItem checkboxmenuitem  ) 
 

Gets the label of the CheckBoxMenuItem.

Parameters:
checkboxmenuitem - Pointer to the checkboxmenuitem.
See also:
setCheckBoxMenuItemLabel(CheckBoxMenuItem* checkboxmenuitem, const char* label)

Definition at line 49 of file checkboxmenuitem.c.

jobject getCheckBoxMenuItemObject CheckBoxMenuItem checkboxmenuitem  ) 
 

Gets the reference to the java checkboxmenuitem object.

Parameters:
checkboxmenuitem - Pointer to the checkboxmenuitem.
Returns:
the checkboxmenuitem object reference.

Definition at line 24 of file checkboxmenuitem.c.

jboolean getCheckBoxMenuItemState CheckBoxMenuItem checkboxmenuitem  ) 
 

Gets the checked status of the CheckBoxMenuItem.

Parameters:
checkboxmenuitem - Pointer to the checkboxmenuitem.
Returns:
JNI_TRUE if it is checked, otherwise JNI_FALSE.
See also:
setCheckBoxMenuItemState(CheckBoxMenuItem* checkboxmenuitem, jboolean state)

Definition at line 104 of file checkboxmenuitem.c.

void initCheckBoxMenuItem_ CheckBoxMenuItem_ checkboxmenuitem  ) 
 

Initializes the CheckBoxMenuItem_ structure by setting the function pointers.

Parameters:
checkboxmenuitem - A pointer to a CheckBoxMenuItem_ structure.

Definition at line 141 of file checkboxmenuitem.c.

jboolean isCheckBoxMenuItemEnabled CheckBoxMenuItem checkboxmenuitem  ) 
 

Gets the enabled status of the CheckBoxMenuItem.

Parameters:
checkboxmenuitem - Pointer to the checkboxmenuitem.
Returns:
JNI_TRUE if it is enabled, otherwise JNI_FALSE.
See also:
setCheckBoxMenuItemEnabled(CheckBoxMenuItem* checkboxmenuitem, jboolean enable)

Definition at line 79 of file checkboxmenuitem.c.

void removeCheckBoxMenuItemItemListener CheckBoxMenuItem checkboxmenuitem,
ItemListener  il
 

Removes an ItemListener from the CheckBoxMenuItem and deletes the global reference to the ItemListener.

Parameters:
checkboxmenuitem - The CheckBoxMenuItem to remove the listener from.
il - The ItemListener to remove.
See also:
addCheckBoxMenuItemItemListener(CheckBoxMenuItem* checkboxmenuitem, void (*func)(Component, jboolean, const char*))

Definition at line 132 of file checkboxmenuitem.c.

void setCheckBoxMenuItemEnabled CheckBoxMenuItem checkboxmenuitem,
jboolean  enable
 

Sets the enabled status of the CheckBoxMenuItem.

Parameters:
checkboxmenuitem - Pointer to the checkboxmenuitem.
enable - The status to set.
See also:
isCheckBoxMenuItemEnabled(CheckBoxMenuItem* checkboxmenuitem)

Definition at line 66 of file checkboxmenuitem.c.

void setCheckBoxMenuItemLabel CheckBoxMenuItem checkboxmenuitem,
const char *  label
 

Sets the label of the CheckBoxMenuItem.

Parameters:
checkboxmenuitem - Pointer to the checkboxmenuitem.
label - The label to set.
See also:
getCheckBoxMenuItemLabel(CheckBoxMenuItem* checkboxmenuitem)

Definition at line 36 of file checkboxmenuitem.c.

void setCheckBoxMenuItemState CheckBoxMenuItem checkboxmenuitem,
jboolean  state
 

Sets the checked status of the CheckBoxMenuItem.

Parameters:
checkboxmenuitem - Pointer to the checkboxmenuitem.
state - The state to set.
See also:
getCheckBoxMenuItemState(CheckBoxMenuItem* checkboxmenuitem)

Definition at line 91 of file checkboxmenuitem.c.


Generated on Sat Nov 19 14:11:12 2005 for GrubC by  doxygen 1.4.4