T
- type of recordpublic class GenericPoppableReportResult<T extends Serializable> extends PoppableReportResult<T,ReporterMeta>
PoppableReportResult
for generic purpose.
This class assumes only one type of record is being used or type T.
clickableFieldNames
then, for those fields a SelectableRecord Fragment
is created that contains AbstractLink link = makePoppable("
detailsLink", (Serializable)record, fieldName)
PoppableReportResult.makePoppable(String, Object, String, Object...)
else getComponentForCell(String, Object, Object, int, String, ReporterMeta)
is called.Modifier and Type | Field and Description |
---|---|
static String |
ATTRIB_TRANSFORM_RECORD
A
Transformer that converts the record into the desired entity for the target panel to display. |
authorizationModule, params, secirityLog
Constructor and Description |
---|
GenericPoppableReportResult(String id) |
GenericPoppableReportResult(String id,
org.apache.wicket.model.IModel<ReporterMeta> model,
org.apache.wicket.MarkupContainer targetPanel,
Object[] params) |
GenericPoppableReportResult(String id,
org.apache.wicket.model.IModel<ReporterMeta> model,
Object[] params) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.wicket.Component |
getComponentForCell(String componentId,
Object value,
Object record,
int colIndex,
String fieldName,
ReporterMeta reporterMeta)
By default converts every cell data into a Label
|
protected void |
onRecordClick(org.apache.wicket.ajax.AjaxRequestTarget target,
String id,
Object record,
String fieldName,
Object... context)
The target panel is set and added.
|
void |
setClickableFieldNames(Collection<String> clickableFieldNames)
Collection of field names for the record that will be click-able.
|
void |
setTargetPanel(org.apache.wicket.MarkupContainer targetPanel)
Component that should be displayed when a click-able field is clicked.
|
defineReportDataProvider, makePoppable
defineColumns, filter, 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 static final String ATTRIB_TRANSFORM_RECORD
Transformer
that converts the record into the desired entity for the target panel to display.
The record is in the form left by Reporter.getRecordTransformer()
public GenericPoppableReportResult(String id)
public GenericPoppableReportResult(String id, org.apache.wicket.model.IModel<ReporterMeta> model, Object[] params)
public GenericPoppableReportResult(String id, org.apache.wicket.model.IModel<ReporterMeta> model, org.apache.wicket.MarkupContainer targetPanel, Object[] params)
protected void onRecordClick(org.apache.wicket.ajax.AjaxRequestTarget target, String id, Object record, String fieldName, Object... context)
Initializable
, then it will be initialized as well.onRecordClick
in class PoppableReportResult<T extends Serializable,ReporterMeta>
target
- as AjaxRequestTargetid
- as Component Idrecord
- as ObjectfieldName
- as String; same as supplied to PoppableReportResult.makePoppable(String, Object, String, Object...)
context
- Object... additional paramsprotected org.apache.wicket.Component getComponentForCell(String componentId, Object value, Object record, int colIndex, String fieldName, ReporterMeta reporterMeta)
ReportResult
getComponentForCell
in class ReportResult<T extends Serializable,ReporterMeta>
componentId
- as String, passed Id for component from the Container like a Data gridvalue
- as Object of the cellrecord
- as Object, defining the row as a List, Array or any EntitycolIndex
- as intfieldName
- as String (Name of the field if its an entity or ColIndex is not)reporterMeta
- as public void setTargetPanel(org.apache.wicket.MarkupContainer targetPanel)
Initializable
, then it will be initialized when a field is clicked.targetPanel
- public void setClickableFieldNames(Collection<String> clickableFieldNames)
clickableFieldNames
- Copyright © 2018. All rights reserved.