@Test public void prepareView() { page.prepareView(); verify(view).init(page); verify(view).clear(); verify(view, never()).addVariable(anyString(), any()); }
@Override public void prepareView() { view.init(this); view.clear(); plugin.setupDefinedVariables(plugin().getRuleModel()); for (final BRLVariableColumn childColumn : getChildColumns()) { final IsWidget widget = factory().getWidget(childColumn, getDefaultValue(childColumn)); view.addVariable(childColumn.getVarName(), widget); } }
DefaultValuesPage extends BaseDecisionTableColumnPage<T> { @Override public void prepareView() { view.init(this); view.clear(); plugin.setupDefinedVariables(plugin().getRuleModel()); for (final BRLVariableColumn childColumn : getChildColumns()) { final IsWidget widget = factory().getWidget(childColumn, getDefaultValue(childColumn)); view.addVariable(childColumn.getVarName(), widget); } } }
DefaultValuesPage extends BaseDecisionTableColumnPage<T> { @Override public void prepareView() { view.init(this); view.clear(); plugin.setupDefinedVariables(plugin().getRuleModel()); for (final BRLVariableColumn childColumn : getChildColumns()) { final IsWidget widget = factory().getWidget(childColumn, getDefaultValue(childColumn)); view.addVariable(childColumn.getVarName(), widget); } } @Inject  DefaultValuesPage(final View view,
                             final TranslationService translationService); }
DefaultValuesPage extends BaseDecisionTableColumnPage<T> { @Override public void prepareView() { view.init(this); view.clear(); plugin.setupDefinedVariables(plugin().getRuleModel()); for (final BRLVariableColumn childColumn : getChildColumns()) { final IsWidget widget = factory().getWidget(childColumn, getDefaultValue(childColumn)); view.addVariable(childColumn.getVarName(), widget); } } @Inject  DefaultValuesPage(final View view,
                             final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); }
DefaultValuesPage extends BaseDecisionTableColumnPage<T> { @Override public void prepareView() { view.init(this); view.clear(); plugin.setupDefinedVariables(plugin().getRuleModel()); for (final BRLVariableColumn childColumn : getChildColumns()) { final IsWidget widget = factory().getWidget(childColumn, getDefaultValue(childColumn)); view.addVariable(childColumn.getVarName(), widget); } } @Inject  DefaultValuesPage(final View view,
                             final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView();  }