private QueueComponent(final QueueListComponent queueListComponent, final TimeTracker timeTracker, final LimitingResourceQueue limitingResourceQueue) { this.queueListComponent = queueListComponent; this.limitingResourceQueue = limitingResourceQueue; this.timeTracker = timeTracker; createChildren(limitingResourceQueue, timeTracker.getMapper()); /* Do not replace it with lamda */ zoomChangedListener = new IZoomLevelChangedListener() { @Override public void zoomLevelChanged(ZoomLevel detailLevel) { getChildren().clear(); createChildren(limitingResourceQueue, timeTracker.getMapper()); } }; this.timeTracker.addZoomListener(zoomChangedListener); }
private QueueTask createQueueTask(LimitingResourceQueueElement element) { validateQueueElement(element); return createDivForElement(timeTracker.getMapper(), element); }