T
- as Report row Record typeRM
- as ReporterMeta
typepublic abstract class PoppableReportResult<T extends Serializable,RM extends ReporterMeta> extends ReportResult<T,RM>
ReportResult
which allows Ordering of Grid and opening a record from the Grid in a PopUp / Dedicated Record details PanelauthorizationModule, params, secirityLog
Constructor and Description |
---|
PoppableReportResult(String id) |
PoppableReportResult(String id,
org.apache.wicket.model.IModel<RM> model,
Object[] params) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider |
defineReportDataProvider()
Add ability to Sort on the Report by overriding the
SortableDataProvider and customizing it
Assumes Reporter is DataSourceReporter using a JPAQueryTransformer |
protected org.apache.wicket.ajax.markup.html.AjaxLink |
makePoppable(String id,
Object record,
String fieldName,
Object... context)
Simply provide a Poppable Link that calls javascript:popup('dialog-container') to invoke the JQuery Dialog.
|
protected abstract void |
onRecordClick(org.apache.wicket.ajax.AjaxRequestTarget target,
String id,
Object record,
String fieldName,
Object... context) |
defineColumns, filter, getComponentForCell, getDataPanel, getParams, getStatelessHint, onChange, onInitialize, populateBulkButtonItem, secure, setParams
getMarkupType, getWebPage, getWebRequest
add, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeforeRender, onBeginRequest, onComponentTag, onConfigure, onDetach, onEndRequest, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrap
public PoppableReportResult(String id)
protected org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider defineReportDataProvider()
SortableDataProvider
and customizing it
DataSourceReporter
using a JPAQueryTransformer
defineReportDataProvider
in class ReportResult<T extends Serializable,RM extends ReporterMeta>
protected org.apache.wicket.ajax.markup.html.AjaxLink makePoppable(String id, Object record, String fieldName, Object... context)
id
- of componentrecord
- that was selectedfieldName
- as String (refers to the entity field name/mapping specifying the column selected in the ReportObject
- as varargs to specify paramsprotected abstract void onRecordClick(org.apache.wicket.ajax.AjaxRequestTarget target, String id, Object record, String fieldName, Object... context)
target
- as AjaxRequestTargetid
- as Component Idrecord
- as ObjectfieldName
- as String; same as supplied to makePoppable(String, Object, String, Object...)
context
- Object... additional paramsCopyright © 2018. All rights reserved.