Class BasePanel<T>

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.evolveum.midpoint.gui.api.component.BasePanel<T>
All Implemented Interfaces:
Serializable, Iterable<org.apache.wicket.Component>, org.apache.wicket.event.IEventSink, org.apache.wicket.event.IEventSource, org.apache.wicket.feedback.IFeedbackContributor, org.apache.wicket.IConverterLocator, org.apache.wicket.IMetadataContext<Serializable,org.apache.wicket.Component>, org.apache.wicket.IQueueRegion, 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:
AbstractAssignmentListPanel, AbstractItemWrapperColumnPanel, AbstractOrgTabPanel, AbstractPopupTabPanel, AbstractSearchConfigurationPanel, AbstractSearchItemPanel, AbstractShadowPanel, AbstractSummaryPanel, AbstractTreeTablePanel, AbstractWizardBasicPanel, AbstractWizardPanel, ACAttributePanel, ACAttributeValuePanel, AceEditorFormGroup, AceEditorPanel, ActionConfigurationPanel, ActionDropdownButtonPanel, ActionItemLinkPanel, ActionsPanel, ActiveButtonWithDropDownPanel, ActivitiesItemProcessingPanel, AjaxLinkTruncatePanelAction, AjaxLinkWithBadgesPanel, ApplicablePolicyConfigPanel, ApplicablePolicyGroupPanel, ApprovalProcessesPreviewPanel, ApprovalProcessExecutionInformationPanel, ApprovalProcessExecutionInformationPanelTextOnly, AssignmentConflictPanel, AssignmentConstructionPanel, AssignmentEditorPanel, AssignmentHeaderPanel, AssignmentObjectRelationDefinitionDialog, AssignmentPathPanel, AssignmentPopup, AssignmentsInfoDialog, AssociationExpressionValuePanel, AssociationTilePanel, AsyncUpdatePanel, AttributeSettingPopupPanel, AuthenticationInfoPanel, AutoRefreshPanel, AxiomSearchPanel, BadgeListPanel, BadgePanel, BasePageAwarePanel, BasicSearchPanel, BoxedTablePanel, Callout, CampaignsPanel, CampaignTilePanel, CandidateAssignPanel, CandidateRolesPopupPanel, CapabilitiesPanel, CaptchaPanel, CardOutlineLeftPanel, CartSummaryPanel, CaseWorkItemActionsPanel, CaseWorkItemsTableWithDetailsPanel, CatalogItemDetailsPanel, CertificationItemsPanel, CertificationItemsTabbedPanel, CertResponseDetailsPanel, ChangePasswordPanel, ChangesPanel, ChatPanel, CheckFormGroup, ChooseFocusTypeAndRelationDialogPanel, ChooseMemberPopup, ChooseRelationPanel, ChooseTypePanel, ChoseSchemaPanel, ColumnResultPanel, CommentPanel, CompositedButtonPanel, CompositedIconPanel, CompositedIconTextPanel, ConfirmationPanel, ConflictSolverPanel, ConstructionAssociationPanel, ContactOrgUnitPanel, ContainerableListPanel, ContainersDropDownPanel, ContainerValuePanel, ContainerWithLifecyclePanel, CountIconPanel, CreateObjectForReferencePanel, CreateResourceTemplatePanel, CreateTemplatePanel, CsvDownloadButtonPanel, CustomContainerPanel, CustomValidityPanel, DashboardPanel, DashboardSearchPanel, DateRangePicker, DeadlinePanel, DebugButtonPanel, DecisionsPanel, DefaultContainerablePanel, DefinitionBasicPanel, DefinitionScopePanel, DefinitionStagePanel, DefinitionStagesPanel, DefinitionXmlPanel, DeltaPanel, DetailedPatternSelectionPanel, DetailsNavigationPanel, DetailsTablePanel, DisplayNamePanel, DoubleButtonPanel, DownloadButtonPanel, DropdownButtonPanel, DropDownFormGroup, DynamicFieldGroupPanel, DynamicFormPanel, ErrorPanel, EvaluatedTriggerGroupListPanel, EvaluatedTriggerGroupPanel, EvaluatedTriggerPanel, EvaluatorExpressionPanel, ExecuteChangeOptionsPanel, ExecuteChangeOptionsPanel, ExportingPanel, ExportMiningPanel, ExpressionEditorPanel, ExpressionPanel, ExpressionTypeSelectPopup, FormSessionOptionPanel, FulltextSearchPanel, GenericMultiValueLabelEditPanel, HorizontalCampaignDetailsPanel, IconAjaxButtonBadge, IconWithLabel, IdentityDetailsPanel, ImageDetailsPanel, ImagePanel, ImportOptionsPanel, ImportReportPopupPanel, InfoBox, InformationListPanel, InformationPanel, InlineButtonPanel, InternalsCachePanel, InternalsClockPanel, InternalsConfigPanel, InternalsCountersPanel, InternalsDebugUtilPanel, InternalsLoggedInUsersPanel, InternalsMemoryPanel, InternalsPerformancePanel, InternalsThreadsPanel, InternalsTracesPanel, ItemHeaderPanel, ItemPanel, ItemPathPanel, ItemPathSegmentPanel, ItemRefinedPanel, LabelWithCheck, LabelWithHelpPanel, LeftMenuPanel, LegendPanel, LinkedReferencePanel, LinkIconLabelIconPanel, LinkWithHelpPanel, ListContainersPopup, ListGroupMenuItemPanel, ListGroupMenuPanel, ListItemWithPanelForItemPanel, ListMappingPanel, LivesyncTokenEditorPanel, LocalePanel, LocalesDropDownMenu, LockoutStatusPanel, MainMenuPanel, MappingColumnPanel, MembersDetailsPanel, MembersDetailsPopupPanel, MenuItemLinkPanel, MenuLinkPanel, MergeObjectDetailsPanel, MergeObjectsPanel, MessagePanel, MetadataPanel, MetricValuePanel, ModalFooterPanel, ModelOperationStatusPanel, ModificationsPanel, ModificationTargetPreviewPanel, MultiButtonPanel, MultiCompositedButtonPanel, MultifunctionalButton, MultiStateHorizontalButton, MultiValueAutoCompleteTextPanel, MultiValueChoosePanel, MultivalueContainerDetailsPanel, MultiValueDropDownPanel, MultiValueObjectChoosePanel, MultiValueTextEditPanel, MultiValueTextFormGroup, MultiValueTextPanel, MyAccountsPanel, MyAssignmentsPanel, MyTreeColumnPanel, NavigationPanel, NewObjectCreationPopup, NotificationConfigTabPanel, ObjectBasicPanel, ObjectBrowserPanel, ObjectReferenceColumnPanel, ObjectTilePanel, ObjectTypeSelectPanel, ObjectVerticalSummaryPanel, OperationalButtonsPanel, OperationResultPanel, OrgTreeAssignablePanel, OrgTreeFolderContent, OutlierAnomaliesItemPanel, OutlierAttributeItemPanel, OutlierClusterItemPanel, OutlierHeaderResultPanel, OutlierItemResultPanel, OutlierPatternItemPanel, OutlierResultPanel, PagingSizePanel, PanelPopupPanel, PartitionOverviewItemPanel, PasswordLimitationsPanel, PasswordPolicyValidationPanel, PendingOperationPanel, PersonalInfoPanel, PopoverSearchPanel, PopoverSearchPopupPanel, PreviewChangesTabPanel, PrismObjectValuePanel, PrismValueMetadataPanel, PrismValuePanel, ProcessInstancesPanel, ProgressBar, ProgressBarForm, ProgressBarPanel, ProgressBarSecondStyle, ProgressPanel, ProgressPanel, ProgressStatus, ProtectedStringPanel, ProvenanceAcquisitionHeaderPanel, QNameEditorPanel, QueryConverterPanel, QueryPlaygroundPanel, RelatedTasksPanel, RelationDropDownChoicePanel, RelationsPanel, RepeatingAttributeForm, RepeatingAttributeProgressForm, ResourceContentPanel, ReviewersStatisticsPanel, RoleAnalysisAccessDistributionPanel, RoleAnalysisAccessTabPanel, RoleAnalysisAttributeChartPanel, RoleAnalysisAttributeChartPopupPanel, RoleAnalysisAttributePanel, RoleAnalysisAttributeResultChartPanel, RoleAnalysisCandidateRoleTable, RoleAnalysisCandidateRoleTileTable, RoleAnalysisCandidateTilePanel, RoleAnalysisChartPanel, RoleAnalysisClusteringAttributeTable, RoleAnalysisClusterOccupationPanel, RoleAnalysisCollapsableTablePanel, RoleAnalysisContainerPanel, RoleAnalysisDetectedAnomalyTable, RoleAnalysisDetectedPatternDetails, RoleAnalysisDetectedPatternDetailsPopup, RoleAnalysisDetectedPatternTable, RoleAnalysisDetectedPatternTileTable, RoleAnalysisDistributionProgressPanel, RoleAnalysisHeaderWithWidgetsPanel, RoleAnalysisIdentifyWidgetPanel, RoleAnalysisInfoAccessPanel, RoleAnalysisInfoBox, RoleAnalysisInfoPanel, RoleAnalysisMigrationRoleTilePanel, RoleAnalysisMigrationRoleTileTable, RoleAnalysisMultiplePartitionAnomalyResultTabPopup, RoleAnalysisOutlierAssociatedTileTable, RoleAnalysisOutlierDashboardPanel, RoleAnalysisOutlierPartitionTable, RoleAnalysisOutlierPartitionTilePanel, RoleAnalysisOutlierPartitionTileTable, RoleAnalysisOutlierTilePanel, RoleAnalysisPartitionOverviewPanel, RoleAnalysisPatternTilePanel, RoleAnalysisReconfigureClusterPopupPanel, RoleAnalysisReconfigureSessionPopupPanel, RoleAnalysisSessionTilePanel, RoleAnalysisSessionTileTable, RoleAnalysisSinglePartitionAnomalyResultTabPopup, RoleAnalysisTable, RoleAnalysisTableOpPanelItem, RoleAnalysisTableOpPanelItemPanel, RoleAnalysisTableOpPanelPatternItem, RoleAnalysisTableSettingPanel, RoleAnalysisValueLabelPanel, RoleAnalysisViewAllPanel, RoleAnalysisWidgetsPanel, RoleOfTeammateMenuPanel, RoundedIconPanel, RoundedImagePanel, RunReportPopupPanel, SaveSearchPanel, SearchButtonWithDropdownMenu, SearchFilterPanel, SearchPanel, SecretProviderPanel, SecurityQuestionsPanel, SelectableInfoBoxPanel, SelectableItemListPopoverPanel, SelectReportTemplatePanel, SelfConsentPanel, ShadowAssociationValuePanel, ShoppingCartEditPanel, SideBarMenuPanel, SimpleErrorPanel, SimplePanel, SimplePopupable, SimpleRoleSelector, SimpleVisualizationPanel, SingleButtonPanel, SingleContainerPanel, SingleContainerPopupPanel, SingleTileChoicePanel, SmallBox, StageEditorPanel, StatisticBoxPanel, StatisticDashboardWidget, StatisticListBoxPanel, StatisticsPanel, StringLimitationPanel, StyledPanel, SwitchableApprovalProcessPreviewsPanel, SwitchablePropertyValuePanel, SynchronizationSituationTransitionPanel, SystemInfoPanel, TaskCreationPopup, TemplateTilePanel, TestConnectionMessagesPanel, TestConnectionResultPanel, TextFormGroup, ThreeStateBooleanPanel, TilePanel, TileTablePanel, TitleWithMarks, TogglePanel, TreeTablePanel, TriStateFormGroup, TwoStateBooleanPanel, TypedAssignablePanel, ValueChoosePanel, VariableBindingDefinitionTypePanel, VerticalFormPanel, VisualizationItemLinePanel, VisualizationItemsPanel, VisualizationItemValuePanel, VisualizationPanel, WidgetPanel, WidgetRmChartComponent, WidgetTableHeader, WizardHeaderStepPanel, WizardPanel, WizardStepPanel, WorkItemDetailsPanel, XmlSearchPanel

