messagebox.h File Reference

Deklares the functions and constants for the messagebox. More...

#include "../jnilib.h"
#include "../awt/frame.h"

Include dependency graph for messagebox.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CLS_MESSAGEBOX   "javax/swing/JOptionPane"
 Defines the full name of the CBWindowListener-Class.
#define MSGBOX_CANCEL   getStaticIntFieldByName(CLS_MESSAGEBOX, "CANCEL_OPTION")
#define MSGBOX_CLOSED   getStaticIntFieldByName(CLS_MESSAGEBOX, "CLOSED_OPTION")
#define MSGBOX_NO   getStaticIntFieldByName(CLS_MESSAGEBOX, "NO_OPTION")
#define MSGBOX_OK   getStaticIntFieldByName(CLS_MESSAGEBOX, "OK_OPTION")
#define MSGBOX_YES   getStaticIntFieldByName(CLS_MESSAGEBOX, "YES_OPTION")

Functions

jint showConfirmDialog (const char *msg)
 Displays a dialog with a message an the buttons "Yes", "No", "Cancel".
char * showInputDialog (const char *msg, const char *defaultValue)
 Displays a dialog which requests user input.
void showMessageDialog (const char *msg)
 Displays a dialog with the message.
jint showModalConfirmDialog (Frame *frame, const char *msg)
 Displays a modal dialog with a message an the buttons "Yes", "No", "Cancel".
char * showModalInputDialog (Frame *frame, const char *msg, const char *defaultValue)
 Displays a modal dialog which requests user input.
void showModalMessageDialog (Frame *frame, const char *msg)
 Displays a modal dialog with the message.


Detailed Description

Deklares the functions and constants for the messagebox.

The Messagebox provides an easy way to interact with an user. You can show the user an information, ask him/her to decide what he/she wants to do or request some input. The Messagebox can be displayed modal on a frame.

Author:
Stefan Gruber
Date:
23.02.2005

Definition in file messagebox.h.


Define Documentation

#define CLS_MESSAGEBOX   "javax/swing/JOptionPane"
 

Defines the full name of the CBWindowListener-Class.

Definition at line 24 of file messagebox.h.

#define MSGBOX_CANCEL   getStaticIntFieldByName(CLS_MESSAGEBOX, "CANCEL_OPTION")
 

Definition at line 29 of file messagebox.h.

#define MSGBOX_CLOSED   getStaticIntFieldByName(CLS_MESSAGEBOX, "CLOSED_OPTION")
 

Definition at line 30 of file messagebox.h.

#define MSGBOX_NO   getStaticIntFieldByName(CLS_MESSAGEBOX, "NO_OPTION")
 

Definition at line 28 of file messagebox.h.

#define MSGBOX_OK   getStaticIntFieldByName(CLS_MESSAGEBOX, "OK_OPTION")
 

Definition at line 26 of file messagebox.h.

#define MSGBOX_YES   getStaticIntFieldByName(CLS_MESSAGEBOX, "YES_OPTION")
 

Definition at line 27 of file messagebox.h.


Function Documentation

jint showConfirmDialog const char *  msg  ) 
 

Displays a dialog with a message an the buttons "Yes", "No", "Cancel".

Parameters:
msg - The message to display.
Returns:
the clicked button (MSGBOX_YES, MSGBOX_NO, MSGBOX_CANCEL, MSGBOX_CLOSED)
See also:
showModalConfirmDialog(Frame* frame, const char* msg)

Definition at line 76 of file messagebox.c.

char* showInputDialog const char *  msg,
const char *  defaultValue
 

Displays a dialog which requests user input.

Parameters:
msg - The message to display.
defaultValue - The default value.
Returns:
the user input.
See also:
showModalInputDialog(Frame* frame, const char* msg, const char* defaultValue)

Definition at line 130 of file messagebox.c.

void showMessageDialog const char *  msg  ) 
 

Displays a dialog with the message.

Parameters:
msg - The message to display.
See also:
showModalMessageDialog(Frame* frame, const char* msg)

Definition at line 169 of file messagebox.c.

jint showModalConfirmDialog Frame frame,
const char *  msg
 

Displays a modal dialog with a message an the buttons "Yes", "No", "Cancel".

Parameters:
frame - A pointer to a frame to which the messagebox belongs.
msg - The message to display.
Returns:
the clicked button (MSGBOX_YES, MSGBOX_NO, MSGBOX_CANCEL, MSGBOX_CLOSED)
See also:
showConfirmDialog(const char* msg)

Definition at line 44 of file messagebox.c.

char* showModalInputDialog Frame frame,
const char *  msg,
const char *  defaultValue
 

Displays a modal dialog which requests user input.

Parameters:
frame - A pointer to a frame to which the messagebox belongs.
msg - The message to display.
defaultValue - The default value.
Returns:
the user input.
See also:
showInputDialog(const char* msg, const char* defaultValue)

Definition at line 91 of file messagebox.c.

void showModalMessageDialog Frame frame,
const char *  msg
 

Displays a modal dialog with the message.

Parameters:
frame - A pointer to a frame to which the messagebox belongs.
msg - The message to display.
See also:
showMessageDialog(const char* msg)

Definition at line 142 of file messagebox.c.


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