use of org.uberfire.client.workbench.widgets.multipage.MultiPageEditor in project drools-wb by kiegroup.
the class BaseGuidedDecisionTableEditorPresenter method disableColumnsPage.
void disableColumnsPage() {
final MultiPageEditor multiPage = getKieEditorWrapperMultiPage();
multiPage.disablePage(COLUMNS_TAB_INDEX);
}
use of org.uberfire.client.workbench.widgets.multipage.MultiPageEditor in project drools-wb by kiegroup.
the class BaseGuidedDecisionTableEditorPresenter method addEditorPage.
void addEditorPage(final int index, final Page page) {
final MultiPageEditor multiPage = getKieEditorWrapperMultiPage();
multiPage.addPage(index, page);
}
use of org.uberfire.client.workbench.widgets.multipage.MultiPageEditor in project drools-wb by kiegroup.
the class BaseGuidedDecisionTableEditorPresenterTest method testAddEditorPage.
@Test
public void testAddEditorPage() {
final MultiPageEditor multiPage = mock(MultiPageEditor.class);
final Page page = mock(Page.class);
final int index = 1;
doReturn(multiPage).when(presenter).getKieEditorWrapperMultiPage();
presenter.addEditorPage(index, page);
verify(multiPage).addPage(index, page);
}
use of org.uberfire.client.workbench.widgets.multipage.MultiPageEditor in project drools-wb by kiegroup.
the class BaseGuidedDecisionTableEditorPresenterTest method testDisableColumnsPage.
@Test
public void testDisableColumnsPage() {
final MultiPageEditor multiPage = mock(MultiPageEditor.class);
doReturn(multiPage).when(presenter).getKieEditorWrapperMultiPage();
presenter.disableColumnsPage();
verify(multiPage).disablePage(COLUMNS_TAB_INDEX);
}
use of org.uberfire.client.workbench.widgets.multipage.MultiPageEditor in project drools-wb by kiegroup.
the class BaseGuidedDecisionTableEditorPresenterTest method testEnableColumnsPage.
@Test
public void testEnableColumnsPage() {
final MultiPageEditor multiPage = mock(MultiPageEditor.class);
doReturn(multiPage).when(presenter).getKieEditorWrapperMultiPage();
presenter.enableColumnsPage();
verify(multiPage).enablePage(COLUMNS_TAB_INDEX);
}
Aggregations