public abstract class ExtensionPointPage<R extends PersistentRecord> extends RecordActionTable<R>
RecordActionTable.ICalculatedField<R extends PersistentRecord>, RecordActionTable.RecordActionTableDelete
ajaxUpdatedComponents, configPage, timerAdded
feedback, returnPanel
Constructor and Description |
---|
ExtensionPointPage(IConfigPage configPage) |
ExtensionPointPage(IConfigPage configPage,
org.apache.wicket.model.IModel<? extends java.util.List<? extends R>> model) |
ExtensionPointPage(IConfigPage configPage,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCustomRecordInstanceActions(org.apache.wicket.markup.repeater.RepeatingView view,
R main)
Adds record instance actions defined by the extension point type of the given record
|
protected void |
addRecordInstanceActions(org.apache.wicket.markup.repeater.RepeatingView view,
R main)
Provides an opportunity to add any actions that deal with specific record instances.
|
protected org.apache.wicket.model.IModel<java.util.List<R>> |
createRecordModel(RecordMeta<R> meta) |
protected void |
doDeleteRelatedRecords(PersistenceSession session,
R main)
Provides a chance for subclasses to delete any related records before this record is deleted.
|
protected PersistentRecord |
findSubRecord(R main)
Finds the main record's sub-settings record, or null if there is none.
|
protected PersistentRecord |
findSubRecord(R main,
boolean createIfMissing)
Finds the extension point's settings record, if any.
|
protected abstract ExtensionPointManager |
getExtensionPointManager() |
protected StringField |
getExtensionPointTypeField()
Return the field in the master class that represents the extension point type.
|
protected java.lang.String |
getFieldValue(R record,
FormMeta formMeta) |
protected boolean |
includeTypeInModel(ExtensionPointType extensionPointType)
Returns whether or not the particular record should be included in the record model.
|
protected org.apache.wicket.markup.html.WebMarkupContainer |
newEditRecordAction(java.lang.String id,
R record) |
protected org.apache.wicket.markup.html.WebMarkupContainer |
newRecordAction(java.lang.String id)
Overridden to create a new ExtensionPointChoicePanel that lets the user choose the type of extension point record
to create.
|
protected void |
onExtensionPointChosen(PersistentRecord[] records,
ExtensionPointType extensionPoint)
Called when a new record is being created, after the user has chosen the extension point type.
|
addRecordActions, canDelete, createFooter, getActionParentPanel, getCalculatedFieldDisplayValue, getCalculatedFields, getDescriptiveFields, getExemptForeignKeys, getInstanceActionMaxRowCount, getNoDescriptiveFieldsKey, getNoRowsKey, getRecordMeta, getTitleKey, initComponents, newDeleteRecordAction, onBeforeRender, onDelete, setupNewRecord
getHelpResourceKey, getHelpTopicId, getMenuLocation, getMenuPath, getTipLabelKey, getTipLabelModel, getTitleModel, initTitleArea, isEscapeHTMLInTipLabel, isFeedbackEnabled, isTitleVisible, log
getWebPage, getWebRequest, getWebResponse, getWebSession
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, 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, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
public ExtensionPointPage(IConfigPage configPage)
public ExtensionPointPage(IConfigPage configPage, java.lang.String id)
public ExtensionPointPage(IConfigPage configPage, org.apache.wicket.model.IModel<? extends java.util.List<? extends R>> model)
protected StringField getExtensionPointTypeField()
protected abstract ExtensionPointManager getExtensionPointManager()
protected org.apache.wicket.model.IModel<java.util.List<R>> createRecordModel(RecordMeta<R> meta)
createRecordModel
in class RecordActionTable<R extends PersistentRecord>
protected boolean includeTypeInModel(ExtensionPointType extensionPointType)
protected java.lang.String getFieldValue(R record, FormMeta formMeta)
getFieldValue
in class RecordActionTable<R extends PersistentRecord>
protected org.apache.wicket.markup.html.WebMarkupContainer newRecordAction(java.lang.String id)
newRecordAction
in class RecordActionTable<R extends PersistentRecord>
protected void onExtensionPointChosen(PersistentRecord[] records, ExtensionPointType extensionPoint)
records
- Length will be 1 or 2. Index 0 will always contain the master record for the extension point manager.
Index 1 will contain the extension-point specific sub-record (if applicable)extensionPoint
- The type of extension point that the user chose.protected org.apache.wicket.markup.html.WebMarkupContainer newEditRecordAction(java.lang.String id, R record)
newEditRecordAction
in class RecordActionTable<R extends PersistentRecord>
protected void addRecordInstanceActions(org.apache.wicket.markup.repeater.RepeatingView view, R main)
RecordActionTable
addRecordInstanceActions
in class RecordActionTable<R extends PersistentRecord>
protected void addCustomRecordInstanceActions(org.apache.wicket.markup.repeater.RepeatingView view, R main)
protected PersistentRecord findSubRecord(R main)
protected PersistentRecord findSubRecord(R main, boolean createIfMissing)
main
- The main profile recordcreateIfMissing
- If this flag is true, a sub-settings record will be created if it is missing.protected void doDeleteRelatedRecords(PersistenceSession session, R main)
RecordActionTable
doDeleteRelatedRecords
in class RecordActionTable<R extends PersistentRecord>