public abstract class DirectoryPanel<T extends Serializable,W extends Serializable,DP extends DirectoryDataProvider<T>,E extends RestClient> extends WizardMgtPanel<W>
Modifier and Type | Class and Description |
---|---|
static class |
DirectoryPanel.Builder<T extends Serializable,W extends Serializable,E extends RestClient> |
static class |
DirectoryPanel.EventDataWrapper |
WizardMgtPanel.ExitEvent
Modifier and Type | Field and Description |
---|---|
protected ActionLinksTogglePanel<T> |
actionTogglePanel |
protected BaseModal<W> |
altDefaultModal |
protected WebMarkupContainer |
container
Container used to refresh table.
|
protected DP |
dataProvider
Data provider used to search for entities.
|
protected BaseModal<W> |
displayAttributeModal |
protected boolean |
filtered
Specify if results are about a filtered search or not.
|
protected String |
itemKeyFieldName |
protected static org.slf4j.Logger |
LOG |
protected static ObjectMapper |
MAPPER |
protected BasePage |
page
Owner page.
|
protected PreferenceManager |
prefMan
Application preferences.
|
protected E |
restClient |
protected AjaxDataTablePanel<T,String> |
resultTable
Result table.
|
protected int |
rows
Number of rows per page.
|
addAjaxLink, exitAjaxLink, footerVisibility, modal, newItemPanelBuilder, notificationPanel, pageRef, showResultPage, WIZARD_ID, wizardInModal
ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING, RFLAG_CONTAINER_HAS_REMOVALS
Modifier | Constructor and Description |
---|---|
protected |
DirectoryPanel(String id,
DirectoryPanel.Builder<T,W,E> builder) |
protected |
DirectoryPanel(String id,
DirectoryPanel.Builder<T,W,E> builder,
boolean wizardInModal) |
|
DirectoryPanel(String id,
PageReference pageRef)
Create simple unfiltered search result panel.
|
|
DirectoryPanel(String id,
PageReference pageRef,
boolean wizardInModal) |
|
DirectoryPanel(String id,
PageReference pageRef,
boolean showPaginator,
boolean wizardInModal) |
addInnerObject, addNewItemPanelBuilder, addNotificationPanel, addOrReplaceInnerObject, addOuterObject, customActionCallback, customActionOnCancelCallback, customResultBody, disableContainerAutoRefresh, enableExitButton, getActualId, getNewItemPanelBuilder, isNewItemDefaultButtonEnabled, isReadOnly, isWizardInModal, setFooterVisibility, setPageRef, setReadOnly, setShowResultPage, setWindowClosedReloadCallback
getRegionMarkup, newMarkupSourcingStrategy
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onComponentTagBody, onDetach, onInitialize, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildren
add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
send
dequeue, newDequeueContext
forEach, spliterator
protected static final org.slf4j.Logger LOG
protected static final ObjectMapper MAPPER
protected PreferenceManager prefMan
protected E extends RestClient restClient
protected int rows
protected final WebMarkupContainer container
protected final boolean filtered
protected AjaxDataTablePanel<T extends Serializable,String> resultTable
protected DP extends DirectoryDataProvider<T> dataProvider
protected final BasePage page
protected String itemKeyFieldName
protected final BaseModal<W extends Serializable> altDefaultModal
protected final BaseModal<W extends Serializable> displayAttributeModal
protected final ActionLinksTogglePanel<T extends Serializable> actionTogglePanel
public DirectoryPanel(String id, PageReference pageRef)
id
- panel id.pageRef
- page reference.public DirectoryPanel(String id, PageReference pageRef, boolean wizardInModal)
public DirectoryPanel(String id, PageReference pageRef, boolean showPaginator, boolean wizardInModal)
protected DirectoryPanel(String id, DirectoryPanel.Builder<T,W,E> builder)
protected DirectoryPanel(String id, DirectoryPanel.Builder<T,W,E> builder, boolean wizardInModal)
protected abstract DP dataProvider()
protected abstract String paginatorRowsKey()
protected void initResultTable()
protected ActionsPanel<Serializable> getHeader(String componentId)
public void search(AjaxRequestTarget target)
public void updateResultTable(AjaxRequestTarget target)
protected void updateResultTable(boolean create)
protected void updateResultTable(boolean create, int rows)
protected void resultTableCustomChanges(AjaxDataTablePanel.Builder<T,String> resultTableBuilder)
resultTableBuilder
- result table builder.public DirectoryPanel<T,W,DP,E> disableCheckBoxes()
public void onEvent(IEvent<?> event)
onEvent
in interface IEventSink
onEvent
in class WizardMgtPanel<W extends Serializable>
protected void customActionOnFinishCallback(AjaxRequestTarget target)
WizardMgtPanel
customActionOnFinishCallback
in class WizardMgtPanel<W extends Serializable>
target
- Ajax request target.protected ActionsPanel<T> getActions(IModel<T> model)
protected ActionLinksTogglePanel<T> actionTogglePanel()
protected ActionLinksTogglePanel<T> getTogglePanel()
protected abstract Collection<ActionLink.ActionType> getBatches()
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.