ItEr28S06CUAsignacionGrupoRecursosAPlanificacionItEr27S06: Renaming method to show better intent from the point of view of the TimeTracker user

This commit is contained in:
Óscar González Fernández 2009-10-03 17:03:23 +02:00
parent 8f98cb1402
commit a5c8d9d7e7
3 changed files with 6 additions and 6 deletions

View file

@ -129,7 +129,7 @@ public class TimeTracker {
return datesMapper;
}
public void goToNextDetailLevel() {
public void zoomIncrease() {
detailLevel = detailLevel.next();
invalidatingChangeHappened();
}
@ -139,7 +139,7 @@ public class TimeTracker {
fireZoomChanged();
}
public void goToPreviousDetailLvel() {
public void zoomDecrease() {
detailLevel = detailLevel.previous();
invalidatingChangeHappened();
}

View file

@ -131,13 +131,13 @@ public abstract class TimeTrackerComponent extends HtmlMacroComponent {
public void onIncrease(int offset) {
double daysOffset = getDaysFor(offset);
getTimeTracker().goToNextDetailLevel();
getTimeTracker().zoomIncrease();
changeDetailLevel(daysOffset);
}
public void onDecrease(int offset) {
double daysOffset = getDaysFor(offset);
getTimeTracker().goToPreviousDetailLvel();
getTimeTracker().zoomDecrease();
changeDetailLevel(daysOffset);
}

View file

@ -73,11 +73,11 @@ public class AdvancedAllocationController extends GenericForwardComposer
}
public void onClick$zoomIncrease() {
timeTracker.goToNextDetailLevel();
timeTracker.zoomIncrease();
}
public void onClick$zoomDecrease() {
timeTracker.goToPreviousDetailLvel();
timeTracker.zoomDecrease();
}
private ICellForDetailItemRenderer<FakeColumn, FakeDataLeft> getLeftRenderer() {