@Test public void testInit() { presenter.init(); verify(refreshTime, times(1)).addHelpContent(anyString(), anyString(), any(Placement.class)); verify(view, times(1)).init(presenter); verify(view, times(1)).initWidgets(any(IsWidget.class), any(DataSetDefRefreshIntervalEditor.View.class)); verify(view, times(1)).addRefreshEnabledButtonHandler(any(Command.class)); verify(view, times(0)).setEnabled(anyBoolean()); }
@PostConstruct public void init() { view.init(this); view.initWidgets(refreshAlways.asWidget(), refreshTime.view); view.addRefreshEnabledButtonHandler(refreshEnabledButtonHandler); refreshTime.addHelpContent(DataSetEditorConstants.INSTANCE.attributeRefreshInterval(), DataSetEditorConstants.INSTANCE.attributeRefreshInterval_description(), Placement.RIGHT); }
DataSetDefRefreshAttributesEditor implements IsWidget, org.dashbuilder.dataset.client.editor.DataSetDefRefreshAttributesEditor { @PostConstruct public void init() { view.init(this); view.initWidgets(refreshAlways.asWidget(), refreshTime.view); view.addRefreshEnabledButtonHandler(refreshEnabledButtonHandler); refreshTime.addHelpContent(DataSetEditorConstants.INSTANCE.attributeRefreshInterval(), DataSetEditorConstants.INSTANCE.attributeRefreshInterval_description(), Placement.RIGHT); } }
DataSetDefRefreshAttributesEditor implements IsWidget, org.dashbuilder.dataset.client.editor.DataSetDefRefreshAttributesEditor { @PostConstruct public void init() { view.init(this); view.initWidgets(refreshAlways.asWidget(), refreshTime.view); view.addRefreshEnabledButtonHandler(refreshEnabledButtonHandler); refreshTime.addHelpContent(DataSetEditorConstants.INSTANCE.attributeRefreshInterval(), DataSetEditorConstants.INSTANCE.attributeRefreshInterval_description(), Placement.RIGHT); } @Inject  DataSetDefRefreshAttributesEditor(final ToggleSwitchEditor refreshAlways,
                                             final DataSetDefRefreshIntervalEditor refreshTime,
                                             final View view); }
DataSetDefRefreshAttributesEditor implements IsWidget, org.dashbuilder.dataset.client.editor.DataSetDefRefreshAttributesEditor { @PostConstruct public void init() { view.init(this); view.initWidgets(refreshAlways.asWidget(), refreshTime.view); view.addRefreshEnabledButtonHandler(refreshEnabledButtonHandler); refreshTime.addHelpContent(DataSetEditorConstants.INSTANCE.attributeRefreshInterval(), DataSetEditorConstants.INSTANCE.attributeRefreshInterval_description(), Placement.RIGHT); } @Inject  DataSetDefRefreshAttributesEditor(final ToggleSwitchEditor refreshAlways,
                                             final DataSetDefRefreshIntervalEditor refreshTime,
                                             final View view); @PostConstruct void init(); boolean isRefreshEnabled(); @Override Widget asWidget(); @Override ToggleSwitchEditor refreshAlways(); @Override DataSetDefRefreshIntervalEditor refreshTime(); @Override void flush(); @Override void onPropertyChange(final String... paths); @Override void setValue(final DataSetDef value); @Override void setDelegate(final EditorDelegate<DataSetDef> delegate); }
DataSetDefRefreshAttributesEditor implements IsWidget, org.dashbuilder.dataset.client.editor.DataSetDefRefreshAttributesEditor { @PostConstruct public void init() { view.init(this); view.initWidgets(refreshAlways.asWidget(), refreshTime.view); view.addRefreshEnabledButtonHandler(refreshEnabledButtonHandler); refreshTime.addHelpContent(DataSetEditorConstants.INSTANCE.attributeRefreshInterval(), DataSetEditorConstants.INSTANCE.attributeRefreshInterval_description(), Placement.RIGHT); } @Inject  DataSetDefRefreshAttributesEditor(final ToggleSwitchEditor refreshAlways,
                                             final DataSetDefRefreshIntervalEditor refreshTime,
                                             final View view); @PostConstruct void init(); boolean isRefreshEnabled(); @Override Widget asWidget(); @Override ToggleSwitchEditor refreshAlways(); @Override DataSetDefRefreshIntervalEditor refreshTime(); @Override void flush(); @Override void onPropertyChange(final String... paths); @Override void setValue(final DataSetDef value); @Override void setDelegate(final EditorDelegate<DataSetDef> delegate); public View view; }