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)); }
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)); }
private void setProfile(final ProfileValueObjectGwt _profile) { _profile.setBirthDate(GwtDateUtil.getLocalDate(_profile.getBirthDate())); m_profile = _profile; }