Search in sources :

Example 1 with MultiPageEditor

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);
}
Also used : MultiPageEditor(org.uberfire.client.workbench.widgets.multipage.MultiPageEditor)

Example 2 with MultiPageEditor

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);
}
Also used : MultiPageEditor(org.uberfire.client.workbench.widgets.multipage.MultiPageEditor)

Example 3 with MultiPageEditor

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);
}
Also used : MultiPageEditor(org.uberfire.client.workbench.widgets.multipage.MultiPageEditor) Page(org.uberfire.client.workbench.widgets.multipage.Page) Test(org.junit.Test)

Example 4 with MultiPageEditor

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);
}
Also used : MultiPageEditor(org.uberfire.client.workbench.widgets.multipage.MultiPageEditor) Test(org.junit.Test)

Example 5 with MultiPageEditor

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);
}
Also used : MultiPageEditor(org.uberfire.client.workbench.widgets.multipage.MultiPageEditor) Test(org.junit.Test)

Aggregations

MultiPageEditor (org.uberfire.client.workbench.widgets.multipage.MultiPageEditor)10 Test (org.junit.Test)7 GuidedDecisionTableView (org.drools.workbench.screens.guided.dtable.client.widget.table.GuidedDecisionTableView)3 GuidedDecisionTablePresenter (org.drools.workbench.screens.guided.dtable.client.widget.table.GuidedDecisionTablePresenter)2 DecisionTableSelectedEvent (org.drools.workbench.screens.guided.dtable.client.widget.table.events.cdi.DecisionTableSelectedEvent)2 GuidedDecisionTableEditorContent (org.drools.workbench.screens.guided.dtable.model.GuidedDecisionTableEditorContent)2 ObservablePath (org.uberfire.backend.vfs.ObservablePath)2 PlaceRequest (org.uberfire.mvp.PlaceRequest)2 GuidedDecisionTable52 (org.drools.workbench.models.guided.dtable.shared.model.GuidedDecisionTable52)1 Overview (org.guvnor.common.services.shared.metadata.model.Overview)1 Imports (org.kie.soup.project.datamodel.imports.Imports)1 AsyncPackageDataModelOracle (org.kie.workbench.common.widgets.client.datamodel.AsyncPackageDataModelOracle)1 Matchers.anyBoolean (org.mockito.Matchers.anyBoolean)1 Page (org.uberfire.client.workbench.widgets.multipage.Page)1