Class SubmitChangeRequestScreenView
- java.lang.Object
-
- org.kie.workbench.common.screens.library.client.screens.project.changerequest.submit.SubmitChangeRequestScreenView
-
- All Implemented Interfaces:
org.jboss.errai.common.client.api.elemental2.IsElement,org.jboss.errai.ui.client.local.api.elemental2.IsElement,SubmitChangeRequestScreenPresenter.View,org.uberfire.client.mvp.HasPresenter<SubmitChangeRequestScreenPresenter>,org.uberfire.client.mvp.UberElemental<SubmitChangeRequestScreenPresenter>
@Templated public class SubmitChangeRequestScreenView extends Object implements SubmitChangeRequestScreenPresenter.View, org.jboss.errai.ui.client.local.api.elemental2.IsElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubmitChangeRequestScreenView.BranchOptionView
-
Constructor Summary
Constructors Constructor Description SubmitChangeRequestScreenView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDiffItem(DiffItemPresenter.View item, Runnable draw)voidclearDiffList()voidclearErrors()voidclearInputFields()voidenableSubmitButton(boolean isEnabled)StringgetDescription()StringgetSummary()voidinit(SubmitChangeRequestScreenPresenter presenter)voidonCancelClicked(com.google.gwt.event.dom.client.ClickEvent event)voidonSubmitClicked(com.google.gwt.event.dom.client.ClickEvent event)voidresetAll()voidsetDescription(String description)voidsetDescriptionError()voidsetDestinationBranches(List<String> branches, int selectedIdx)voidsetFilesSummary(String text)voidsetSummaryError()voidsetTitle(String title)voidshowDiff(boolean isVisible)voidshowWarning(boolean isVisible)
-
-
-
Method Detail
-
init
public void init(SubmitChangeRequestScreenPresenter presenter)
- Specified by:
initin interfaceorg.uberfire.client.mvp.HasPresenter<SubmitChangeRequestScreenPresenter>
-
setTitle
public void setTitle(String title)
- Specified by:
setTitlein interfaceSubmitChangeRequestScreenPresenter.View
-
setDestinationBranches
public void setDestinationBranches(List<String> branches, int selectedIdx)
- Specified by:
setDestinationBranchesin interfaceSubmitChangeRequestScreenPresenter.View
-
showWarning
public void showWarning(boolean isVisible)
- Specified by:
showWarningin interfaceSubmitChangeRequestScreenPresenter.View
-
addDiffItem
public void addDiffItem(DiffItemPresenter.View item, Runnable draw)
- Specified by:
addDiffItemin interfaceSubmitChangeRequestScreenPresenter.View
-
getSummary
public String getSummary()
- Specified by:
getSummaryin interfaceSubmitChangeRequestScreenPresenter.View
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceSubmitChangeRequestScreenPresenter.View
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceSubmitChangeRequestScreenPresenter.View
-
clearErrors
public void clearErrors()
- Specified by:
clearErrorsin interfaceSubmitChangeRequestScreenPresenter.View
-
clearDiffList
public void clearDiffList()
- Specified by:
clearDiffListin interfaceSubmitChangeRequestScreenPresenter.View
-
setSummaryError
public void setSummaryError()
- Specified by:
setSummaryErrorin interfaceSubmitChangeRequestScreenPresenter.View
-
setDescriptionError
public void setDescriptionError()
- Specified by:
setDescriptionErrorin interfaceSubmitChangeRequestScreenPresenter.View
-
showDiff
public void showDiff(boolean isVisible)
- Specified by:
showDiffin interfaceSubmitChangeRequestScreenPresenter.View
-
clearInputFields
public void clearInputFields()
- Specified by:
clearInputFieldsin interfaceSubmitChangeRequestScreenPresenter.View
-
resetAll
public void resetAll()
- Specified by:
resetAllin interfaceSubmitChangeRequestScreenPresenter.View
-
setFilesSummary
public void setFilesSummary(String text)
- Specified by:
setFilesSummaryin interfaceSubmitChangeRequestScreenPresenter.View
-
enableSubmitButton
public void enableSubmitButton(boolean isEnabled)
- Specified by:
enableSubmitButtonin interfaceSubmitChangeRequestScreenPresenter.View
-
onCancelClicked
@EventHandler("cancel") public void onCancelClicked(com.google.gwt.event.dom.client.ClickEvent event)
-
onSubmitClicked
@EventHandler("submit") public void onSubmitClicked(com.google.gwt.event.dom.client.ClickEvent event)
-
-