public abstract class AbstractScenarioPopupView extends Object implements AbstractScenarioPopup
AbstractScenarioPopup.Presenter
Modifier and Type | Field and Description |
---|---|
protected org.uberfire.client.views.pfly.widgets.Button |
cancelButton |
protected com.google.gwt.dom.client.HeadingElement |
mainTitle |
protected org.uberfire.client.views.pfly.widgets.Modal |
modal |
protected org.uberfire.client.views.pfly.widgets.Button |
okButton |
protected org.uberfire.mvp.Command |
okCommand |
protected org.jboss.errai.ui.client.local.spi.TranslationService |
translationService |
Constructor and Description |
---|
AbstractScenarioPopupView() |
Modifier and Type | Method and Description |
---|---|
protected void |
conditionalShow(org.uberfire.client.views.pfly.widgets.Button button,
org.uberfire.mvp.Command command,
String innerText) |
protected void |
conditionalShow(com.google.gwt.dom.client.Element element,
String innerText) |
org.jboss.errai.common.client.dom.HTMLElement |
getElement() |
void |
hide()
Makes this popup container(and the main content along with it) invisible.
|
void |
init() |
void |
onCancelClick(org.jboss.errai.common.client.dom.MouseEvent event) |
void |
onOkClick(org.jboss.errai.common.client.dom.MouseEvent event) |
void |
show(String mainTitleText,
String okButtonText,
org.uberfire.mvp.Command okCommand)
Makes the
ScenarioPopup visible with OK/Cancel buttons. |
@DataField(value="main-title") protected com.google.gwt.dom.client.HeadingElement mainTitle
@Inject @DataField(value="cancel-button") protected org.uberfire.client.views.pfly.widgets.Button cancelButton
@Inject @DataField(value="ok-button") protected org.uberfire.client.views.pfly.widgets.Button okButton
@Inject @DataField(value="modal") protected org.uberfire.client.views.pfly.widgets.Modal modal
@Inject protected org.jboss.errai.ui.client.local.spi.TranslationService translationService
protected org.uberfire.mvp.Command okCommand
@PostConstruct public void init()
public void show(String mainTitleText, String okButtonText, org.uberfire.mvp.Command okCommand)
AbstractScenarioPopup
ScenarioPopup
visible with OK/Cancel buttons.show
in interface AbstractScenarioPopup
public org.jboss.errai.common.client.dom.HTMLElement getElement()
getElement
in interface AbstractScenarioPopup
public void hide()
AbstractScenarioPopup
hide
in interface AbstractScenarioPopup
@EventHandler(value="ok-button") public void onOkClick(@ForEvent(value="click") org.jboss.errai.common.client.dom.MouseEvent event)
@EventHandler(value="cancel-button") public void onCancelClick(@ForEvent(value="click") org.jboss.errai.common.client.dom.MouseEvent event)
protected void conditionalShow(com.google.gwt.dom.client.Element element, String innerText)
protected void conditionalShow(org.uberfire.client.views.pfly.widgets.Button button, org.uberfire.mvp.Command command, String innerText)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.