Module wicket.bootstrap.core
Class BootstrapGenericPanel<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
org.apache.wicket.markup.html.panel.GenericPanel<T>
de.agilecoders.wicket.core.markup.html.bootstrap.panel.BootstrapGenericPanel<T>
- Type Parameters:
T- the type of the panel's model object
- All Implemented Interfaces:
Serializable,Iterable<Component>,IEventSink,IEventSource,IFeedbackContributor,IConverterLocator,IGenericComponent<T,,GenericPanel<T>> IMetadataContext<Serializable,,Component> IQueueRegion,IHeaderContributor,IRequestableComponent,IHierarchical<Component>,IClusterable
A convenient implementation of the Bootstrap-styled Card of a Wicket
GenericPanel.
documentation: https://getbootstrap.com/docs/5.3/components/card/
Implement as you would a standard Wicket GenericPanel.
Adding components to this panel will insert them below the markup for the body and above the markup for the
footer, per the Bootstrap documentation.- Author:
- Eric Hamel eric.hamel@me.com
- See Also:
-
Field Summary
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
ConstructorsConstructorDescriptionConstruct.BootstrapGenericPanel(String id, PanelType panelType) Construct.Construct.BootstrapGenericPanel(String id, IModel<T> model, IModel<String> panelTitleModel, PanelType panelType) Construct. -
Method Summary
Modifier and TypeMethodDescriptionGetter for Title Model.protected PanelnewBodyPanel(String id, IModel<T> model) Override this method to provide a body for this panel..protected PanelnewFooterPanel(String id, IModel<T> model) Override this method to provide a footer for this panel.protected LabelOverride this method to provide your own implementation of a Label.protected ComponentnewTopImage(String id, IModel<T> model) Override this method to provide top image for this panel.protected voidprotected voidwithPanelType(PanelType panelType) Methods inherited from class org.apache.wicket.markup.html.panel.Panel
getRegionMarkup, newMarkupSourcingStrategyMethods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionMethods 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, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildrenMethods 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, getSession, 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, 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, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.wicket.IGenericComponent
getDefaultModel, getDefaultModelObject, getModel, getModelObject, setDefaultModel, setDefaultModelObject, setModel, setModelObjectMethods inherited from interface org.apache.wicket.IQueueRegion
dequeue, newDequeueContextMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
BootstrapGenericPanel
Construct.- Parameters:
id- the component id
-
BootstrapGenericPanel
Construct.- Parameters:
id- the component idpanelType- styling of the panel
-
BootstrapGenericPanel
Construct.- Parameters:
id- the component idmodel- the component modelpanelTitleModel- the title model
-
BootstrapGenericPanel
public BootstrapGenericPanel(String id, IModel<T> model, IModel<String> panelTitleModel, PanelType panelType) Construct.- Parameters:
id- the component idmodel- the component modelpanelTitleModel- the title modelpanelType- styling of the panel
-
-
Method Details
-
withPanelType
- Parameters:
panelType-- Returns:
- this for chaining
-
onInitialize
protected void onInitialize()- Overrides:
onInitializein classMarkupContainer
-
onComponentTag
- Overrides:
onComponentTagin classComponent
-
getTitleModel
Getter for Title Model.- Returns:
- the Title Model
-
newTitleLabel
Override this method to provide your own implementation of a Label.- Parameters:
id- the component idmodel- the component modeltitleModel- the title model- Returns:
- the label to use
-
newBodyPanel
Override this method to provide a body for this panel..- Parameters:
id- the component idmodel- the component model- Returns:
- the panel to use
-
newTopImage
Override this method to provide top image for this panel.- Parameters:
id- the image identifiermodel- the panel model- Returns:
- image to show in panel
-