Class PopulatedAssetsView
- java.lang.Object
-
- org.kie.workbench.common.screens.library.client.screens.assets.PopulatedAssetsView
-
- All Implemented Interfaces:
org.jboss.errai.common.client.api.elemental2.IsElement,org.jboss.errai.ui.client.local.api.elemental2.IsElement,PopulatedAssetsScreen.View,org.uberfire.client.mvp.HasPresenter<PopulatedAssetsScreen>,org.uberfire.client.mvp.UberElemental<PopulatedAssetsScreen>
@Templated public class PopulatedAssetsView extends Object implements PopulatedAssetsScreen.View, org.jboss.errai.ui.client.local.api.elemental2.IsElement
-
-
Constructor Summary
Constructors Constructor Description PopulatedAssetsView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAsset(com.google.gwt.event.dom.client.ClickEvent event)voidaddAssetItem(AssetItemWidget item)voidclear()voidcurrentPageTextChange(com.google.gwt.event.dom.client.KeyUpEvent event)voiddisableNextButton()voiddisablePreviousButton()voidenableAddAssetButton(boolean enable)voidenableImportButton(boolean enable)voidenableNextButton()voidenablePreviousButton()voidhideEmptyState(EmptyState emptyState)voidimportAsset(com.google.gwt.event.dom.client.ClickEvent event)voidinit(PopulatedAssetsScreen presenter)voidnextPage(com.google.gwt.event.dom.client.ClickEvent event)voidprevPage(com.google.gwt.event.dom.client.ClickEvent event)voidsearch(com.google.gwt.event.dom.client.ClickEvent event)voidsearch(com.google.gwt.event.dom.client.KeyUpEvent event)voidsetCategories(List<org.uberfire.ext.widgets.common.client.select.SelectOption> categories)voidsetCurrentPage(int currentPage)voidsetPageIndicator(int from, int to, int total)voidsetTotalPages(int totalPages)voidshowEmptyState(EmptyState emptyState)
-
-
-
Method Detail
-
init
public void init(PopulatedAssetsScreen presenter)
- Specified by:
initin interfaceorg.uberfire.client.mvp.HasPresenter<PopulatedAssetsScreen>
-
addAssetItem
public void addAssetItem(AssetItemWidget item)
- Specified by:
addAssetItemin interfacePopulatedAssetsScreen.View
-
addAsset
@EventHandler("add-asset") public void addAsset(com.google.gwt.event.dom.client.ClickEvent event)
-
importAsset
@EventHandler("import-asset") public void importAsset(com.google.gwt.event.dom.client.ClickEvent event)
-
nextPage
@EventHandler("next-page") public void nextPage(com.google.gwt.event.dom.client.ClickEvent event)
-
prevPage
@EventHandler("prev-page") public void prevPage(com.google.gwt.event.dom.client.ClickEvent event)
-
search
@EventHandler("search") public void search(com.google.gwt.event.dom.client.ClickEvent event)
-
search
@EventHandler("filter-text") public void search(com.google.gwt.event.dom.client.KeyUpEvent event)
-
currentPageTextChange
@EventHandler("current-page") public void currentPageTextChange(com.google.gwt.event.dom.client.KeyUpEvent event)
-
showEmptyState
public void showEmptyState(EmptyState emptyState)
- Specified by:
showEmptyStatein interfacePopulatedAssetsScreen.View
-
hideEmptyState
public void hideEmptyState(EmptyState emptyState)
- Specified by:
hideEmptyStatein interfacePopulatedAssetsScreen.View
-
setCurrentPage
public void setCurrentPage(int currentPage)
- Specified by:
setCurrentPagein interfacePopulatedAssetsScreen.View
-
setPageIndicator
public void setPageIndicator(int from, int to, int total)- Specified by:
setPageIndicatorin interfacePopulatedAssetsScreen.View
-
setTotalPages
public void setTotalPages(int totalPages)
- Specified by:
setTotalPagesin interfacePopulatedAssetsScreen.View
-
clear
public void clear()
- Specified by:
clearin interfacePopulatedAssetsScreen.View
-
enablePreviousButton
public void enablePreviousButton()
- Specified by:
enablePreviousButtonin interfacePopulatedAssetsScreen.View
-
disablePreviousButton
public void disablePreviousButton()
- Specified by:
disablePreviousButtonin interfacePopulatedAssetsScreen.View
-
enableNextButton
public void enableNextButton()
- Specified by:
enableNextButtonin interfacePopulatedAssetsScreen.View
-
disableNextButton
public void disableNextButton()
- Specified by:
disableNextButtonin interfacePopulatedAssetsScreen.View
-
setCategories
public void setCategories(List<org.uberfire.ext.widgets.common.client.select.SelectOption> categories)
- Specified by:
setCategoriesin interfacePopulatedAssetsScreen.View
-
enableImportButton
public void enableImportButton(boolean enable)
- Specified by:
enableImportButtonin interfacePopulatedAssetsScreen.View
-
enableAddAssetButton
public void enableAddAssetButton(boolean enable)
- Specified by:
enableAddAssetButtonin interfacePopulatedAssetsScreen.View
-
-