public class ModelHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ONE_HOUR_IN_MIN |
static int |
ONE_MINUTE_IN_MILLI |
| Constructor and Description |
|---|
ModelHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Column[] |
createColumnModel(int nbHours,
Day[] days,
Date currentDate) |
static Date |
getStartingDateFromCurrentDate(Date currentDate,
int nbHours,
int positionCurrentDate)
Calcule la borne inferieure du tableau a afficher, a partir de la date courante, du nombre
d'heures et de la position de la date courante dans le tableau.
|
public static final int ONE_MINUTE_IN_MILLI
public static final int ONE_HOUR_IN_MIN
public static Date getStartingDateFromCurrentDate(Date currentDate, int nbHours, int positionCurrentDate)
currentDate - la date courantenbHours - le nombre d'heure a afficherpositionCurrentDate - la position en pourcentage de l'heure courante a affichernull si la date courante est nulle.Copyright © 2008-2013 Cybelia. All Rights Reserved.