| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeModifier.ValuelessAttributeAddModel
A dynamic model that returns the marker value
AttributeModifier.VALUELESS_ATTRIBUTE_ADD
to prevent making copies of it via (de)serialization |
static class |
AttributeModifier.ValuelessAttributeRemoveModel
A dynamic model that returns the marker value
AttributeModifier.VALUELESS_ATTRIBUTE_REMOVE
to prevent making copies of it via (de)serialization |
| Modifier and Type | Method and Description |
|---|---|
IModel<?> |
Component.getDefaultModel()
Gets the model.
|
IModel<?> |
Component.getInnermostModel() |
protected IModel<?> |
Component.getInnermostModel(IModel<?> model)
Finds the innermost IModel object for an IModel that might contain nested IModel(s).
|
IModel<T> |
IGenericComponent.getModel()
Typesafe getter for the model
|
protected 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) |
| Modifier and Type | Method and Description |
|---|---|
static AttributeAppender |
AttributeModifier.append(String attributeName,
IModel<?> value)
Creates a attribute modifier that appends the current value with the given
value
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 |
Localizer.getString(String key,
Component component,
IModel<?> model) |
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.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.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,
String defaultValue) |
String |
Component.getString(String key,
IModel<?> model) |
String |
Component.getString(String key,
IModel<?> model,
String defaultValue) |
String |
Localizer.getStringIgnoreSettings(String key,
Component component,
IModel<?> model,
Locale locale,
String style,
String defaultValue)
This is similar to
Localizer.getString(String, Component, IModel, String) except that the
resource settings are ignored. |
String |
Localizer.getStringIgnoreSettings(String key,
Component component,
IModel<?> model,
String defaultValue) |
static AttributeAppender |
AttributeModifier.prepend(String attributeName,
IModel<?> value)
Creates a attribute modifier that prepends the current value with the given
value
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) |
MarkupContainer |
MarkupContainer.setDefaultModel(IModel<?> model) |
Component |
Component.setDefaultModel(IModel<?> model)
Sets the given model.
|
void |
IGenericComponent.setModel(IModel<T> model)
Typesafe setter for the model
|
String |
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) |
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
IModel<T> |
AjaxLink.getModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
AjaxLink.setModel(IModel<T> model) |
| Constructor and Description |
|---|
AjaxFallbackLink(String id,
IModel<T> model)
Construct.
|
AjaxLink(String id,
IModel<T> model)
Construct.
|
| Constructor and 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.
|
| Constructor and Description |
|---|
AttributeAppender(String attribute,
IModel<?> replaceModel)
Creates an attribute modifier that concatenates the
replaceModel to the attribute's
current value, optionally separated by the separator. |
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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FeedbackMessagesModel
Model for extracting feedback messages.
|
| Modifier and Type | Method and Description |
|---|---|
static MetaDataHeaderItem |
HtmlImportHeaderItem.forImportLinkTag(Class<? extends Page> pageClass,
PageParameters pageParameters,
IModel<String> media)
Factory method to create lt;link> tag for html import.
|
static MetaDataHeaderItem |
HtmlImportHeaderItem.forImportLinkTag(Class<? extends Page> pageClass,
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 |
MetaDataHeaderItem.forLinkTag(IModel<String> rel,
IModel<String> href)
Factory method to create <link> tag.
|
static MetaDataHeaderItem |
MetaDataHeaderItem.forLinkTag(IModel<String> rel,
IModel<String> href)
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 |
HtmlImportHeaderItem.forLinkTag(IModel<String> rel,
IModel<String> href,
IModel<String> media)
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.forMetaTag(IModel<String> name,
IModel<String> content)
Factory method to create <meta> tag.
|
static MetaDataHeaderItem |
MetaDataHeaderItem.forMetaTag(IModel<String> name,
IModel<String> content)
Factory method to create <meta> tag.
|
| Modifier and Type | Method and Description |
|---|---|
IModel<T> |
GenericWebPage.getModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
GenericWebPage.setModel(IModel<T> model) |
| Constructor and Description |
|---|
GenericWebPage(IModel<T> model) |
WebComponent(String id,
IModel<?> model) |
WebMarkupContainer(String id,
IModel<?> model) |
WebPage(IModel<?> model) |
| Modifier and Type | Method and Description |
|---|---|
IModel<T> |
EnumLabel.getModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
EnumLabel.setModel(IModel<T> model) |
| Constructor and Description |
|---|
EnumLabel(String id,
IModel<T> model) |
Label(String id,
IModel<?> model) |
MultiLineLabel(String id,
IModel<?> model) |
| Constructor and Description |
|---|
Body(String id,
IModel<?> model,
MarkupContainer markupProvider)
Construct.
|
Border(String id,
IModel<?> model) |
BorderPanel(String id,
IModel<?> model) |
| Modifier and Type | Method and Description |
|---|---|
IModel<? extends List<? extends E>> |
AbstractChoice.getChoicesModel() |
IModel<String> |
LabeledWebMarkupContainer.getLabel() |
IModel<T> |
ILabelProvider.getLabel()
The value will be made available to the validator property by means of ${label}.
|
IModel<T> |
Form.getModel() |
IModel<T> |
Radio.getModel() |
IModel<T> |
FormComponent.getModel() |
IModel<T> |
Check.getModel() |
protected IModel<String> |
Button.initModel()
Override of the default initModel behaviour.
|
| Modifier and Type | Method and Description |
|---|---|
T |
IChoiceRenderer.getObject(String id,
IModel<? extends List<? extends T>> choices)
This method is called to get an object back from its id representation.
|
T |
ChoiceRenderer.getObject(String id,
IModel<? extends List<? extends T>> choices) |
AbstractChoice<T,E> |
AbstractChoice.setChoices(IModel<? extends List<? extends E>> choices)
Sets the list of choices
|
ImageButton |
ImageButton.setDefaultModel(IModel<?> model) |
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}.
|
FormComponent<T> |
FormComponent.setLabel(IModel<String> labelModel)
The value will be made available to the validator property by means of ${label}.
|
Check<T> |
Check.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 value
|
NumberTextField<N> |
NumberTextField.setMinimum(IModel<N> minimum)
Sets the minimum allowed value
|
void |
Form.setModel(IModel<T> model) |
void |
Radio.setModel(IModel<T> model) |
void |
FormComponent.setModel(IModel<T> model) |
void |
Check.setModel(IModel<T> model) |
NumberTextField<N> |
NumberTextField.setStep(IModel<N> step)
Sets the step attribute
|
| Constructor and 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,
IModel<? extends List<? extends E>> choices)
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.
|
AbstractChoice(String id,
IModel<T> model,
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.
|
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,
IModel<? extends List<? extends T>> choices)
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.
|
AbstractSingleSelectChoice(String id,
IModel<T> model,
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.
|
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,
IModel<? extends List<? extends T>> choices)
Constructor
|
CheckBoxMultipleChoice(String id,
IModel<? extends Collection<T>> model,
IModel<? extends List<? extends T>> choices)
Constructor
|
CheckBoxMultipleChoice(String id,
IModel<? extends Collection<T>> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
Constructor
|
CheckBoxMultipleChoice(String id,
IModel<? extends Collection<T>> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
Constructor
|
CheckBoxMultipleChoice(String id,
IModel<? extends Collection<T>> model,
List<? extends T> choices)
Constructor
|
CheckBoxMultipleChoice(String id,
IModel<? extends Collection<T>> model,
List<? extends T> choices,
IChoiceRenderer<? super T> renderer)
Constructor
|
CheckBoxMultipleChoice(String id,
IModel<? extends List<? extends T>> choices)
Constructor
|
CheckBoxMultipleChoice(String id,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
Constructor
|
CheckGroup(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,
IModel<? extends List<? extends T>> choices)
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.
|
DropDownChoice(String id,
IModel<T> model,
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.
|
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)
Construct.
|
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,
IModel<? extends List<? extends T>> choices) |
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) |
ListChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer,
int maxRows) |
ListChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer,
int maxRows) |
ListChoice(String id,
IModel<T> model,
List<? extends T> choices) |
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,
List<? extends T> choices,
int maxRows) |
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) |
ListMultipleChoice(String id,
IModel<? extends Collection<T>> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer) |
ListMultipleChoice(String id,
IModel<? extends Collection<T>> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer) |
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 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)
Constructor
|
RadioChoice(String id,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
Constructor
|
RadioChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices)
Constructor
|
RadioChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices)
Constructor
|
RadioChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
Constructor
|
RadioChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
Constructor
|
RadioChoice(String id,
IModel<T> model,
List<? extends T> choices)
Constructor
|
RadioChoice(String id,
IModel<T> model,
List<? extends T> choices,
IChoiceRenderer<? super T> renderer)
Constructor
|
RadioGroup(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 the
Form 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.
|
| Constructor and Description |
|---|
FileUploadField(String id,
IModel<? extends List<FileUpload>> model) |
MultiFileUploadField(String id,
IModel<? extends Collection<FileUpload>> model)
Constructor
|
MultiFileUploadField(String id,
IModel<? extends Collection<FileUpload>> model,
int max)
Constructor
|
MultiFileUploadField(String id,
IModel<? extends Collection<FileUpload>> model,
int max,
boolean useMultipleAttr)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
IModel<List<Serializable>> |
ExternalImage.getSrcSetModel()
Gets a list of models containing the src set values
|
protected IModel<?> |
Image.initModel() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ExternalImage.buildSrcAttribute(ComponentTag tag,
IModel<?> srcModel)
Builds the src attribute
|
protected void |
ExternalImage.buildSrcSetAttribute(ComponentTag tag,
IModel<List<Serializable>> srcSetModel)
Builds the srcset attribute if multiple models are found as varargs
|
Component |
Image.setDefaultModel(IModel<?> model) |
void |
ExternalImage.setSrcSetModel(IModel<List<Serializable>> srcSetModel)
Sets the source set model
|
| Constructor and Description |
|---|
ContextImage(String id,
IModel<String> contextRelativePath)
Constructor
|
ContextPathGenerator(IModel<String> contextRelativePath)
Constructor
|
ExternalImage(String id,
IModel<Serializable> srcModel)
Creates an external image
|
ExternalImage(String id,
IModel<Serializable> srcModel,
IModel<List<Serializable>> srcSetModel)
Creates an external image
|
ExternalImage(String id,
IModel<Serializable> srcModel,
IModel<List<Serializable>> srcSetModel)
Creates an external image
|
ExternalSource(String id,
IModel<List<Serializable>> srcSetModel)
Creates an external source
|
Image(String id,
IModel<?> model) |
InlineImage(String id,
IModel<?> model,
PackageResourceReference packageResourceReference)
Creates an inline image
|
NonCachingImage(String id,
IModel<?> model)
Construct.
|
Picture(String id,
IModel<?> model)
Creates a picture component
|
Source(String id,
IModel<?> model)
Creates a source for a picture
|
| Constructor and Description |
|---|
Include(String id,
IModel<String> model)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
IModel<?> |
AbstractLink.getBody() |
IModel<T> |
Link.getModel() |
| Modifier and Type | Method and Description |
|---|---|
AbstractLink |
AbstractLink.setBody(IModel<?> bodyModel)
Sets the link's body model
|
void |
Link.setModel(IModel<T> model) |
| Constructor and Description |
|---|
AbstractLink(String id,
IModel<?> model)
Construct.
|
DownloadLink(String id,
IModel<File> model)
Constructor.
|
DownloadLink(String id,
IModel<File> fileModel,
IModel<String> fileNameModel)
Constructor.
|
DownloadLink(String id,
IModel<File> fileModel,
IModel<String> fileNameModel)
Constructor.
|
DownloadLink(String id,
IModel<File> model,
String fileName)
Constructor.
|
ExternalLink(String id,
IModel<String> href)
Constructor.
|
ExternalLink(String id,
IModel<String> href,
IModel<?> label)
Constructor.
|
ExternalLink(String id,
IModel<String> href,
IModel<?> label)
Constructor.
|
Link(String id,
IModel<T> model) |
PopupCloseLink(String id,
IModel<T> object)
Constructor
|
| Modifier and Type | Class and Description |
|---|---|
class |
ListItemModel<T>
Model for list items.
|
| Modifier and Type | Method and 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 model
|
IModel<T> |
ListItem.getModel() |
| Modifier and Type | Method and 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 model
|
void |
ListItem.setModel(IModel<T> model) |
| Constructor and Description |
|---|
AbstractItem(long id,
IModel<?> model)
Constructor
|
AbstractItem(String id,
IModel<?> model)
Constructor
|
ListItem(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)
Constructor
|
OddEvenListItem(int index,
IModel<T> model)
Constructor
|
PageableListView(String id,
IModel<? extends List<T>> model,
int itemsPerPage)
Constructor
|
PropertyListView(String id,
IModel<? extends List<T>> model)
Construct with a model.
|
| Constructor and Description |
|---|
MediaComponent(String id,
IModel<?> model)
Constructor.
|
MediaComponent(String id,
IModel<?> model,
ResourceReference resourceReference)
Creates a media component
|
MediaComponent(String id,
IModel<?> model,
ResourceReference resourceReference,
PageParameters pageParameters)
Creates a media component
|
MediaComponent(String id,
IModel<?> model,
String url)
Creates a media component
|
MediaComponent(String id,
IModel<?> model,
String url,
PageParameters pageParameters)
Creates a media component
|
Source(String id,
IModel<?> model)
Creates a source
|
Source(String id,
IModel<?> model,
ResourceReference resourceReference)
Creates a source
|
Source(String id,
IModel<?> model,
ResourceReference resourceReference,
PageParameters pageParameters)
Creates a source
|
Source(String id,
IModel<?> model,
String url)
Creates a source
|
Track(String id,
IModel<?> model)
Creates a track
|
Track(String id,
IModel<?> model,
ResourceReference resourceReference)
Creates a track
|
Track(String id,
IModel<?> model,
ResourceReference resourceReference,
PageParameters pageParameters)
Creates a track
|
Track(String id,
IModel<?> model,
String url)
Creates a track
|
| Constructor and Description |
|---|
Audio(String id,
IModel<?> model)
Creates an audio component
|
Audio(String id,
IModel<?> model,
ResourceReference resourceReference)
Creates an audio component
|
Audio(String id,
IModel<?> model,
ResourceReference resourceReference,
PageParameters pageParameters)
Creates an audio component
|
Audio(String id,
IModel<?> model,
String url)
Creates an audio component
|
Audio(String id,
IModel<?> model,
String url,
PageParameters pageParameters)
Creates an audio component
|
| Constructor and Description |
|---|
Video(String id,
IModel<?> model)
Creates a video component
|
Video(String id,
IModel<?> model,
ResourceReference resourceReference)
Creates a video component
|
Video(String id,
IModel<?> model,
ResourceReference resourceReference,
PageParameters pageParameters)
Creates a video component
|
Video(String id,
IModel<?> model,
String url)
Creates a video component
|
Video(String id,
IModel<?> model,
String url,
PageParameters pageParameters)
Creates a video component
|
| Modifier and Type | Method and Description |
|---|---|
protected Form<ClientProperties> |
BrowserInfoForm.createForm(String componentId,
IModel<ClientProperties> properties)
Creates the form
|
| Constructor and Description |
|---|
AbstractErrorPage(IModel<?> model) |
BrowserInfoForm(String id,
IModel<ClientProperties> properties)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IModel<T> |
GenericPanel.getModel()
Typesafe getter for the page's model
|
| Modifier and Type | Method and Description |
|---|---|
protected ListItem<FeedbackMessage> |
FeedbackPanel.newMessageItem(int index,
IModel<FeedbackMessage> itemModel)
Allows to define the listItem to use in the feedback's message list.
|
void |
GenericPanel.setModel(IModel<T> model)
Typesafe setter for the model
|
| Constructor and Description |
|---|
Fragment(String id,
String markupId,
MarkupContainer markupProvider,
IModel<?> model)
Constructor.
|
GenericPanel(String id,
IModel<T> model) |
Panel(String id,
IModel<?> model) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Iterator<IModel<T>> |
RefreshingView.getItemModels()
Returns an iterator over models for items that will be added to this view
|
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 page
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and 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) |
| Constructor and Description |
|---|
AbstractPageableView(String id,
IModel<? extends Collection<? extends T>> model)
Constructor
|
AbstractRepeater(String id,
IModel<?> model)
Constructor
|
Item(String id,
int index,
IModel<T> model)
Constructor
|
OddEvenItem(String id,
int index,
IModel<T> model)
Constructor
|
RefreshingView(String id,
IModel<?> model)
Constructor
|
RepeatingView(String id,
IModel<?> model) |
| Modifier and Type | Method and Description |
|---|---|
IModel<T> |
EmptyDataProvider.model(Object object) |
IModel<T> |
ListDataProvider.model(T object) |
IModel<T> |
IDataProvider.model(T object)
Callback used by the consumer of this data provider to wrap objects retrieved from
IDataProvider.iterator(long, long) with a model (usually a detachable one). |
| Modifier and Type | Method and Description |
|---|---|
protected Iterator<IModel<T>> |
DataViewBase.getItemModels(long offset,
long count) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract IModel<T> |
ModelIteratorAdapter.model(T object)
This method is used to wrap the provided object with an implementation of IModel.
|
protected abstract IModel<T> |
ArrayIteratorAdapter.model(T object)
This method is used to wrap the provided object with an implementation of IModel.
|
IModel<T> |
ModelIteratorAdapter.next() |
IModel<T> |
ArrayIteratorAdapter.next() |
| Constructor and Description |
|---|
AbstractOutputTransformerContainer(String id,
IModel<?> model)
Construct
|
NoopOutputTransformerContainer(String id,
IModel<?> model)
Construct
|
XsltOutputTransformerContainer(String id,
IModel<?> model)
Construct
|
XsltOutputTransformerContainer(String id,
IModel<?> model,
String xslFilePath)
Instead of using the default mechanism to determine the associated XSL file, it is given by
the user.
|
| Modifier and Type | Method and Description |
|---|---|
static StringResourceModel |
StringResourceModelMigration.of(String resourceKey,
Component component,
IModel<?> model,
Object... parameters)
Deprecated.
use 'inline method' to get rid of the deprecation warning and complete the
migration to Wicket 7 API.
Original JavaDoc:
Creates a new string resource model using the supplied parameters.
The relative component parameter should generally be supplied, as without it resources can not be obtained from resource bundles that are held relative to a particular component or page. However, for application that use only global resources then this parameter may be null. The model parameter is also optional and only needs to be supplied if value substitutions are to take place on either the resource key or the actual resource strings. The parameters parameter is also optional and is used for substitutions. |
static StringResourceModel |
StringResourceModelMigration.of(String resourceKey,
Component component,
IModel<?> model,
String defaultValue,
Object... parameters)
Deprecated.
use 'inline method' to get rid of the deprecation warning and complete the
migration to Wicket 7 API.
|
static StringResourceModel |
StringResourceModelMigration.of(String resourceKey,
IModel<?> model,
Object... parameters)
Deprecated.
use 'inline method' to get rid of the deprecation warning and complete the
migration to Wicket 7 API.
|
static StringResourceModel |
StringResourceModelMigration.of(String resourceKey,
IModel<?> model,
String defaultValue,
Object... parameters)
Deprecated.
use 'inline method' to get rid of the deprecation warning and complete the
migration to Wicket 7 API.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
IChainingModel<T>
Models that implement this interface will support chaining of IModels.
|
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 to
Component.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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractPropertyModel<T>
Serves as a base class for different kinds of property models.
|
class |
AbstractReadOnlyModel<T>
AbstractReadOnlyModel is an adapter base class for implementing models which have no detach logic
and are read-only.
|
class |
AbstractWrapModel<T>
Simple base class for IWrapModel objects see
IComponentAssignedModel or
IComponentInheritedModel so that you don't have to have empty methods like detach or
setObject() when not used in the wrapper. |
class |
ChainingModel<T>
Default implementation of IChainingModel
|
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 |
LoadableDetachableModel<T>
Model that makes working with detachable models a breeze.
|
class |
Model<T extends Serializable>
Model is the basic implementation of an IModel. |
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.
|
| Modifier and Type | Method and 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.
|
IModel<?> |
ChainingModel.getChainedModel() |
IModel<?> |
IChainingModel.getChainedModel()
Returns the chained model if there is a chained model.
|
IModel<?> |
IWrapModel.getWrappedModel()
Gets the wrapped model.
|
static <C> IModel<Collection<C>> |
Model.of(Collection<C> collection)
Factory method for models that contain collections.
|
static <T> IModel<T> |
Model.of(IModel<?> model)
Supresses generics warning when converting model types
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> IModel<T> |
Model.of(IModel<?> model)
Supresses generics warning when converting model types
|
static <Z> CompoundPropertyModel<Z> |
CompoundPropertyModel.of(IModel<Z> model)
Type-infering factory method
|
void |
ChainingModel.setChainedModel(IModel<?> model) |
void |
IChainingModel.setChainedModel(IModel<?> model)
Sets the model that is chained inside this model.
|
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.
|
| Constructor and Description |
|---|
CompoundPropertyModel(IModel<T> model)
Constructor
|
ResourceModel(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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CollectionModel<T>
Based on
Model 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 use
Model directly. |
class |
ListModel<T>
Based on
Model but for lists of serializable objects. |
class |
MapModel<K,V>
Based on
Model but for maps of serializable objects. |
class |
SetModel<T>
Based on
Model but for sets of serializable objects. |
class |
WildcardCollectionModel<T>
Deprecated.
Will be removed in Wicket 8
|
class |
WildcardListModel<T>
Deprecated.
Will be removed in Wicket 8
|
class |
WildcardSetModel<T>
Deprecated.
Will be removed in Wicket 8
|
| Constructor and Description |
|---|
TextTemplateResourceReference(Class<?> scope,
String fileName,
IModel<Map<String,Object>> variablesModel)
Creates a resource reference to a
PackageTextTemplate. |
TextTemplateResourceReference(Class<?> scope,
String fileName,
String contentType,
IModel<Map<String,Object>> variablesModel)
Creates a resource reference to a
PackageTextTemplate. |
TextTemplateResourceReference(Class<?> scope,
String fileName,
String contentType,
String encoding,
IModel<Map<String,Object>> variablesModel)
Creates a resource reference to a
PackageTextTemplate. |
TextTemplateResourceReference(Class<?> scope,
String fileName,
String contentType,
String encoding,
IModel<Map<String,Object>> variablesModel,
Locale locale,
String style,
String variation)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WicketTester.assertComponentFeedbackMessage(Component component,
String key,
IModel<?> model,
IFeedbackMessageFilter filter)
Asserts that there is a feedback message provided by a given component
|
| Modifier and Type | Method and Description |
|---|---|
IModel<T> |
Validatable.getModel() |
IModel<T> |
IValidatable.getModel()
Returns the model of the component being validated
|
| Modifier and Type | Method and Description |
|---|---|
void |
Validatable.setModel(IModel<T> model)
Sets model
|
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.