ItEr50S12CUAsignacionGrupoRecursosAPlanificacionItEr49S17: Fixed inconsistence between zoomLevel selected index and advanced assignment table contents

This commit is contained in:
Lorenzo Tilve 2010-03-16 09:43:57 +01:00 committed by Javier Moran Rua
parent 0cbcf53ef3
commit 9a0d2438ae
2 changed files with 6 additions and 1 deletions

View file

@ -83,6 +83,7 @@ import org.zkoss.zul.Hbox;
import org.zkoss.zul.Intbox;
import org.zkoss.zul.Label;
import org.zkoss.zul.ListModel;
import org.zkoss.zul.Listbox;
import org.zkoss.zul.Messagebox;
import org.zkoss.zul.SimpleListModel;
import org.zkoss.zul.api.Column;
@ -381,6 +382,8 @@ public class AdvancedAllocationController extends GenericForwardComposer {
private PaginatorFilter paginatorFilter;
private Listbox advancedAllocationZoomLevel;
private TimeTrackerComponentWithoutColumns timeTrackerComponent;
private Grid leftPane;
private TimeTrackedTable<Row> table;
@ -537,6 +540,8 @@ public class AdvancedAllocationController extends GenericForwardComposer {
paginatorFilter.setZoomLevel(timeTracker.getDetailLevel());
paginatorFilter.setInterval(timeTracker.getRealInterval());
paginationUpButton.setDisabled(isLastPage());
advancedAllocationZoomLevel.setSelectedIndex(timeTracker
.getDetailLevel().ordinal());
timeTracker.setFilter(paginatorFilter);
timeTracker.addZoomListener(new IZoomLevelChangedListener() {
@Override

View file

@ -45,7 +45,7 @@
<button tooltiptext="Page down" image="/common/img/ico_left.png" id="paginationDownButton"
onClick="advancedAllocationController.paginationDown();" disabled="true" />
<label>${i18n:_('Zoom level')}:</label>
<listbox mold="select" rows="1"
<listbox mold="select" rows="1" id="advancedAllocationZoomLevel"
model="${advancedAllocationController.zoomLevels}"
onSelect="advancedAllocationController.setZoomLevel(self.selectedItem.value);" >
</listbox>