Class RenderHolderComponent
- java.lang.Object
-
- org.apache.wicket.Component
-
- org.apache.wicket.MarkupContainer
-
- org.apache.wicket.markup.html.WebMarkupContainer
-
- lumis.portal.presentation.tag.page.RenderHolderComponent
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.IClusterable
,org.apache.wicket.IConverterLocator
public class RenderHolderComponent extends org.apache.wicket.markup.html.WebMarkupContainer
Component used to mark a interface holder in a layout file. It will render the interfaces in the corresponding holder.- Since:
- 6.0.0
- Version:
- $Revision: 16824 $ $Date: 2015-01-23 18:49:12 -0200 (Fri, 23 Jan 2015) $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RenderHolderComponent(String id, String holderId, boolean hasRenderInterfaceChild)
Creates a newRenderHolderComponent
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addServiceInterfaceInstance(String interfaceInstanceId)
Adds a interface instance in this holder.String
getHolderId()
Returns the identifier of the holder rendered by this component.List<String>
getServiceInterfaceInstanceIds()
Returns the list of identifiers of service interface instances in this holder.boolean
insertServiceInterfaceInstance(String iiToInsert, String sibling, boolean before)
Inserts a service interface instance in this holder.protected void
onBeforeRender()
protected void
onComponentTag(org.apache.wicket.markup.ComponentTag tag)
boolean
removeServiceInterfaceInstance(String serviceInterfaceInstanceId)
Removes a service interface instance from this holder.-
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getMarkupType, getWebPage, getWebRequest
-
Methods inherited from class org.apache.wicket.MarkupContainer
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
-
Methods inherited from class org.apache.wicket.Component
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, 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, getStatelessHint, 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, onBeginRequest, 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
-
-
-
-
Constructor Detail
-
RenderHolderComponent
public RenderHolderComponent(String id, String holderId, boolean hasRenderInterfaceChild)
Creates a newRenderHolderComponent
.- Parameters:
id
- the component identifier.holderId
- the identifier of the holder to be rendered.hasRenderInterfaceChild
- indicates if this component has a 'interface' child in the markup.- Since:
- 6.0.0
-
-
Method Detail
-
onBeforeRender
protected void onBeforeRender()
- Overrides:
onBeforeRender
in classorg.apache.wicket.Component
-
onComponentTag
protected void onComponentTag(org.apache.wicket.markup.ComponentTag tag)
- Overrides:
onComponentTag
in classorg.apache.wicket.Component
-
removeServiceInterfaceInstance
public boolean removeServiceInterfaceInstance(String serviceInterfaceInstanceId)
Removes a service interface instance from this holder.- Parameters:
serviceInterfaceInstanceId
- the service interface instance identifier.- Returns:
true
if the service interface instance was removed,false
if it is not in this holder.- Since:
- 6.0.0
-
insertServiceInterfaceInstance
public boolean insertServiceInterfaceInstance(String iiToInsert, String sibling, boolean before)
Inserts a service interface instance in this holder.- Parameters:
iiToInsert
- the identifier of the service interface instance to be inserted.sibling
- the identifier of the service interface instance that the will be used to find the place to insert theiiToInsert
.before
-true
to insert beforesibling
,false
to insert after it.- Returns:
true
if the service interface instance was inserted,false
ifsibling
is not in this holder.- Since:
- 6.0.0
-
addServiceInterfaceInstance
public void addServiceInterfaceInstance(String interfaceInstanceId)
Adds a interface instance in this holder.- Parameters:
interfaceInstanceId
- the interface instance identifier.- Since:
- 6.0.0
-
getServiceInterfaceInstanceIds
public List<String> getServiceInterfaceInstanceIds()
Returns the list of identifiers of service interface instances in this holder.- Returns:
- immutable view of the service interface instance identifiers in this holder.
- Since:
- 6.0.0
-
getHolderId
public String getHolderId()
Returns the identifier of the holder rendered by this component.- Returns:
- the holder identifier.
- Since:
- 6.0.0
-
-