Class AbstractScenarioPopupView
- java.lang.Object
-
- org.drools.workbench.screens.scenariosimulation.client.popup.AbstractScenarioPopupView
-
- All Implemented Interfaces:
AbstractScenarioPopup
- Direct Known Subclasses:
AbstractScenarioConfirmationPopupView,FileUploadPopupView
public abstract class AbstractScenarioPopupView extends Object implements AbstractScenarioPopup
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.workbench.screens.scenariosimulation.client.popup.AbstractScenarioPopup
AbstractScenarioPopup.Presenter
-
-
Field Summary
Fields Modifier and Type Field Description protected org.uberfire.client.views.pfly.widgets.ButtoncancelButtonprotected com.google.gwt.dom.client.HeadingElementmainTitleprotected org.uberfire.client.views.pfly.widgets.Modalmodalprotected org.uberfire.client.views.pfly.widgets.ButtonokButtonprotected org.uberfire.mvp.CommandokCommandprotected org.jboss.errai.ui.client.local.spi.TranslationServicetranslationService
-
Constructor Summary
Constructors Constructor Description AbstractScenarioPopupView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconditionalShow(com.google.gwt.dom.client.Element element, String innerText)protected voidconditionalShow(org.uberfire.client.views.pfly.widgets.Button button, org.uberfire.mvp.Command command, String innerText)org.jboss.errai.common.client.dom.HTMLElementgetElement()voidhide()Makes this popup container(and the main content along with it) invisible.voidinit()voidonCancelClick(org.jboss.errai.common.client.dom.MouseEvent event)voidonOkClick(org.jboss.errai.common.client.dom.MouseEvent event)voidshow(String mainTitleText, String okButtonText, org.uberfire.mvp.Command okCommand)Makes theScenarioPopupvisible with OK/Cancel buttons.
-
-
-
Field Detail
-
mainTitle
@DataField("main-title") protected com.google.gwt.dom.client.HeadingElement mainTitle
-
cancelButton
@Inject @DataField("cancel-button") protected org.uberfire.client.views.pfly.widgets.Button cancelButton
-
okButton
@Inject @DataField("ok-button") protected org.uberfire.client.views.pfly.widgets.Button okButton
-
modal
@Inject @DataField("modal") protected org.uberfire.client.views.pfly.widgets.Modal modal
-
translationService
@Inject protected org.jboss.errai.ui.client.local.spi.TranslationService translationService
-
okCommand
protected org.uberfire.mvp.Command okCommand
-
-
Method Detail
-
init
@PostConstruct public void init()
-
show
public void show(String mainTitleText, String okButtonText, org.uberfire.mvp.Command okCommand)
Description copied from interface:AbstractScenarioPopupMakes theScenarioPopupvisible with OK/Cancel buttons.- Specified by:
showin interfaceAbstractScenarioPopup
-
getElement
public org.jboss.errai.common.client.dom.HTMLElement getElement()
- Specified by:
getElementin interfaceAbstractScenarioPopup
-
hide
public void hide()
Description copied from interface:AbstractScenarioPopupMakes this popup container(and the main content along with it) invisible. Has no effect if the popup is not already showing.- Specified by:
hidein interfaceAbstractScenarioPopup
-
onOkClick
@EventHandler("ok-button") public void onOkClick(@ForEvent("click") org.jboss.errai.common.client.dom.MouseEvent event)
-
onCancelClick
@EventHandler("cancel-button") public void onCancelClick(@ForEvent("click") org.jboss.errai.common.client.dom.MouseEvent event)
-
conditionalShow
protected void conditionalShow(com.google.gwt.dom.client.Element element, String innerText)
-
conditionalShow
protected void conditionalShow(org.uberfire.client.views.pfly.widgets.Button button, org.uberfire.mvp.Command command, String innerText)
-
-