public abstract class Selector<T>
extends org.apache.wicket.markup.html.WebMarkupContainer
<wicket:container wicket:id="<id of Selector>">
<ul>
<li><a class="first"><wicket:container wicket:id='currentItemText' /></a>
<ul>
<li wicket:id="list"><a wicket:id="item"><wicket:container wicket:id='text' /></a></li>
</ul>
</li>
</ul>
</wicket:container>
Constructor and Description |
---|
Selector(String id,
org.apache.wicket.model.IModel<HierarchialItemState<T>> model)
Define a List of possible selections with one selected component.
|
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.wicket.Component |
getComponentForFocussedItem(T item)
The first item is the Focussed item
If it returns null, then it will not be added the the list
|
protected abstract org.apache.wicket.Component |
getComponentForItem(T item,
int index,
org.apache.wicket.markup.repeater.AbstractRepeater repeaterContainerComponent)
Get the item for Item in the selection Panel.
|
protected org.apache.wicket.MarkupContainer |
getContainer() |
void |
onInitialize() |
getMarkupType, getWebPage, getWebRequest
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
add, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, 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, onBeforeRender, onBeginRequest, onComponentTag, onConfigure, 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
public Selector(String id, org.apache.wicket.model.IModel<HierarchialItemState<T>> model)
HierarchialItemState.getChildren()
. The main State.getItem()
represents
the current selection.id
- model
- as HierarchialItemState
of Product
public void onInitialize()
onInitialize
in class org.apache.wicket.Component
protected abstract org.apache.wicket.Component getComponentForFocussedItem(T item)
item
- @nullable trueprotected abstract org.apache.wicket.Component getComponentForItem(T item, int index, org.apache.wicket.markup.repeater.AbstractRepeater repeaterContainerComponent)
protected org.apache.wicket.MarkupContainer getContainer()
Copyright © 2018. All rights reserved.