|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproyecto.utilidades.Mensajes
public class Mensajes
Mensajes.
Clase que gestiona los eventos de mensajes de nuestra aplicación. Cualquier tipo de mensaje que necesitamos (Información, Error, Información con detalle ..etc.) seríalizado desde esta clase.
JOptionPane
Field Summary | |
---|---|
static int |
ABORTAR_REINTENTAR_IGNORAR
Tipo usado para mostrar los botones ABORTAR,REINTENTAR y IGNORAR. |
protected static String[] |
ABORTAR_REINTENTAR_IGNORAR_TXT
Contiene el texto para los botones ABORTAR, REINTENTAR y IGNORAR. |
static int |
ACEPTAR
Tipo usado para mostrar según el botón ACEPTAR. |
static int |
ACEPTAR_CANCELAR
Tipo usado para mostrar los botones ACEPTAR y CANCELAR. |
protected static String[] |
ACEPTAR_CANCELAR_TXT
Contiene el texto para los botones ACEPTAR y CANCELAR. |
static int |
ACEPTAR_DETALLES
Tipo usado para mostrar los botones ACEPTAR y DETALLES. |
protected static String[] |
ACEPTAR_DETALLES_TXT
Contiene el texto para los botones ACEPTAR y DETALLES. |
protected static String[] |
ACEPTAR_TXT
Contiene el texto para el botón ACEPTAR. |
static int |
ALERTA
Tipo usado para mostrar un icono de ALERTA . |
static int |
INFORMACION
Tipo usado para mostrar un icono de INFORMACION. |
protected static String[] |
MENSAJE_SALIR_APLICACION
Texto para el mensaje de abandonar la aplicación (error FATAL). |
static int |
PREGUNTA
Tipo usado para mostrar un icono de PREGUNTA. |
static int |
REINTENTAR_CANCELAR
Tipo usado para mostrar los botones REINTENTAR y CANCELAR. |
protected static String[] |
REINTENTAR_CANCELAR_TXT
Contiene el texto para los botones REINTENTAR y CANCELAR. |
static int |
SI_NO
Tipo usado para mostrar los botones SI,NO. |
static int |
SI_NO_CANCELAR
Tipo usado para mostrar los botones SI,NO y CANCELAR. |
protected static String[] |
SI_NO_CANCELAR_TXT
Contiene el texto para los botones SI,NO y CANCELAR. |
protected static String[] |
SI_NO_TXT
Contiene el texto para los botones SI,NO. |
static int |
SIMPLE
Tipo usado para no mostrar icono. |
static int |
STOP
Tipo usado para mostrar un icono de ERROR. |
protected static String[] |
TITULO_ATENCION
Texto para el título del mensaje Atención. |
protected static String[] |
TITULO_ERROR
Texto para el título del mensaje Error. |
protected static String[] |
TITULO_INFORMACION
Texto para el título del mensaje Información. |
protected static String[] |
TITULO_PREGUNTA
Texto para el título del mensaje Pregunta. |
protected static boolean |
variableCargada
Indica si estan cargadas las var. estéticas de la clase. |
Constructor Summary | |
---|---|
Mensajes()
|
Method Summary | |
---|---|
protected static String[] |
cargarConstantes(int aiBoton)
Cargar constantes. |
static String |
entradaMensaje(String asTitulo,
String asMensaje,
int aiIcono)
Muestra la ventana con un input para introducir datos. |
static void |
main(String[] args)
Main para pruebas. |
static int |
mensajeAtencion(String asMensaje)
Muestra un mensaje con el título "Atención" y con el icono de "!". |
static int |
mensajeDetalles(String asMensaje,
Throwable athExcepcion)
Muestra un mensaje con el título "Error" y con el icono de "Stop" y dos botones: "Aceptar" y "Detalles". |
static int |
mensajeDetalles(String asMensaje,
Throwable athExcepcion,
int aiBotonDefecto)
Muestra un mensaje con el título "Error" y con el icono de "Stop" y dos botones: "Aceptar" y "Detalles". |
static int |
mensajeError(String asMensaje)
Muestra un mensaje con el título "Error" y con el icono de "Stop". |
static int |
mensajeInfo(String asMensaje)
Muestra un mensaje con el título "Información" y con el icono de "i". |
static int |
mensajePregunta(String asMensaje,
int aiBoton)
Muestra un mensaje con el título "Pregunta" y con el icono de "?". |
static int |
mensajePregunta(String asMensaje,
int aiBoton,
int aiBotonDefecto)
Muestra un mensaje con el título "Pregunta" y con el icono de "?". |
static int |
muestraMensaje(String asTitulo,
String asMensaje)
Muestra un mensaje con un icono de INFORMACION y un botón ACEPTAR. |
static int |
muestraMensaje(String asTitulo,
String asMensaje,
int aiIcono)
Muestra un mensaje con un botón ACEPTAR. |
static int |
muestraMensaje(String asTitulo,
String asMensaje,
int aiIcono,
int aiBoton)
Muestra un mensaje especificando todos los parámetros. |
static int |
muestraMensaje(String asTitulo,
String asMensaje,
int aiIcono,
int aiBoton,
int aiBotonDefecto)
Muestra un mensaje especificando todos los parámetros. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SI_NO
public static final int SI_NO_CANCELAR
public static final int ACEPTAR_CANCELAR
public static final int ACEPTAR
public static final int REINTENTAR_CANCELAR
public static final int ABORTAR_REINTENTAR_IGNORAR
public static final int ACEPTAR_DETALLES
protected static final String[] SI_NO_TXT
protected static final String[] SI_NO_CANCELAR_TXT
protected static final String[] ACEPTAR_CANCELAR_TXT
protected static final String[] ACEPTAR_TXT
protected static final String[] REINTENTAR_CANCELAR_TXT
protected static final String[] ABORTAR_REINTENTAR_IGNORAR_TXT
protected static final String[] ACEPTAR_DETALLES_TXT
protected static final String[] TITULO_ERROR
protected static final String[] TITULO_INFORMACION
protected static final String[] TITULO_PREGUNTA
protected static final String[] TITULO_ATENCION
protected static final String[] MENSAJE_SALIR_APLICACION
public static final int STOP
public static final int INFORMACION
public static final int ALERTA
public static final int PREGUNTA
public static final int SIMPLE
protected static boolean variableCargada
Constructor Detail |
---|
public Mensajes()
Method Detail |
---|
protected static String[] cargarConstantes(int aiBoton)
aiBoton
- the ai boton
public static int muestraMensaje(String asTitulo, String asMensaje)
asTitulo
- the as tituloasMensaje
- the as mensaje
public static int muestraMensaje(String asTitulo, String asMensaje, int aiIcono)
asTitulo
- the as tituloasMensaje
- the as mensajeaiIcono
- the ai icono
public static String entradaMensaje(String asTitulo, String asMensaje, int aiIcono)
asTitulo
- the as tituloasMensaje
- the as mensajeaiIcono
- the ai icono
public static int muestraMensaje(String asTitulo, String asMensaje, int aiIcono, int aiBoton)
asTitulo
- the as tituloasMensaje
- the as mensajeaiIcono
- the ai iconoaiBoton
- the ai boton
public static int muestraMensaje(String asTitulo, String asMensaje, int aiIcono, int aiBoton, int aiBotonDefecto)
asTitulo
- asMensaje
- aiIcono
- aiBoton
- aiBotonDefecto
- Boton por defecto en el mensaje
SI_NO_CANCELAR,ACEPTAR_CANCELAR, ACEPTAR,REINTENTAR_CANCELAR,
ABORTAR_REINTENTAR_IGNORAR
public static int mensajeError(String asMensaje)
asMensaje
- Mensaje a mostrar
public static int mensajeInfo(String asMensaje)
asMensaje
- Mensaje a mostrar
public static int mensajePregunta(String asMensaje, int aiBoton)
asMensaje
- Mensaje a mostraraiBoton
- Los botones que se quieren mostrar (ver constantes)
public static int mensajePregunta(String asMensaje, int aiBoton, int aiBotonDefecto)
asMensaje
- Mensaje a mostraraiBoton
- Los botones que se quieren mostrar (ver constantes)aiBotonDefecto
- indica el botón que tiene el foco por defecto
public static int mensajeAtencion(String asMensaje)
asMensaje
- Mensaje a mostrar
public static int mensajeDetalles(String asMensaje, Throwable athExcepcion)
asMensaje
- Mensaje a mostrarathExcepcion
- La excepcion cuyo mensaje se quiere mostrar
public static int mensajeDetalles(String asMensaje, Throwable athExcepcion, int aiBotonDefecto)
asMensaje
- Mensaje a mostrarathExcepcion
- La excepcion cuyo mensaje se quiere mostraraiBotonDefecto
- indica el boton por defecto del mensaje.
public static void main(String[] args)
args
- Argumentos de entrada
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |