Ejemplo n.º 1
0
    private void onLoadShoesSuccess(Collection<ShoeValueObjectGwt> _shoes) {
      m_shoes.clear();

      for (ShoeValueObjectGwt shoe : _shoes) {
        shoe.setStartDate(GwtDateUtil.getLocalDate(shoe.getStartDate()));
        m_shoes.add(shoe);
      }

      Collections.sort(m_shoes, m_shoeSorter);

      m_handlerManager.fireEvent(new DataChangedEvent(ChangedData.Shoe, DataAction.Load));
    }
Ejemplo n.º 2
0
    private void onLoadWorkoutsSuccess(WorkoutSummaryValueObjectGwt _summary) {
      m_workoutSummary = _summary;

      m_workouts.clear();

      for (WorkoutValueObjectGwt workout : _summary.getRecentWorkouts()) {
        workout.setDate(GwtDateUtil.getLocalDate(workout.getDate()));
        m_workouts.add(workout);
      }

      Collections.sort(m_workouts, m_workoutSorter);

      m_handlerManager.fireEvent(new DataChangedEvent(ChangedData.Workout, DataAction.Load));
    }
Ejemplo n.º 3
0
 private void setProfile(final ProfileValueObjectGwt _profile) {
   _profile.setBirthDate(GwtDateUtil.getLocalDate(_profile.getBirthDate()));
   m_profile = _profile;
 }