|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hdtourist.view.utils.IProgress
org.hdtourist.view.utils.NotificationProgress
public class NotificationProgress
The Class NotificationProgress.
Field Summary | |
---|---|
private android.content.Context |
contexto
The contexto. |
private int |
ID
The id. |
private android.support.v4.app.NotificationCompat.Builder |
mBuilder
The m builder. |
private android.app.NotificationManager |
mNotifyManager
The m notify manager. |
private long |
notificacionAnterior
The notificacion anterior. |
static int |
NOTIFICATION_MAPAS_ID
La constante NOTIFICATION_MAPAS_ID. |
static int |
NOTIFICATION_SEG
La constante NOTIFICATION_SEG. |
private int |
numProcesos
The num procesos. |
private int |
numProcesosPendientes
The num procesos pendientes. |
private java.lang.String |
textoDelProgreso
The texto del progreso. |
Constructor Summary | |
---|---|
NotificationProgress(android.content.Intent intent,
int id,
java.lang.String title)
Instantiates a new notification progress. |
|
NotificationProgress(int id,
java.lang.String title)
Instantiates a new notification progress. |
Method Summary | |
---|---|
void |
forzarNotificacion()
Fuerza la notificación, no hacer muchas llamadas seguidas a este método ya que se puede bloquear el terminal. |
int |
getNumProcesos()
Gets the num procesos. |
protected int |
getNumProcesosPendientes()
Gets the num procesos pendientes. |
boolean |
isShowing()
Checks if is showing. |
void |
notifica()
Actualiza la notificación, solo si han pasado NOTIFICACION_SEG segundos (para que nose bloquee). |
private void |
reset()
Reset. |
void |
setErrorProceso()
Fija el error proceso. |
void |
setFinProceso()
Fija el fin proceso. |
void |
setIcono(int id)
Sets the icono. |
void |
setId(int ID)
Sets the id. |
void |
setInicioProceso()
Fija el inicio proceso. |
void |
setNumProcesos(int numProcesos)
Sets the num procesos. |
void |
setProgresoProceso(int progresoActual)
Sets the progreso proceso. |
void |
setTexto(java.lang.String texto)
Sets the texto. |
void |
setTitulo(java.lang.String title)
Sets the titulo. |
Methods inherited from class org.hdtourist.view.utils.IProgress |
---|
calcularProgreso |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NOTIFICATION_MAPAS_ID
public static final int NOTIFICATION_SEG
private android.content.Context contexto
private int ID
private android.support.v4.app.NotificationCompat.Builder mBuilder
private android.app.NotificationManager mNotifyManager
private long notificacionAnterior
private int numProcesos
private int numProcesosPendientes
private java.lang.String textoDelProgreso
Constructor Detail |
---|
public NotificationProgress(int id, java.lang.String title)
id
- the idtitle
- the titlepublic NotificationProgress(android.content.Intent intent, int id, java.lang.String title)
intent
- the intentid
- the idtitle
- the titleMethod Detail |
---|
public void forzarNotificacion()
forzarNotificacion
in class IProgress
public int getNumProcesos()
getNumProcesos
in class IProgress
public boolean isShowing()
IProgress
isShowing
in class IProgress
public void notifica()
notifica
in class IProgress
public void setErrorProceso()
IProgress
setErrorProceso
in class IProgress
public void setFinProceso()
IProgress
setFinProceso
in class IProgress
public void setIcono(int id)
IProgress
setIcono
in class IProgress
id
- the new iconopublic void setId(int ID)
IProgress
setId
in class IProgress
ID
- the new idpublic void setInicioProceso()
IProgress
setInicioProceso
in class IProgress
public void setNumProcesos(int numProcesos)
setNumProcesos
in class IProgress
numProcesos
- el número de procesos totales que se van a ejecutarpublic void setProgresoProceso(int progresoActual)
IProgress
setProgresoProceso
in class IProgress
progresoActual
- the new progreso procesopublic void setTexto(java.lang.String texto)
IProgress
setTexto
in class IProgress
texto
- the new textopublic void setTitulo(java.lang.String title)
IProgress
setTitulo
in class IProgress
title
- the new tituloprivate void reset()
protected int getNumProcesosPendientes()
IProgress
getNumProcesosPendientes
in class IProgress
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |