Uses of Interface
org.apache.wicket.model.IModel
-
-
Uses of IModel in org.apache.wicket
Methods in org.apache.wicket that return IModel Modifier and Type Method Description IModel<?>
Component. getDefaultModel()
Gets the model.IModel<?>
IGenericComponent. getDefaultModel()
IModel<?>
Component. getInnermostModel()
protected IModel<?>
Component. getInnermostModel(IModel<?> model)
Finds the innermost IModel object for an IModel that might contain nested IModel(s).default IModel<T>
IGenericComponent. getModel()
Typesafe getter for the modelprotected IModel<?>
AttributeModifier. getReplaceModel()
Gets the replacement model.protected IModel<?>
Component. initModel()
Called when a null model is about to be retrieved in order to allow a subclass to provide an initial model.protected <V> IModel<V>
Component. wrap(IModel<V> model)
Methods in org.apache.wicket with parameters of type IModel Modifier and Type Method Description static AttributeAppender
AttributeModifier. append(String attributeName, IModel<?> value)
Creates a attribute modifier that appends the current value with the givenvalue
using a default space character (' ') separator.protected IModel<?>
Component. getInnermostModel(IModel<?> model)
Finds the innermost IModel object for an IModel that might contain nested IModel(s).String
Component. getString(String key, IModel<?> model)
String
Component. getString(String key, IModel<?> model, String defaultValue)
String
Localizer. getString(String key, Component component, IModel<?> model)
String
Localizer. getString(String key, Component component, IModel<?> model, String defaultValue)
String
Localizer. getString(String key, Component component, IModel<?> model, Locale locale, String style, String defaultValue)
Get the localized string using all of the supplied parameters.String
Localizer. getString(String key, Component component, IModel<?> model, Locale locale, String style, IModel<String> defaultValue)
Get the localized string using all of the supplied parameters.String
Localizer. getStringIgnoreSettings(String key, Component component, IModel<?> model, String defaultValue)
String
Localizer. getStringIgnoreSettings(String key, Component component, IModel<?> model, Locale locale, String style, String defaultValue)
This is similar toLocalizer.getString(String, Component, IModel, String)
except that the resource settings are ignored.static AttributeAppender
AttributeModifier. prepend(String attributeName, IModel<?> value)
Creates a attribute modifier that prepends the current value with the givenvalue
using a default space character (' ') separator.static AttributeModifier
AttributeModifier. replace(String attributeName, IModel<?> value)
Creates a attribute modifier that replaces the current value with the given value.boolean
Component. sameInnermostModel(IModel<?> model)
Component
Component. setDefaultModel(IModel<?> model)
Sets the given model.Component
IGenericComponent. setDefaultModel(IModel<?> model)
MarkupContainer
MarkupContainer. setDefaultModel(IModel<?> model)
default C
IGenericComponent. setModel(IModel<T> model)
Typesafe setter for the modelString
Localizer. substitutePropertyExpressions(Component component, String string, IModel<?> model)
Helper method to handle property variable substitution in strings.protected <V> IModel<V>
Component. wrap(IModel<V> model)
Constructors in org.apache.wicket with parameters of type IModel Constructor Description AttributeModifier(String attribute, IModel<?> replaceModel)
Create a new attribute modifier with the given attribute name and model to replace with.Component(String id, IModel<?> model)
Constructor.MarkupContainer(String id, IModel<?> model)
Page(IModel<?> model)
Constructor. -
Uses of IModel in org.apache.wicket.ajax.markup.html
Constructors in org.apache.wicket.ajax.markup.html with parameters of type IModel Constructor Description AjaxFallbackLink(String id, IModel<T> model)
Construct.AjaxLink(String id, IModel<T> model)
Construct. -
Uses of IModel in org.apache.wicket.ajax.markup.html.form
Constructors in org.apache.wicket.ajax.markup.html.form with parameters of type IModel Constructor Description AjaxButton(String id, IModel<String> model)
Construct.AjaxButton(String id, IModel<String> model, Form<?> form)
Construct.AjaxCheckBox(String id, IModel<Boolean> model)
Construct.AjaxFallbackButton(String id, IModel<String> model, Form<?> form)
Construct. -
Uses of IModel in org.apache.wicket.behavior
Constructors in org.apache.wicket.behavior with parameters of type IModel Constructor Description AttributeAppender(String attribute, IModel<?> replaceModel)
Creates an attribute modifier that concatenates thereplaceModel
to the attribute's current value, optionally separated by theseparator
.AttributeAppender(String attribute, IModel<?> appendModel, String separator)
Creates an AttributeModifier that appends the appendModel's value to the current value of the attribute, and will add the attribute when it is not there already. -
Uses of IModel in org.apache.wicket.feedback
Classes in org.apache.wicket.feedback that implement IModel Modifier and Type Class Description class
FeedbackMessagesModel
Model for extracting feedback messages. -
Uses of IModel in org.apache.wicket.markup.head
Methods in org.apache.wicket.markup.head with parameters of type IModel Modifier and Type Method Description static MetaDataHeaderItem
MetaDataHeaderItem. forHttpEquiv(IModel<String> httpEquiv, IModel<String> content)
Factory method to create <meta> tag.static MetaDataHeaderItem
HtmlImportHeaderItem. forImportLinkTag(Class<? extends Page> pageClass, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters, IModel<String> media)
Factory method to create lt;link> tag for html import.static MetaDataHeaderItem
HtmlImportHeaderItem. forImportLinkTag(Class<? extends Page> pageClass, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters, IModel<String> media, boolean async)
Factory method to create lt;link> tag for html import.static MetaDataHeaderItem
HtmlImportHeaderItem. forImportLinkTag(IModel<String> href)
Factory method to create <link> tag.static MetaDataHeaderItem
HtmlImportHeaderItem. forImportLinkTag(IModel<String> href, boolean async)
Factory method to create <link> tag.static MetaDataHeaderItem
HtmlImportHeaderItem. forLinkTag(IModel<String> rel, IModel<String> href, IModel<String> media)
Factory method to create <link> tag.static MetaDataHeaderItem
MetaDataHeaderItem. forLinkTag(IModel<String> rel, IModel<String> href)
Factory method to create <link> tag.static MetaDataHeaderItem
MetaDataHeaderItem. forMetaTag(IModel<String> name, IModel<String> content)
Factory method to create <meta> tag. -
Uses of IModel in org.apache.wicket.markup.html
Constructors in org.apache.wicket.markup.html with parameters of type IModel Constructor Description GenericWebMarkupContainer(String id, IModel<?> model)
GenericWebPage(IModel<T> model)
WebComponent(String id, IModel<?> model)
WebMarkupContainer(String id, IModel<?> model)
WebPage(IModel<?> model)
-
Uses of IModel in org.apache.wicket.markup.html.basic
Constructors in org.apache.wicket.markup.html.basic with parameters of type IModel Constructor Description EnumLabel(String id, IModel<T> model)
Label(String id, IModel<?> model)
MultiLineLabel(String id, IModel<?> model)
-
Uses of IModel in org.apache.wicket.markup.html.border
Constructors in org.apache.wicket.markup.html.border with parameters of type IModel Constructor Description Body(String id, IModel<?> model, MarkupContainer markupProvider)
Construct.Border(String id, IModel<?> model)
BorderPanel(String id, IModel<?> model)
-
Uses of IModel in org.apache.wicket.markup.html.form
Methods in org.apache.wicket.markup.html.form that return IModel Modifier and Type Method Description IModel<? extends List<? extends E>>
AbstractChoice. getChoicesModel()
IModel<T>
ILabelProvider. getLabel()
The value will be made available to the validator property by means of ${label}.IModel<String>
LabeledWebMarkupContainer. getLabel()
protected IModel<String>
Button. initModel()
Override of the default initModel behaviour.Methods in org.apache.wicket.markup.html.form with parameters of type IModel Modifier and Type Method Description default T
IChoiceRenderer. getObject(String id, IModel<? extends List<? extends T>> choices)
This method is called to get an object back from its id representation.AbstractChoice<T,E>
AbstractChoice. setChoices(IModel<? extends List<? extends E>> choices)
Sets the list of choicesImageButton
ImageButton. setDefaultModel(IModel<?> model)
Check<T>
Check. setLabel(IModel<String> labelModel)
The value will be made available to the validator property by means of ${label}.FormComponent<T>
FormComponent. setLabel(IModel<String> labelModel)
The value will be made available to the validator property by means of ${label}.LabeledWebMarkupContainer
LabeledWebMarkupContainer. setLabel(IModel<String> labelModel)
Provide internal setter.Radio<T>
Radio. setLabel(IModel<String> labelModel)
The value will be made available to the validator property by means of ${label}.NumberTextField<N>
NumberTextField. setMaximum(IModel<N> maximum)
Sets the maximum allowed valueNumberTextField<N>
NumberTextField. setMinimum(IModel<N> minimum)
Sets the minimum allowed valueNumberTextField<N>
NumberTextField. setStep(IModel<N> step)
Sets the step attributeConstructors in org.apache.wicket.markup.html.form with parameters of type IModel Constructor Description AbstractChoice(String id, IModel<? extends List<? extends E>> choices)
Constructor.AbstractChoice(String id, IModel<? extends List<? extends E>> choices, IChoiceRenderer<? super E> renderer)
Constructor.AbstractChoice(String id, IModel<T> model, List<? extends E> choices)
Constructor.AbstractChoice(String id, IModel<T> model, List<? extends E> choices, IChoiceRenderer<? super E> renderer)
Constructor.AbstractChoice(String id, IModel<T> model, IModel<? extends List<? extends E>> choices)
Constructor.AbstractChoice(String id, IModel<T> model, IModel<? extends List<? extends E>> choices, IChoiceRenderer<? super E> renderer)
Constructor.AbstractSingleSelectChoice(String id, IModel<? extends List<? extends T>> choices)
Constructor.AbstractSingleSelectChoice(String id, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer)
Constructor.AbstractSingleSelectChoice(String id, IModel<T> model, List<? extends T> choices)
Constructor.AbstractSingleSelectChoice(String id, IModel<T> model, List<? extends T> choices, IChoiceRenderer<? super T> renderer)
Constructor.AbstractSingleSelectChoice(String id, IModel<T> model, IModel<? extends List<? extends T>> choices)
Constructor.AbstractSingleSelectChoice(String id, IModel<T> model, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer)
Constructor.AbstractSubmitLink(String id, IModel<?> model)
Construct.AbstractSubmitLink(String id, IModel<?> model, Form<?> form)
Construct.AbstractTextComponent(String id, IModel<T> model)
Button(String id, IModel<String> model)
Constructor taking an model for rendering the 'label' of the button (the value attribute of the input/button tag).Check(String id, IModel<T> model)
Check(String id, IModel<T> model, CheckGroup<T> group)
CheckBox(String id, IModel<Boolean> model)
CheckBoxMultipleChoice(String id, IModel<? extends Collection<T>> model, List<? extends T> choices)
ConstructorCheckBoxMultipleChoice(String id, IModel<? extends Collection<T>> model, List<? extends T> choices, IChoiceRenderer<? super T> renderer)
ConstructorCheckBoxMultipleChoice(String id, IModel<? extends Collection<T>> model, IModel<? extends List<? extends T>> choices)
ConstructorCheckBoxMultipleChoice(String id, IModel<? extends Collection<T>> model, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer)
ConstructorCheckBoxMultipleChoice(String id, IModel<? extends List<? extends T>> choices)
ConstructorCheckBoxMultipleChoice(String id, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer)
ConstructorCheckGroup(String id, IModel<? extends Collection<T>> model)
DropDownChoice(String id, IModel<? extends List<? extends T>> choices)
Constructor.DropDownChoice(String id, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer)
Constructor.DropDownChoice(String id, IModel<T> model, List<? extends T> choices)
Constructor.DropDownChoice(String id, IModel<T> model, List<? extends T> choices, IChoiceRenderer<? super T> renderer)
Constructor.DropDownChoice(String id, IModel<T> model, IModel<? extends List<? extends T>> choices)
Constructor.DropDownChoice(String id, IModel<T> model, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer)
Constructor.EmailTextField(String id, IModel<String> model)
Construct.EmailTextField(String id, IModel<String> model, IValidator<String> emailValidator)
Construct.Form(String id, IModel<T> model)
FormComponent(String id, IModel<T> model)
FormComponentPanel(String id, IModel<T> model)
Constructor.HiddenField(String id, IModel<T> model)
Construct.HiddenField(String id, IModel<T> model, Class<T> type)
ImageButton(String id, IModel<String> model)
LabeledWebMarkupContainer(String id, IModel<?> model)
ListChoice(String id, IModel<? extends List<? extends T>> choices)
ListChoice(String id, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer)
ListChoice(String id, IModel<T> model, List<? extends T> choices)
ListChoice(String id, IModel<T> model, List<? extends T> choices, int maxRows)
ListChoice(String id, IModel<T> model, List<? extends T> choices, IChoiceRenderer<? super T> renderer)
ListChoice(String id, IModel<T> model, List<? extends T> choices, IChoiceRenderer<? super T> renderer, int maxRows)
ListChoice(String id, IModel<T> model, IModel<? extends List<? extends T>> choices)
ListChoice(String id, IModel<T> model, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer)
ListChoice(String id, IModel<T> model, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer, int maxRows)
ListMultipleChoice(String id, IModel<? extends Collection<T>> object, List<? extends T> choices)
ListMultipleChoice(String id, IModel<? extends Collection<T>> object, List<? extends T> choices, IChoiceRenderer<? super T> renderer)
ListMultipleChoice(String id, IModel<? extends Collection<T>> model, IModel<? extends List<? extends T>> choices)
ListMultipleChoice(String id, IModel<? extends Collection<T>> model, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer)
ListMultipleChoice(String id, IModel<? extends List<? extends T>> choices)
ListMultipleChoice(String id, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer)
NumberTextField(String id, IModel<N> model)
Construct.NumberTextField(String id, IModel<N> model, Class<N> type)
Construct.PasswordTextField(String id, IModel<String> model)
Radio(String id, IModel<T> model)
Radio(String id, IModel<T> model, RadioGroup<T> group)
RadioChoice(String id, IModel<? extends List<? extends T>> choices)
ConstructorRadioChoice(String id, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer)
ConstructorRadioChoice(String id, IModel<T> model, List<? extends T> choices)
ConstructorRadioChoice(String id, IModel<T> model, List<? extends T> choices, IChoiceRenderer<? super T> renderer)
ConstructorRadioChoice(String id, IModel<T> model, IModel<? extends List<? extends T>> choices)
ConstructorRadioChoice(String id, IModel<T> model, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer)
ConstructorRadioGroup(String id, IModel<T> model)
RangeTextField(String id, IModel<N> model)
Construct.RangeTextField(String id, IModel<N> model, Class<N> type)
Construct.RequiredTextField(String id, IModel<T> model)
RequiredTextField(String id, IModel<T> model, Class<T> type)
StatelessForm(String id, IModel<T> model)
Construct.SubmitLink(String id, IModel<?> model)
With this constructor the SubmitLink must be inside a Form.SubmitLink(String id, IModel<?> model, Form<?> form)
With this constructor the SubmitLink will submit theForm
that is given when the link is clicked on.TextArea(String id, IModel<T> model)
TextField(String id, IModel<T> model)
TextField(String id, IModel<T> model, Class<T> type)
UrlTextField(String id, IModel<String> model)
Construct.UrlTextField(String id, IModel<String> model, UrlValidator urlValidator)
Construct. -
Uses of IModel in org.apache.wicket.markup.html.form.upload
Constructors in org.apache.wicket.markup.html.form.upload with parameters of type IModel Constructor Description FileUploadField(String id, IModel<? extends List<FileUpload>> model)
MultiFileUploadField(String id, IModel<? extends Collection<FileUpload>> model)
ConstructorMultiFileUploadField(String id, IModel<? extends Collection<FileUpload>> model, int max)
ConstructorMultiFileUploadField(String id, IModel<? extends Collection<FileUpload>> model, int max, boolean useMultipleAttr)
Constructor -
Uses of IModel in org.apache.wicket.markup.html.image
Methods in org.apache.wicket.markup.html.image that return IModel Modifier and Type Method Description IModel<List<Serializable>>
ExternalImage. getSrcSetModel()
Gets a list of models containing the src set valuesprotected IModel<?>
Image. initModel()
Methods in org.apache.wicket.markup.html.image with parameters of type IModel Modifier and Type Method Description protected void
ExternalImage. buildSrcAttribute(ComponentTag tag, IModel<?> srcModel)
Builds the src attributeprotected void
ExternalImage. buildSrcSetAttribute(ComponentTag tag, IModel<List<Serializable>> srcSetModel)
Builds the srcset attribute if multiple models are found as varargsComponent
Image. setDefaultModel(IModel<?> model)
void
ExternalImage. setSrcSetModel(IModel<List<Serializable>> srcSetModel)
Sets the source set modelConstructors in org.apache.wicket.markup.html.image with parameters of type IModel Constructor Description ContextImage(String id, IModel<String> contextRelativePath)
ConstructorContextPathGenerator(IModel<String> contextRelativePath)
ConstructorExternalImage(String id, IModel<Serializable> srcModel)
Creates an external imageExternalImage(String id, IModel<Serializable> srcModel, IModel<List<Serializable>> srcSetModel)
Creates an external imageExternalSource(String id, IModel<List<Serializable>> srcSetModel)
Creates an external sourceImage(String id, IModel<?> model)
InlineImage(String id, IModel<?> model, PackageResourceReference packageResourceReference)
Creates an inline imageNonCachingImage(String id, IModel<?> model)
Construct.Picture(String id, IModel<?> model)
Creates a picture componentSource(String id, IModel<?> model)
Creates a source for a picture -
Uses of IModel in org.apache.wicket.markup.html.include
Constructors in org.apache.wicket.markup.html.include with parameters of type IModel Constructor Description Include(String id, IModel<String> model)
Construct. -
Uses of IModel in org.apache.wicket.markup.html.link
Methods in org.apache.wicket.markup.html.link that return IModel Modifier and Type Method Description IModel<?>
AbstractLink. getBody()
Methods in org.apache.wicket.markup.html.link with parameters of type IModel Modifier and Type Method Description AbstractLink
AbstractLink. setBody(IModel<?> bodyModel)
Sets the link's body modelConstructors in org.apache.wicket.markup.html.link with parameters of type IModel Constructor Description AbstractLink(String id, IModel<?> model)
Construct.DownloadLink(String id, IModel<File> model)
Constructor.DownloadLink(String id, IModel<File> model, String fileName)
Constructor.DownloadLink(String id, IModel<File> fileModel, IModel<String> fileNameModel)
Constructor.ExternalLink(String id, IModel<String> href)
Constructor.ExternalLink(String id, IModel<String> href, IModel<?> label)
Constructor.Link(String id, IModel<T> model)
PopupCloseLink(String id, IModel<T> object)
Constructor -
Uses of IModel in org.apache.wicket.markup.html.list
Classes in org.apache.wicket.markup.html.list that implement IModel Modifier and Type Class Description class
ListItemModel<T>
Model for list items.Methods in org.apache.wicket.markup.html.list that return IModel Modifier and Type Method Description protected IModel<T>
ListView. getListItemModel(IModel<? extends List<T>> listViewModel, int index)
Subclasses may provide their own ListItemModel with extended functionality.protected IModel<T>
PropertyListView. getListItemModel(IModel<? extends List<T>> model, int index)
Wraps a ListItemModel in a CompoundPropertyModel.IModel<? extends List<T>>
ListView. getModel()
Gets modelMethods in org.apache.wicket.markup.html.list with parameters of type IModel Modifier and Type Method Description protected IModel<T>
ListView. getListItemModel(IModel<? extends List<T>> listViewModel, int index)
Subclasses may provide their own ListItemModel with extended functionality.protected IModel<T>
PropertyListView. getListItemModel(IModel<? extends List<T>> model, int index)
Wraps a ListItemModel in a CompoundPropertyModel.protected ListItem<T>
ListView. newItem(int index, IModel<T> itemModel)
Create a new ListItem for list item at index.void
ListView. setModel(IModel<? extends List<T>> model)
Sets modelConstructors in org.apache.wicket.markup.html.list with parameters of type IModel Constructor Description AbstractItem(long id, IModel<?> model)
ConstructorAbstractItem(String id, IModel<?> model)
ConstructorListItem(int index, IModel<T> model)
A constructor which uses the index and the list provided to create a ListItem.ListItem(String id, int index, IModel<T> model)
ListView(String id, IModel<? extends List<T>> model)
Loop(String id, IModel<Integer> model)
Construct.LoopItem(int index, IModel<?> model)
A constructor which uses the index and the list provided to create a ListItem.LoopItem(String id, int index, IModel<?> model)
ConstructorOddEvenListItem(int index, IModel<T> model)
ConstructorPageableListView(String id, IModel<? extends List<T>> model, long itemsPerPage)
ConstructorPropertyListView(String id, IModel<? extends List<T>> model)
Construct with a model. -
Uses of IModel in org.apache.wicket.markup.html.media
Constructors in org.apache.wicket.markup.html.media with parameters of type IModel Constructor Description MediaComponent(String id, IModel<?> model)
Constructor.MediaComponent(String id, IModel<?> model, String url)
Creates a media componentMediaComponent(String id, IModel<?> model, String url, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
Creates a media componentMediaComponent(String id, IModel<?> model, ResourceReference resourceReference)
Creates a media componentMediaComponent(String id, IModel<?> model, ResourceReference resourceReference, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
Creates a media componentSource(String id, IModel<?> model)
Creates a sourceSource(String id, IModel<?> model, String url)
Creates a sourceSource(String id, IModel<?> model, ResourceReference resourceReference)
Creates a sourceSource(String id, IModel<?> model, ResourceReference resourceReference, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
Creates a sourceTrack(String id, IModel<?> model)
Creates a trackTrack(String id, IModel<?> model, String url)
Creates a trackTrack(String id, IModel<?> model, ResourceReference resourceReference)
Creates a trackTrack(String id, IModel<?> model, ResourceReference resourceReference, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
Creates a track -
Uses of IModel in org.apache.wicket.markup.html.media.audio
Constructors in org.apache.wicket.markup.html.media.audio with parameters of type IModel Constructor Description Audio(String id, IModel<?> model)
Creates an audio componentAudio(String id, IModel<?> model, String url)
Creates an audio componentAudio(String id, IModel<?> model, String url, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
Creates an audio componentAudio(String id, IModel<?> model, ResourceReference resourceReference)
Creates an audio componentAudio(String id, IModel<?> model, ResourceReference resourceReference, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
Creates an audio component -
Uses of IModel in org.apache.wicket.markup.html.media.video
Constructors in org.apache.wicket.markup.html.media.video with parameters of type IModel Constructor Description Video(String id, IModel<?> model)
Creates a video componentVideo(String id, IModel<?> model, String url)
Creates a video componentVideo(String id, IModel<?> model, String url, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
Creates a video componentVideo(String id, IModel<?> model, ResourceReference resourceReference)
Creates a video componentVideo(String id, IModel<?> model, ResourceReference resourceReference, org.apache.wicket.request.mapper.parameter.PageParameters pageParameters)
Creates a video component -
Uses of IModel in org.apache.wicket.markup.html.pages
Methods in org.apache.wicket.markup.html.pages with parameters of type IModel Modifier and Type Method Description protected Form<ClientProperties>
BrowserInfoForm. createForm(String componentId, IModel<ClientProperties> properties)
Creates the formConstructors in org.apache.wicket.markup.html.pages with parameters of type IModel Constructor Description AbstractErrorPage(IModel<?> model)
BrowserInfoForm(String id, IModel<ClientProperties> properties)
Constructor. -
Uses of IModel in org.apache.wicket.markup.html.panel
Methods in org.apache.wicket.markup.html.panel with parameters of type IModel Modifier and Type Method Description protected ListItem<FeedbackMessage>
FeedbackPanel. newMessageItem(int index, IModel<FeedbackMessage> itemModel)
Allows to define the listItem to use in the feedback's message list.Constructors in org.apache.wicket.markup.html.panel with parameters of type IModel Constructor Description Fragment(String id, String markupId, MarkupContainer markupProvider, IModel<?> model)
Constructor.GenericPanel(String id, IModel<T> model)
Panel(String id, IModel<?> model)
-
Uses of IModel in org.apache.wicket.markup.repeater
Methods in org.apache.wicket.markup.repeater that return types with arguments of type IModel Modifier and Type Method Description protected Iterator<IModel<T>>
AbstractPageableView. getItemModels()
This method retrieves the subset of models for items in the current page and allows RefreshingView to generate items.protected abstract Iterator<IModel<T>>
AbstractPageableView. getItemModels(long offset, long size)
Returns an iterator over models for items in the current pageprotected abstract Iterator<IModel<T>>
RefreshingView. getItemModels()
Returns an iterator over models for items that will be added to this viewMethods in org.apache.wicket.markup.repeater with parameters of type IModel Modifier and Type Method Description Item<T>
IItemFactory. newItem(int index, IModel<T> model)
Factory method for instances of Item.protected Item<T>
RefreshingView. newItem(String id, int index, IModel<T> model)
Factory method for Item container.Method parameters in org.apache.wicket.markup.repeater with type arguments of type IModel Modifier and Type Method Description <T> Iterator<Item<T>>
DefaultItemReuseStrategy. getItems(IItemFactory<T> factory, Iterator<IModel<T>> newModels, Iterator<Item<T>> existingItems)
<T> Iterator<Item<T>>
IItemReuseStrategy. getItems(IItemFactory<T> factory, Iterator<IModel<T>> newModels, Iterator<Item<T>> existingItems)
Returns an iterator over items that will be added to the view.<T> Iterator<Item<T>>
ReuseIfModelsEqualStrategy. getItems(IItemFactory<T> factory, Iterator<IModel<T>> newModels, Iterator<Item<T>> existingItems)
Constructors in org.apache.wicket.markup.repeater with parameters of type IModel Constructor Description AbstractPageableView(String id, IModel<? extends Collection<? extends T>> model)
ConstructorAbstractRepeater(String id, IModel<?> model)
ConstructorItem(String id, int index, IModel<T> model)
ConstructorOddEvenItem(String id, int index, IModel<T> model)
ConstructorRefreshingView(String id, IModel<?> model)
ConstructorRepeatingView(String id, IModel<?> model)
-
Uses of IModel in org.apache.wicket.markup.repeater.data
Methods in org.apache.wicket.markup.repeater.data that return IModel Modifier and Type Method Description IModel<T>
EmptyDataProvider. model(Object object)
IModel<T>
IDataProvider. model(T object)
Callback used by the consumer of this data provider to wrap objects retrieved fromIDataProvider.iterator(long, long)
with a model (usually a detachable one).IModel<T>
ListDataProvider. model(T object)
Methods in org.apache.wicket.markup.repeater.data that return types with arguments of type IModel Modifier and Type Method Description protected Iterator<IModel<T>>
DataViewBase. getItemModels(long offset, long count)
-
Uses of IModel in org.apache.wicket.markup.repeater.util
Methods in org.apache.wicket.markup.repeater.util that return IModel Modifier and Type Method Description protected abstract IModel<T>
ArrayIteratorAdapter. model(T object)
This method is used to wrap the provided object with an implementation of IModel.protected abstract IModel<T>
ModelIteratorAdapter. model(T object)
This method is used to wrap the provided object with an implementation of IModel.IModel<T>
ArrayIteratorAdapter. next()
IModel<T>
ModelIteratorAdapter. next()
-
Uses of IModel in org.apache.wicket.markup.transformer
Constructors in org.apache.wicket.markup.transformer with parameters of type IModel Constructor Description AbstractOutputTransformerContainer(String id, IModel<?> model)
ConstructNoopOutputTransformerContainer(String id, IModel<?> model)
ConstructXsltOutputTransformerContainer(String id, IModel<?> model)
ConstructXsltOutputTransformerContainer(String id, IModel<?> model, String xslFilePath)
Instead of using the default mechanism to determine the associated XSL file, it is given by the user. -
Uses of IModel in org.apache.wicket.model
Subinterfaces of IModel in org.apache.wicket.model Modifier and Type Interface Description interface
IComponentAssignedModel<T>
Models that wish to substitute themselves with a wrapper when they are bound to a component (either through IModel parameter in a constructor or via a call toComponent.setDefaultModel(IModel)
) should implement this interface.interface
IComponentInheritedModel<T>
This is a marker interface for models that can be inherited from components higher in the hierarchy.interface
IObjectClassAwareModel<T>
Interface implemented by model that can provide class of the model object.interface
IPropertyReflectionAwareModel<T>
Optional interface implemented by models that are able to provide reflection information about object property they interact with.interface
IWrapModel<T>
A marker interface that represents a model that serves as a wrapper for another.Classes in org.apache.wicket.model that implement IModel Modifier and Type Class Description class
AbstractPropertyModel<T>
Serves as a base class for different kinds of property models.class
AbstractWrapModel<T>
Simple base class for IWrapModel objects seeIComponentAssignedModel
orIComponentInheritedModel
so that you don't have to have empty methods like detach or setObject() when not used in the wrapper.class
ChainingModel<T>
This model and its subclasses support chaining of IModels.class
ComponentDetachableModel<T>
Quick detachable model that is implements the IComponentAssignedModel and the IModel interfaces.class
ComponentModel<T>
Quick model that is implements the IComponentAssignedModel and the IModel interfaces.class
ComponentPropertyModel<T>
A model that references a property by name on the current model of the component it is bound to.class
CompoundPropertyModel<T>
A simple compound model which uses the component's name as the property expression to retrieve properties on the nested model object.class
LambdaModel<T>
class
LoadableDetachableModel<T>
Model that makes working with detachable models a breeze.class
Model<T extends Serializable>
Model
is the basic implementation of anIModel
.class
PropertyModel<T>
A PropertyModel is used to dynamically access a model using a "property expression".class
ResourceModel
A model that represents a localized resource string.class
StringResourceModel
This model class encapsulates the full power of localization support within the Wicket framework.Methods in org.apache.wicket.model that return IModel Modifier and Type Method Description <S> IModel<S>
CompoundPropertyModel. bind(String property)
Binds this model to a special property by returning a model that has this compound model as its nested/wrapped model and the property which should be evaluated.default <R,U>
IModel<R>IModel. combineWith(IModel<U> other, org.danekja.java.util.function.serializable.SerializableBiFunction<? super T,? super U,R> combiner)
Returns aIModel
applying the given combining function to the current model object and to the one from the other model, if they are notnull
.default IModel<T>
IModel. filter(org.danekja.java.util.function.serializable.SerializablePredicate<? super T> predicate)
Returns a IModel checking whether the predicate holds for the contained object, if it is notnull
.default <R> IModel<R>
IModel. flatMap(org.danekja.java.util.function.serializable.SerializableFunction<? super T,IModel<R>> mapper)
Returns a IModel applying the given IModel-bearing mapper to the contained object, if it is notnull
.IModel<?>
ChainingModel. getChainedModel()
IModel<?>
IWrapModel. getWrappedModel()
Gets the wrapped model.default IModel<Boolean>
IModel. isPresent()
Returns a IModel, returning whether the contained object is non-null.default <R> IModel<R>
IModel. map(org.danekja.java.util.function.serializable.SerializableFunction<? super T,R> mapper)
Returns a IModel applying the given mapper to the contained object, if it is notnull
.static <T> IModel<T>
IModel. of(IModel<?> model)
Suppresses generics warning when casting model types.static <X,R>
IModel<R>LambdaModel. of(IModel<X> target, org.danekja.java.util.function.serializable.SerializableFunction<X,R> getter, org.danekja.java.util.function.serializable.SerializableBiConsumer<X,R> setter)
Create aLambdaModel
for a given target.static <R> IModel<R>
LambdaModel. of(org.danekja.java.util.function.serializable.SerializableSupplier<R> getter)
Create a read-onlyIModel
.static <R> IModel<R>
LambdaModel. of(org.danekja.java.util.function.serializable.SerializableSupplier<R> getter, org.danekja.java.util.function.serializable.SerializableConsumer<R> setter)
Create aLambdaModel
.static <C> IModel<Collection<C>>
Model. of(Collection<C> collection)
Factory method for models that contain collections.static <C> IModel<List<C>>
Model. ofList(List<C> list)
Factory method for models that contain lists.static <K,V>
IModel<Map<K,V>>Model. ofMap(Map<K,V> map)
Factory method for models that contain maps.static <C> IModel<Set<C>>
Model. ofSet(Set<C> set)
Factory method for models that contain sets.default IModel<T>
IModel. orElse(T other)
Returns a IModel, returning either the contained object or the given default value, depending on thenull
ness of the contained object.default IModel<T>
IModel. orElseGet(org.danekja.java.util.function.serializable.SerializableSupplier<? extends T> other)
Returns a IModel, returning either the contained object or invoking the given supplier to get a default value.Methods in org.apache.wicket.model with parameters of type IModel Modifier and Type Method Description default <R,U>
IModel<R>IModel. combineWith(IModel<U> other, org.danekja.java.util.function.serializable.SerializableBiFunction<? super T,? super U,R> combiner)
Returns aIModel
applying the given combining function to the current model object and to the one from the other model, if they are notnull
.static <Z> CompoundPropertyModel<Z>
CompoundPropertyModel. of(IModel<Z> model)
Type-infering factory methodstatic <T> IModel<T>
IModel. of(IModel<?> model)
Suppresses generics warning when casting model types.static <X,R>
IModel<R>LambdaModel. of(IModel<X> target, org.danekja.java.util.function.serializable.SerializableFunction<X,R> getter, org.danekja.java.util.function.serializable.SerializableBiConsumer<X,R> setter)
Create aLambdaModel
for a given target.StringResourceModel
StringResourceModel. setDefaultValue(IModel<String> defaultValue)
Sets the default value if the resource key is not found.StringResourceModel
StringResourceModel. setModel(IModel<?> model)
Sets the model used for property substitutions.Method parameters in org.apache.wicket.model with type arguments of type IModel Modifier and Type Method Description default <R> IModel<R>
IModel. flatMap(org.danekja.java.util.function.serializable.SerializableFunction<? super T,IModel<R>> mapper)
Returns a IModel applying the given IModel-bearing mapper to the contained object, if it is notnull
.Constructors in org.apache.wicket.model with parameters of type IModel Constructor Description CompoundPropertyModel(IModel<T> model)
ConstructorResourceModel(String resourceKey, IModel<String> defaultValue)
StringResourceModel(String resourceKey, Component component, IModel<?> model)
Creates a new string resource model using the supplied parameters.StringResourceModel(String resourceKey, IModel<?> model)
Creates a new string resource model using the supplied parameter. -
Uses of IModel in org.apache.wicket.model.util
Classes in org.apache.wicket.model.util that implement IModel Modifier and Type Class Description class
CollectionModel<T>
Based onModel
but for any collections of serializable objects.class
GenericBaseModel<T>
Base class for models that contain instances that do not appear to be serializable and cannot thus useModel
directly.class
ListModel<T>
Based onModel
but for lists of serializable objects.class
MapModel<K,V>
Based onModel
but for maps of serializable objects.class
SetModel<T>
Based onModel
but for sets of serializable objects. -
Uses of IModel in org.apache.wicket.resource
Constructors in org.apache.wicket.resource with parameters of type IModel Constructor Description TextTemplateResourceReference(Class<?> scope, String fileName, String contentType, String encoding, IModel<Map<String,Object>> variablesModel)
Creates a resource reference to aPackageTextTemplate
.TextTemplateResourceReference(Class<?> scope, String fileName, String contentType, String encoding, IModel<Map<String,Object>> variablesModel, Locale locale, String style, String variation)
Construct.TextTemplateResourceReference(Class<?> scope, String fileName, String contentType, IModel<Map<String,Object>> variablesModel)
Creates a resource reference to aPackageTextTemplate
.TextTemplateResourceReference(Class<?> scope, String fileName, IModel<Map<String,Object>> variablesModel)
Creates a resource reference to aPackageTextTemplate
. -
Uses of IModel in org.apache.wicket.util.tester
Methods in org.apache.wicket.util.tester with parameters of type IModel Modifier and Type Method Description void
WicketTester. assertComponentFeedbackMessage(Component component, String key, IModel<?> model, IFeedbackMessageFilter filter)
Asserts that there is a feedback message provided by a given component -
Uses of IModel in org.apache.wicket.validation
Methods in org.apache.wicket.validation that return IModel Modifier and Type Method Description IModel<T>
IValidatable. getModel()
Returns the model of the component being validatedIModel<T>
Validatable. getModel()
Methods in org.apache.wicket.validation with parameters of type IModel Modifier and Type Method Description void
Validatable. setModel(IModel<T> model)
Sets model
-