Class RenamePopUpView
- java.lang.Object
-
- org.uberfire.ext.editor.commons.client.file.popups.RenamePopUpView
-
- All Implemented Interfaces:
org.jboss.errai.common.client.api.elemental2.IsElement,org.uberfire.client.mvp.HasPresenter<RenamePopUpPresenter>,org.uberfire.client.mvp.UberElemental<RenamePopUpPresenter>,RenamePopUpPresenter.View
@Dependent @Templated public class RenamePopUpView extends Object implements RenamePopUpPresenter.View
-
-
Constructor Summary
Constructors Constructor Description RenamePopUpView(elemental2.dom.HTMLDivElement body, elemental2.dom.HTMLDivElement view, elemental2.dom.HTMLButtonElement cancel, elemental2.dom.HTMLButtonElement rename, elemental2.dom.HTMLButtonElement saveAndRename, elemental2.dom.HTMLDivElement footer, elemental2.dom.HTMLInputElement newNameTextBox, elemental2.dom.HTMLDivElement error, elemental2.dom.HTMLElement errorMessage, org.jboss.errai.ui.client.local.spi.TranslationService translationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description elemental2.dom.HTMLElementgetElement()voidhandleDuplicatedFileName()voidhandleInvalidFileName()voidhandleRenameNotAllowed()voidhide()voidhideSaveAndRename(boolean hidden)voidinit(RenamePopUpPresenter presenter)voidonNewFileNameChange(com.google.gwt.event.dom.client.KeyUpEvent event)voidrenameAsPrimary()voidsaveAndRenameAsPrimary()voidsetOriginalFileName(String fileName)voidshow()
-
-
-
Constructor Detail
-
RenamePopUpView
@Inject public RenamePopUpView(elemental2.dom.HTMLDivElement body, elemental2.dom.HTMLDivElement view, elemental2.dom.HTMLButtonElement cancel, elemental2.dom.HTMLButtonElement rename, elemental2.dom.HTMLButtonElement saveAndRename, elemental2.dom.HTMLDivElement footer, elemental2.dom.HTMLInputElement newNameTextBox, elemental2.dom.HTMLDivElement error, @Named("span") elemental2.dom.HTMLElement errorMessage, org.jboss.errai.ui.client.local.spi.TranslationService translationService)
-
-
Method Detail
-
init
public void init(RenamePopUpPresenter presenter)
- Specified by:
initin interfaceorg.uberfire.client.mvp.HasPresenter<RenamePopUpPresenter>
-
show
public void show()
- Specified by:
showin interfaceRenamePopUpPresenter.View
-
hide
public void hide()
- Specified by:
hidein interfaceRenamePopUpPresenter.View
-
handleDuplicatedFileName
public void handleDuplicatedFileName()
- Specified by:
handleDuplicatedFileNamein interfaceRenamePopUpPresenter.View
-
handleInvalidFileName
public void handleInvalidFileName()
- Specified by:
handleInvalidFileNamein interfaceRenamePopUpPresenter.View
-
setOriginalFileName
public void setOriginalFileName(String fileName)
- Specified by:
setOriginalFileNamein interfaceRenamePopUpPresenter.View
-
handleRenameNotAllowed
public void handleRenameNotAllowed()
- Specified by:
handleRenameNotAllowedin interfaceRenamePopUpPresenter.View
-
onNewFileNameChange
@EventHandler("newNameTextBox") public void onNewFileNameChange(com.google.gwt.event.dom.client.KeyUpEvent event)
-
renameAsPrimary
public void renameAsPrimary()
- Specified by:
renameAsPrimaryin interfaceRenamePopUpPresenter.View
-
saveAndRenameAsPrimary
public void saveAndRenameAsPrimary()
- Specified by:
saveAndRenameAsPrimaryin interfaceRenamePopUpPresenter.View
-
hideSaveAndRename
public void hideSaveAndRename(boolean hidden)
- Specified by:
hideSaveAndRenamein interfaceRenamePopUpPresenter.View
-
getElement
public elemental2.dom.HTMLElement getElement()
- Specified by:
getElementin interfaceorg.jboss.errai.common.client.api.elemental2.IsElement
-
-