@Test public void testFixedModeInit() { presenter.init(new ColumnGroup("col", "col", FIXED, 15, HOUR.toString())); verify(view).setFixedModeValue(true); verify(view).clearIntervalTypeSelector(); verify(view, times(FIXED_INTERVALS_SUPPORTED.size())).addIntervalTypeItem(any(DateIntervalType.class)); verify(view).setSelectedIntervalTypeIndex(anyInt()); verify(view, never()).setMaxIntervalsVisibility(true); verify(view, never()).setFirstDayVisibility(true); verify(view, never()).setFirstMonthVisibility(true); }
public void init(ColumnGroup columnGroup) { this.columnGroup = columnGroup; if (columnGroup != null) { if (isFixedStrategy()) { gotoFixedMode(); } else { gotoDynamicMode(); } } }
DataSetGroupDateEditor implements IsWidget { public void init(ColumnGroup columnGroup) { this.columnGroup = columnGroup; if (columnGroup != null) { if (isFixedStrategy()) { gotoFixedMode(); } else { gotoDynamicMode(); } } } }
DataSetGroupDateEditor implements IsWidget { public void init(ColumnGroup columnGroup) { this.columnGroup = columnGroup; if (columnGroup != null) { if (isFixedStrategy()) { gotoFixedMode(); } else { gotoDynamicMode(); } } } @Inject  DataSetGroupDateEditor(View view, Event<DataSetGroupDateChanged> changeEvent); }
DataSetGroupDateEditor implements IsWidget { public void init(ColumnGroup columnGroup) { this.columnGroup = columnGroup; if (columnGroup != null) { if (isFixedStrategy()) { gotoFixedMode(); } else { gotoDynamicMode(); } } } @Inject  DataSetGroupDateEditor(View view, Event<DataSetGroupDateChanged> changeEvent); @Override Widget asWidget(); ColumnGroup getColumnGroup(); void init(ColumnGroup columnGroup); boolean isFixedStrategy(); List<DateIntervalType> getListOfIntervalTypes(); void gotoDynamicMode(); void gotoFixedMode(); void onFixedStrategyChanged(); }
DataSetGroupDateEditor implements IsWidget { public void init(ColumnGroup columnGroup) { this.columnGroup = columnGroup; if (columnGroup != null) { if (isFixedStrategy()) { gotoFixedMode(); } else { gotoDynamicMode(); } } } @Inject  DataSetGroupDateEditor(View view, Event<DataSetGroupDateChanged> changeEvent); @Override Widget asWidget(); ColumnGroup getColumnGroup(); void init(ColumnGroup columnGroup); boolean isFixedStrategy(); List<DateIntervalType> getListOfIntervalTypes(); void gotoDynamicMode(); void gotoFixedMode(); void onFixedStrategyChanged();  }