Class AdminNavigationWidget<T extends org.springframework.data.domain.Persistable<Long>>
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- de.knightsoftnet.mtwidgets.client.ui.widget.AdminNavigationWidget<T>
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.logical.shared.HasValueChangeHandlers<de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long>>,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.TakesValue<de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long>>,HasValue<de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long>>,HasVisibility,IsRenderable,IsWidget,HandlesSelectedEntry<T>,org.gwtproject.editor.client.Editor<de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long>>,org.gwtproject.editor.client.HasEditorDelegate<de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long>>,org.gwtproject.editor.client.ValueAwareEditor<de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long>>
public class AdminNavigationWidget<T extends org.springframework.data.domain.Persistable<Long>> extends Composite implements org.gwtproject.editor.client.ValueAwareEditor<de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long>>, HasValue<de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long>>, HandlesSelectedEntry<T>
widget with error handling, to navigate and manage database entries.- Author:
- Manfred Tremmel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
-
-
Field Summary
-
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
-
Constructor Summary
Constructors Constructor Description AdminNavigationWidget(de.knightsoftnet.mtwidgets.client.ui.widget.AdminNavigationWidget.Binder binder, com.gwtplatform.mvp.client.proxy.PlaceManager placeManager, com.google.gwt.place.shared.PlaceHistoryHandler.Historian historian, com.google.inject.Provider<PageableList<T>> searchResultListProvider, com.google.inject.Provider<AdminNavigationSearch> adminNavigationSearchProvider)Constructor for AdminNavigationWidget.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.event.shared.HandlerRegistrationaddValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long>> handler)AdminNavigationSearchbuildAdminNavigationSearch()PageableList<T>buildSearchResultList()voiddeleteEntry(com.google.gwt.event.dom.client.ClickEvent event)delete the current entry.voiddisplaySearchResult(org.springframework.data.domain.Page<T> result)display search results.voiddisplaySearchResult(org.springframework.data.domain.Page<T> result, boolean resetSorting)display search results.voidflush()ButtongetSaveEntry()de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long>getValue()voidhandleSelectedEntry(T entry)booleanisAllowDelete()booleanisAllowNew()booleanisAllowSave()voidnewEntry(com.google.gwt.event.dom.client.ClickEvent event)pressed the new entry button.voidonPropertyChange(String... paths)voidsearchEntry(com.google.gwt.event.dom.client.ClickEvent event)toggle visibility of search form.voidsearchResultListChanged(com.google.gwt.event.logical.shared.ValueChangeEvent<org.springframework.data.domain.Pageable> event)pageable changed.voidsearchStart(com.google.gwt.event.logical.shared.ValueChangeEvent<de.knightsoftnet.gwtp.spring.shared.search.SearchRequest> event)trigger search.voidsetAllowDelete(boolean allowDelete)voidsetAllowNew(boolean allowNew)voidsetAllowSave(boolean allowSave)voidsetDelegate(org.gwtproject.editor.client.EditorDelegate<de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long>> delegate)voidsetLink(String link)voidsetLinkWithParameter(String linkWithParameter)voidsetPresenter(AbstractAdminPresenter<T,?,?> presenter)set presenter.voidsetValue(de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long> value)voidsetValue(de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long> value, boolean fireEvents)voidshowMessage(String message)voidswitchToEntry(com.google.gwt.event.dom.client.ClickEvent event)voidswitchToEntryOnReturn(com.google.gwt.event.dom.client.KeyPressEvent event)switch to typed in entry when pressing return/enter.-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Constructor Detail
-
AdminNavigationWidget
@Inject public AdminNavigationWidget(de.knightsoftnet.mtwidgets.client.ui.widget.AdminNavigationWidget.Binder binder, com.gwtplatform.mvp.client.proxy.PlaceManager placeManager, com.google.gwt.place.shared.PlaceHistoryHandler.Historian historian, com.google.inject.Provider<PageableList<T>> searchResultListProvider, com.google.inject.Provider<AdminNavigationSearch> adminNavigationSearchProvider)
Constructor for AdminNavigationWidget.
-
-
Method Detail
-
buildSearchResultList
@Ignore @UiFactory public PageableList<T> buildSearchResultList()
-
buildAdminNavigationSearch
@Ignore @UiFactory public AdminNavigationSearch buildAdminNavigationSearch()
-
setValue
public void setValue(de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long> value)
- Specified by:
setValuein interfaceHasValue<T extends org.springframework.data.domain.Persistable<Long>>- Specified by:
setValuein interfacecom.google.gwt.user.client.TakesValue<T extends org.springframework.data.domain.Persistable<Long>>- Specified by:
setValuein interfaceorg.gwtproject.editor.client.ValueAwareEditor<T extends org.springframework.data.domain.Persistable<Long>>
-
setValue
public void setValue(de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long> value, boolean fireEvents)
-
switchToEntry
@UiHandler("switchToId") public void switchToEntry(com.google.gwt.event.dom.client.ClickEvent event)
-
switchToEntryOnReturn
@UiHandler("id") public void switchToEntryOnReturn(com.google.gwt.event.dom.client.KeyPressEvent event)switch to typed in entry when pressing return/enter.- Parameters:
event- key press event
-
newEntry
@UiHandler("newEntry") public void newEntry(com.google.gwt.event.dom.client.ClickEvent event)pressed the new entry button.- Parameters:
event- click event
-
deleteEntry
@UiHandler("deleteEntry") public void deleteEntry(com.google.gwt.event.dom.client.ClickEvent event)delete the current entry.- Parameters:
event- click event
-
searchEntry
@UiHandler("searchEntry") public void searchEntry(com.google.gwt.event.dom.client.ClickEvent event)toggle visibility of search form.- Parameters:
event- click event
-
searchStart
@UiHandler("searchForm") public void searchStart(com.google.gwt.event.logical.shared.ValueChangeEvent<de.knightsoftnet.gwtp.spring.shared.search.SearchRequest> event)trigger search.- Parameters:
event- value change event
-
searchResultListChanged
@UiHandler("searchResultList") public void searchResultListChanged(com.google.gwt.event.logical.shared.ValueChangeEvent<org.springframework.data.domain.Pageable> event)pageable changed.- Parameters:
event- value change handler
-
setPresenter
public void setPresenter(AbstractAdminPresenter<T,?,?> presenter)
set presenter.- Parameters:
presenter- of the administration page
-
setLink
public void setLink(String link)
-
setLinkWithParameter
public void setLinkWithParameter(String linkWithParameter)
-
getValue
public de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long> getValue()
-
addValueChangeHandler
public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long>> handler)
-
setDelegate
public void setDelegate(org.gwtproject.editor.client.EditorDelegate<de.knightsoftnet.gwtp.spring.shared.data.AdminNavigation<Long>> delegate)
-
onPropertyChange
public void onPropertyChange(String... paths)
-
flush
public void flush()
-
getSaveEntry
public Button getSaveEntry()
-
isAllowNew
public boolean isAllowNew()
-
setAllowNew
public void setAllowNew(boolean allowNew)
-
isAllowSave
public boolean isAllowSave()
-
setAllowSave
public void setAllowSave(boolean allowSave)
-
isAllowDelete
public boolean isAllowDelete()
-
setAllowDelete
public void setAllowDelete(boolean allowDelete)
-
displaySearchResult
public void displaySearchResult(org.springframework.data.domain.Page<T> result)
display search results.- Parameters:
result- page object with search results
-
displaySearchResult
public void displaySearchResult(org.springframework.data.domain.Page<T> result, boolean resetSorting)
display search results.- Parameters:
result- page object with search results
-
handleSelectedEntry
public void handleSelectedEntry(T entry)
- Specified by:
handleSelectedEntryin interfaceHandlesSelectedEntry<T extends org.springframework.data.domain.Persistable<Long>>
-
showMessage
public void showMessage(String message)
-
-