Class ExtensionPointPage<R extends PersistentRecord>
java.lang.Object
org.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.panel.Panel
com.inductiveautomation.ignition.gateway.web.components.ConfigPanel
com.inductiveautomation.ignition.gateway.web.components.RecordActionTable<R>
com.inductiveautomation.ignition.gateway.web.components.ExtensionPointPage<R>
- All Implemented Interfaces:
- Serializable,- Iterable<org.apache.wicket.Component>,- org.apache.wicket.event.IEventSink,- org.apache.wicket.event.IEventSource,- org.apache.wicket.IConverterLocator,- org.apache.wicket.markup.html.IHeaderContributor,- org.apache.wicket.request.component.IRequestableComponent,- org.apache.wicket.util.IHierarchical<org.apache.wicket.Component>,- org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
- AbstractTaskPage
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class com.inductiveautomation.ignition.gateway.web.components.RecordActionTableRecordActionTable.ICalculatedField<R extends PersistentRecord>, RecordActionTable.RecordActionTableDelete
- 
Field SummaryFields inherited from class com.inductiveautomation.ignition.gateway.web.components.RecordActionTableconfigPageFields inherited from class com.inductiveautomation.ignition.gateway.web.components.ConfigPanelfeedback, returnPanelFields inherited from class org.apache.wicket.markup.html.panel.PanelPANELFields inherited from class org.apache.wicket.ComponentENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER
- 
Constructor SummaryConstructorsConstructorDescriptionExtensionPointPage(IConfigPage configPage) ExtensionPointPage(IConfigPage configPage, String id) ExtensionPointPage(IConfigPage configPage, org.apache.wicket.model.IModel<? extends List<? extends R>> model) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddCustomRecordInstanceActions(org.apache.wicket.markup.repeater.RepeatingView view, R main) Adds record instance actions defined by the extension point type of the given recordprotected voidaddRecordInstanceActions(org.apache.wicket.markup.repeater.RepeatingView view, R main) Provides an opportunity to add any actions that deal with specific record instances.createRecordModel(RecordMeta<R> meta) protected voiddoDeleteRelatedRecords(PersistenceSession session, R main) Provides a chance for subclasses to delete any related records before this record is deleted.protected PersistentRecordfindSubRecord(R main) Finds the main record's sub-settings record, or null if there is none.protected PersistentRecordfindSubRecord(R main, boolean createIfMissing) Finds the extension point's settings record, if any.protected abstract ExtensionPointManagerprotected StringFieldReturn the field in the master class that represents the extension point type.protected StringgetFieldValue(R record, FormMeta formMeta) protected booleanincludeTypeInModel(ExtensionPointType extensionPointType) Returns whether or not the particular record should be included in the record model.protected org.apache.wicket.markup.html.WebMarkupContainernewEditRecordAction(String id, R record) protected org.apache.wicket.markup.html.WebMarkupContainerOverridden to create a new ExtensionPointChoicePanel that lets the user choose the type of extension point record to create.protected voidonExtensionPointChosen(PersistentRecord[] records, ExtensionPointType extensionPoint) Called when a new record is being created, after the user has chosen the extension point type.Methods inherited from class com.inductiveautomation.ignition.gateway.web.components.RecordActionTableaddRecordActions, canDelete, createFooter, getActionParentPanel, getCalculatedFieldDisplayValue, getCalculatedFieldModel, getCalculatedFields, getDescriptiveFields, getExemptForeignKeys, getInstanceActionMaxRowCount, getNoDescriptiveFieldsKey, getNoRowsKey, getRecordMeta, getTitleKey, initComponents, newDeleteRecordAction, onBeforeRender, onDelete, setupNewRecordMethods inherited from class com.inductiveautomation.ignition.gateway.web.components.ConfigPanelgetHelpResourceKey, getHelpTopicId, getMenuLocation, getMenuPath, getTipLabelKey, getTipLabelModel, getTitleModel, initTitleArea, isEscapeHtmlInTipLabel, isFeedbackEnabled, isTitleVisible, log, renderHeadMethods inherited from class org.apache.wicket.markup.html.panel.PanelnewMarkupSourcingStrategyMethods inherited from class org.apache.wicket.markup.html.WebMarkupContainergetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionMethods inherited from class org.apache.wicket.MarkupContaineradd, 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, visitChildrenMethods inherited from class org.apache.wicket.Componentadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, 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, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, 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, wrapMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
ExtensionPointPage
- 
ExtensionPointPage
- 
ExtensionPointPagepublic ExtensionPointPage(IConfigPage configPage, org.apache.wicket.model.IModel<? extends List<? extends R>> model) 
 
- 
- 
Method Details- 
getExtensionPointTypeFieldReturn the field in the master class that represents the extension point type. Looks for a field named "Type" by default.
- 
getExtensionPointManager
- 
createRecordModel- Overrides:
- createRecordModelin class- RecordActionTable<R extends PersistentRecord>
 
- 
includeTypeInModelReturns whether or not the particular record should be included in the record model. Provides subclasses with the ability to filter out records. Default implementation always returns true.
- 
getFieldValue- Overrides:
- getFieldValuein class- RecordActionTable<R extends PersistentRecord>
 
- 
newRecordActionOverridden to create a new ExtensionPointChoicePanel that lets the user choose the type of extension point record to create. After they choose the extension point type, it brings them to the standard RecordEditForm for the newly created record.- Overrides:
- newRecordActionin class- RecordActionTable<R extends PersistentRecord>
 
- 
onExtensionPointChosenprotected void onExtensionPointChosen(PersistentRecord[] records, ExtensionPointType extensionPoint) Called when a new record is being created, after the user has chosen the extension point type.Default behavior is to go to a RecordEditForm, or to the extension point's custom config panel if one is specified. - Parameters:
- 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.
 
- 
newEditRecordAction- Overrides:
- newEditRecordActionin class- RecordActionTable<R extends PersistentRecord>
 
- 
addRecordInstanceActionsprotected void addRecordInstanceActions(org.apache.wicket.markup.repeater.RepeatingView view, R main) Description copied from class:RecordActionTableProvides an opportunity to add any actions that deal with specific record instances. Default actions are added for edit and delete.- Overrides:
- addRecordInstanceActionsin class- RecordActionTable<R extends PersistentRecord>
 
- 
addCustomRecordInstanceActionsprotected 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
- 
findSubRecordFinds the main record's sub-settings record, or null if there is none.
- 
findSubRecordFinds the extension point's settings record, if any.- Parameters:
- main- The main profile record
- createIfMissing- If this flag is true, a sub-settings record will be created if it is missing.
- Returns:
- The sub-settings record if found or created, null otherwise
 
- 
doDeleteRelatedRecordsDescription copied from class:RecordActionTableProvides a chance for subclasses to delete any related records before this record is deleted. Will be called with an active SimpleORM session.- Overrides:
- doDeleteRelatedRecordsin class- RecordActionTable<R extends PersistentRecord>
 
 
-