public class BasePanel<T> extends org.apache.wicket.markup.html.panel.Panel
Base class for most midPoint GUI panels. It has a constructor and utility methods for convenient handling of the model. It also has other utility methods often used in reusable components.

Almost all reusable components should extend this class.

Author:
lazyman, semancik
See Also:
  • Field Summary

    Fields inherited from class org.apache.wicket.markup.html.panel.Panel

    PANEL

    Fields inherited from class org.apache.wicket.Component

    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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    BasePanel(String id, org.apache.wicket.model.IModel<T> model)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    createComponentPath(String... components)
     
    org.apache.wicket.model.IModel<T>
     
    org.apache.wicket.model.StringResourceModel
    createStringResource(PolyString polystringKey, Object... objects)
     
    org.apache.wicket.model.StringResourceModel
    createStringResource(PolyStringType polystringKey, Object... objects)
     
    org.apache.wicket.model.StringResourceModel
     
    org.apache.wicket.model.StringResourceModel
     
    org.apache.wicket.model.StringResourceModel
    createStringResource(Enum<?> e, String prefix, String nullKey)
     
    org.apache.wicket.model.StringResourceModel
    createStringResource(String resourceKey, Object... objects)
     
    org.apache.wicket.model.StringResourceModel
    createStringResource(String resourceKey, org.apache.wicket.model.IModel<?> model, Object... objects)
     
    org.apache.wicket.Component
     
     
    org.apache.wicket.model.IModel<T>
     
     
     
    This method was created to be used instead of getPageBase after a big number of the util methods moved to the PageAdminLTE.
     
     
     
     
     
    getString(String resourceKey, Object... objects)
     
     
     
    protected void
     

    Methods inherited from class org.apache.wicket.markup.html.panel.Panel

    getRegionMarkup, newMarkupSourcingStrategy

    Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer

    getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession

    Methods inherited from class org.apache.wicket.MarkupContainer

    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

    Methods inherited from class org.apache.wicket.Component

    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, getMarkupTag, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, 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, onEvent, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.wicket.IQueueRegion

    dequeue, newDequeueContext

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • BasePanel

      public BasePanel(String id)
    • BasePanel

      public BasePanel(String id, org.apache.wicket.model.IModel<T> model)
  • Method Details

    • createModel

      public org.apache.wicket.model.IModel<T> createModel()
    • getModel

      public org.apache.wicket.model.IModel<T> getModel()
    • getModelObject

      public T getModelObject()
    • getString

      public String getString(String resourceKey, Object... objects)
    • getString

      public String getString(Enum<?> e)
    • createStringResource

      public org.apache.wicket.model.StringResourceModel createStringResource(String resourceKey, org.apache.wicket.model.IModel<?> model, Object... objects)
    • createStringResource

      public org.apache.wicket.model.StringResourceModel createStringResource(String resourceKey, Object... objects)
    • createStringResource

      public org.apache.wicket.model.StringResourceModel createStringResource(PolyString polystringKey, Object... objects)
    • createStringResource

      public org.apache.wicket.model.StringResourceModel createStringResource(PolyStringType polystringKey, Object... objects)
    • createStringResource

      public org.apache.wicket.model.StringResourceModel createStringResource(Enum<?> e)
    • createStringResource

      public org.apache.wicket.model.StringResourceModel createStringResource(Enum<?> e, String prefix)
    • createStringResource

      public org.apache.wicket.model.StringResourceModel createStringResource(Enum<?> e, String prefix, String nullKey)
    • getPageBase

      @Contract(pure=true) public PageBase getPageBase()
    • getParentPage

      @Contract(pure=true) public PageAdminLTE getParentPage()
      This method was created to be used instead of getPageBase after a big number of the util methods moved to the PageAdminLTE. For now it is used only by the components on the non-PageBase pages, in the future should be reviewed and refactored to be more generally used
    • showResult

      protected void showResult(OperationResult result)
    • getFeedbackPanel

      public org.apache.wicket.Component getFeedbackPanel()
    • getRegistry

      public GuiComponentRegistry getRegistry()
    • getMidpointConfiguration

      public MidpointConfiguration getMidpointConfiguration()
    • getPrismContext

      public PrismContext getPrismContext()
    • getSchemaService

      public SchemaService getSchemaService()
    • createComponentPath

      protected String createComponentPath(String... components)
    • getWebApplicationConfiguration

      public WebApplicationConfiguration getWebApplicationConfiguration()
    • getSession

      public MidPointAuthWebSession getSession()
      Overrides:
      getSession in class org.apache.wicket.Component
    • getSubscriptionState

      public SubscriptionState getSubscriptionState()