Modifier and Type | Method and Description |
---|---|
IModel<?> |
IGenericComponent.getDefaultModel() |
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).
|
default 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) |
Component |
IGenericComponent.setDefaultModel(IModel<?> model) |
MarkupContainer |
MarkupContainer.setDefaultModel(IModel<?> model) |
Component |
Component.setDefaultModel(IModel<?> model)
Sets the given model.
|
default C |
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.
|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
GroupsModel
A model that can hold on to an array of classes.
|
Constructor and Description |
---|
PropertyValidator(IModel<Class<?>[]> groups) |
PropertyValidator(Property property,
IModel<Class<?>[]> groups) |
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.
|
Constructor and Description |
---|
DevUtilsPage(IModel<?> model)
Construct.
|
DevUtilsPanel(String id,
IModel<?> model)
Construct.
|
Modifier and Type | Method and Description |
---|---|
protected IModel<String> |
SessionSizeDebugPanel.getDataModel() |
protected IModel<String> |
InspectorDebugPanel.getDataModel() |
protected abstract IModel<String> |
StandardDebugPanel.getDataModel() |
protected IModel<String> |
PageSizeDebugPanel.getDataModel() |
Modifier and Type | Class and Description |
---|---|
class |
SessionsProviderModel
A model that collects the session ids from the
DiskDataStore folder |
Modifier and Type | Class and Description |
---|---|
class |
SessionSizeModel
Calculates
|
Constructor and Description |
---|
EnhancedPageView(String id,
IModel<Page> pageModel)
Constructor.
|
Constructor and Description |
---|
WicketExamplePage(IModel<?> model)
Construct.
|
Constructor and Description |
---|
MailTemplatePanel(String id,
IModel<String> nameModel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
IModel<String> |
FourthPanel.getTitle() |
IModel<String> |
FirstPanel.getTitle() |
IModel<String> |
ResultPanel.getTitle() |
IModel<String> |
SecondPanel.getTitle() |
IModel<String> |
ThirdPanel.getTitle() |
Constructor and Description |
---|
Multiply(String id,
IModel<Integer> model)
Construct.
|
Modifier and Type | Class and Description |
---|---|
class |
DetachableContactModel
detachable model for an instance of contact
|
Modifier and Type | Method and Description |
---|---|
IModel<Contact> |
ContactDataProvider.model(Contact object)
wraps retrieved contact pojo with a wicket model
|
IModel<Contact> |
SortableContactDataProvider.model(Contact object) |
Modifier and Type | Class and Description |
---|---|
class |
ProxyModel |
Modifier and Type | Method and Description |
---|---|
IModel<Contact> |
ProxyDataProvider.model(Contact contact) |
Modifier and Type | Class and Description |
---|---|
class |
ContactDetachableModel
Base class for contact detachable models.
|
Modifier and Type | Class and Description |
---|---|
class |
SessionModel
Model that displays whether a session was created yet, and if it was, prints the session id.
|
Constructor and Description |
---|
Banner(String id,
IModel<?> model)
Construct.
|
Banner1(String id,
IModel<?> model)
Construct.
|
Banner2(String id,
IModel<?> model)
Construct.
|
Constructor and Description |
---|
Panel1(String id,
IModel<?> model)
Construct.
|
TemplatePanel(String id,
IModel<?> model)
Construct.
|
Modifier and Type | Method and Description |
---|---|
IModel<Foo> |
FooProvider.model(Foo foo)
Creates a
FooModel . |
Modifier and Type | Method and Description |
---|---|
protected abstract AbstractTree<Foo> |
AdvancedTreePage.createTree(FooProvider provider,
IModel<Set<Foo>> state) |
protected AbstractTree<Foo> |
NestedTreePage.createTree(FooProvider provider,
IModel<Set<Foo>> state) |
protected AbstractTree<Foo> |
TableTreePage.createTree(FooProvider provider,
IModel<Set<Foo>> state) |
protected Component |
AdvancedTreePage.newContentComponent(String id,
IModel<Foo> model) |
Constructor and Description |
---|
FooPanel(String id,
IModel<Foo> foo) |
Modifier and Type | Method and Description |
---|---|
protected FormComponent<T> |
AjaxEditableLabel.newEditor(MarkupContainer parent,
String componentId,
IModel<T> model)
Create a new form component instance to serve as editor.
|
protected FormComponent<T> |
AjaxEditableMultiLineLabel.newEditor(MarkupContainer parent,
String componentId,
IModel<T> model) |
protected FormComponent<T> |
AjaxEditableChoiceLabel.newEditor(MarkupContainer parent,
String componentId,
IModel<T> model)
Create a new form component instance to serve as editor.
|
protected Component |
AjaxEditableLabel.newLabel(MarkupContainer parent,
String componentId,
IModel<T> model)
Create a new form component instance to serve as label.
|
protected MultiLineLabel |
AjaxEditableMultiLineLabel.newLabel(MarkupContainer parent,
String componentId,
IModel<T> model)
Create a new form component instance to serve as label.
|
protected WebComponent |
AjaxEditableChoiceLabel.newLabel(MarkupContainer parent,
String componentId,
IModel<T> model)
Create a new form component instance to serve as label.
|
AjaxEditableLabel<T> |
AjaxEditableLabel.setDefaultModel(IModel<?> model) |
AjaxEditableLabel<T> |
AjaxEditableLabel.setLabel(IModel<String> labelModel)
The value will be made available to the validator property by means of ${label}.
|
Constructor and Description |
---|
AjaxEditableChoiceLabel(String id,
IModel<T> model)
Construct.
|
AjaxEditableChoiceLabel(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices)
Construct.
|
AjaxEditableChoiceLabel(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices)
Construct.
|
AjaxEditableChoiceLabel(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
Construct.
|
AjaxEditableChoiceLabel(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
Construct.
|
AjaxEditableChoiceLabel(String id,
IModel<T> model,
List<? extends T> choices)
Construct.
|
AjaxEditableChoiceLabel(String id,
IModel<T> model,
List<? extends T> choices,
IChoiceRenderer<? super T> renderer)
Construct.
|
AjaxEditableLabel(String id,
IModel<T> model)
Constructor
|
AjaxEditableMultiLineLabel(String id,
IModel<T> model)
Construct.
|
AjaxLazyLoadPanel(String id,
IModel<?> model)
Constructor
|
IndicatingAjaxButton(String id,
IModel<String> model)
Constructor
|
IndicatingAjaxButton(String id,
IModel<String> model,
Form<?> form)
Constructor
|
IndicatingAjaxFallbackLink(String id,
IModel<T> model)
Constructor
|
IndicatingAjaxLink(String id,
IModel<T> model)
Constructor
|
Constructor and Description |
---|
AutoCompleteTextField(String id,
IModel<T> model)
Constructor for the given model.
|
AutoCompleteTextField(String id,
IModel<T> model,
AutoCompleteSettings settings)
Constructor for given model.
|
AutoCompleteTextField(String id,
IModel<T> model,
Class<T> type,
AutoCompleteSettings settings)
Constructor for the given model and type.
|
AutoCompleteTextField(String id,
IModel<T> model,
Class<T> type,
IAutoCompleteRenderer<T> renderer,
AutoCompleteSettings settings)
Constructor for the given model using the given renderer.
|
AutoCompleteTextField(String id,
IModel<T> model,
IAutoCompleteRenderer<T> renderer)
Constructor for the given model using the given renderer.
|
DefaultCssAutoCompleteTextField(String id,
IModel<T> model)
Construct.
|
Modifier and Type | Method and Description |
---|---|
IModel<String> |
ModalWindow.getTitle()
Returns the title of the window.
|
Modifier and Type | Method and Description |
---|---|
ModalWindow |
ModalWindow.setTitle(IModel<String> title)
Sets the title of window.
|
Constructor and Description |
---|
ModalWindow(String id,
IModel<?> model)
Creates a new modal window component.
|
Modifier and Type | Method and Description |
---|---|
protected Item<T> |
AjaxFallbackDefaultDataTable.newRowItem(String id,
int index,
IModel<T> model) |
Constructor and Description |
---|
AjaxTabbedPanel(String id,
List<T> tabs,
IModel<Integer> model)
Constructor
|
Modifier and Type | Method and Description |
---|---|
IModel<String> |
IBreadCrumbParticipant.getTitle()
Gets the title of the bread crumb, which will be used for displaying it.
|
Constructor and Description |
---|
BreadCrumbPanel(String id,
IBreadCrumbModel breadCrumbModel,
IModel<?> model)
Construct.
|
Constructor and Description |
---|
SmartLinkLabel(String name,
IModel<String> model) |
SmartLinkMultiLineLabel(String id,
IModel<String> model)
Construct.
|
Modifier and Type | Method and Description |
---|---|
IModel<String> |
CaptchaImageResource.getChallengeIdModel()
Gets the id for the challenge
|
Constructor and Description |
---|
CaptchaImageResource(IModel<String> challengeId)
Construct.
|
CaptchaImageResource(IModel<String> challengeId,
int fontSize,
int margin)
Construct.
|
Constructor and Description |
---|
DateTextField(String id,
IModel<Date> model)
Creates a new DateTextField, without a specified pattern.
|
DateTextField(String id,
IModel<Date> model,
String datePattern)
Creates a new DateTextField bound with a specific
SimpleDateFormat pattern. |
Modifier and Type | Class and Description |
---|---|
protected class |
TimeField.AmPmModel |
protected class |
TimeField.HoursModel |
protected class |
TimeField.MinutesModel |
class |
ZonedToLocalDateTimeModel
|
Modifier and Type | Method and Description |
---|---|
protected TextField<Integer> |
TimeField.newHoursTextField(String id,
IModel<Integer> model,
Class<Integer> type)
create a new
TextField instance for hours to be added to this panel. |
protected TextField<Integer> |
TimeField.newMinutesTextField(String id,
IModel<Integer> model,
Class<Integer> type)
create a new
TextField instance for minutes to be added to this panel. |
Constructor and Description |
---|
LocalDateTextField(String id,
IModel<LocalDate> model,
FormatStyle dateStyle)
Construct with a style.
|
LocalDateTextField(String id,
IModel<LocalDate> model,
String pattern)
Construct with a pattern.
|
LocalDateTextField(String id,
IModel<LocalDate> model,
String formatPattern,
String parsePattern)
Construct with pattern for formatting and parsing.
|
LocalDateTimeField(String id,
IModel<LocalDateTime> model)
Construct.
|
LocalDateTimeTextField(String id,
IModel<LocalDateTime> model,
FormatStyle dateStyle,
FormatStyle timeStyle)
Construct with a style.
|
LocalDateTimeTextField(String id,
IModel<LocalDateTime> model,
String dateTimePattern)
Construct with a pattern.
|
LocalTimeTextField(String id,
IModel<LocalTime> model,
FormatStyle timeStyle)
Construct with a style.
|
LocalTimeTextField(String id,
IModel<LocalTime> model,
String timePattern)
Construct with a pattern.
|
TimeField(String id,
IModel<LocalTime> model)
Construct.
|
ZonedDateTimeField(String id,
IModel<ZonedDateTime> model)
Construct.
|
ZonedToLocalDateTimeModel(IModel<ZonedDateTime> model)
Map the given
ZonedDateTime to a LocalDateTime in the client's time zone. |
Constructor and Description |
---|
Palette(String id,
IModel<? extends Collection<T>> choicesModel,
IChoiceRenderer<? super T> choiceRenderer,
int rows,
boolean allowOrder) |
Palette(String id,
IModel<? extends Collection<T>> model,
IModel<? extends Collection<? extends T>> choicesModel,
IChoiceRenderer<? super T> choiceRenderer,
int rows,
boolean allowOrder) |
Palette(String id,
IModel<? extends Collection<T>> model,
IModel<? extends Collection<? extends T>> choicesModel,
IChoiceRenderer<? super T> choiceRenderer,
int rows,
boolean allowOrder) |
Palette(String id,
IModel<? extends Collection<T>> model,
IModel<? extends Collection<? extends T>> choicesModel,
IChoiceRenderer<? super T> choiceRenderer,
int rows,
boolean allowOrder,
boolean allowMoveAll)
Constructor.
|
Palette(String id,
IModel<? extends Collection<T>> model,
IModel<? extends Collection<? extends T>> choicesModel,
IChoiceRenderer<? super T> choiceRenderer,
int rows,
boolean allowOrder,
boolean allowMoveAll)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
IModel<T> |
IOptionRenderer.getModel(T value)
Gets the model that will be used to represent the value object.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
Select.isSelected(IModel<?> model)
Does the given model contain a selected value.
|
protected SelectOption<T> |
SelectOptions.newOption(String text,
IModel<T> model)
Factory method for creating a new
SelectOption . |
Constructor and Description |
---|
Select(String id,
IModel<T> model) |
SelectOption(String id,
IModel<T> model) |
SelectOptions(String id,
IModel<? extends Collection<? extends T>> model,
IOptionRenderer<T> renderer)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected Item<ICellPopulator<T>> |
AbstractDataGridView.newCellItem(String id,
int index,
IModel<ICellPopulator<T>> model)
Factory method for Item container that represents a cell.
|
protected Item<T> |
AbstractDataGridView.newItem(String id,
int index,
IModel<T> model) |
protected Item<T> |
AbstractDataGridView.newRowItem(String id,
int index,
IModel<T> model)
Factory method for Item container that represents a row.
|
void |
PropertyPopulator.populateItem(Item<ICellPopulator<T>> cellItem,
String componentId,
IModel<T> rowModel) |
void |
ICellPopulator.populateItem(Item<ICellPopulator<T>> cellItem,
String componentId,
IModel<T> rowModel)
Method used to populate a cell in the
DataGridView
Implementation MUST add a component to the cellItem using the component id provided by
componentId argument, otherwise a WicketRuntimeException will be thrown |
Modifier and Type | Method and Description |
---|---|
protected IModel<String> |
DataTable.getCaptionModel()
Returns the model for table's caption.
|
IModel<?> |
PropertyColumn.getDataModel(IModel<T> rowModel)
Factory method for generating a model that will generated the displayed value.
|
IModel<?> |
LambdaColumn.getDataModel(IModel<T> rowModel)
Factory method for generating a model that will generated the displayed value.
|
IModel<String> |
AbstractColumn.getDisplayModel() |
protected IModel<String> |
DataTable.Caption.initModel() |
Modifier and Type | Method and Description |
---|---|
IModel<?> |
PropertyColumn.getDataModel(IModel<T> rowModel)
Factory method for generating a model that will generated the displayed value.
|
IModel<?> |
LambdaColumn.getDataModel(IModel<T> rowModel)
Factory method for generating a model that will generated the displayed value.
|
protected Item<IColumn<T,S>> |
DataTable.newCellItem(String id,
int index,
IModel<IColumn<T,S>> model)
Factory method for Item container that represents a cell in the underlying DataGridView
|
protected Item<T> |
DefaultDataTable.newRowItem(String id,
int index,
IModel<T> model) |
protected Item<T> |
DataTable.newRowItem(String id,
int index,
IModel<T> model)
Factory method for Item container that represents a row in the underlying DataGridView
|
void |
PropertyColumn.populateItem(Item<ICellPopulator<T>> item,
String componentId,
IModel<T> rowModel)
Implementation of populateItem which adds a label to the cell whose model is the provided
property expression evaluated against rowModelObject
|
void |
LambdaColumn.populateItem(Item<ICellPopulator<T>> item,
String componentId,
IModel<T> rowModel) |
Constructor and Description |
---|
AbstractColumn(IModel<String> displayModel) |
AbstractColumn(IModel<String> displayModel,
S sortProperty) |
AbstractToolbar(IModel<?> model,
DataTable<?,?> table)
Constructor
|
Caption(String id,
IModel<String> model)
Construct.
|
LambdaColumn(IModel<String> displayModel,
org.danekja.java.util.function.serializable.SerializableFunction<T,?> function)
Creates a column that is not sortable.
|
LambdaColumn(IModel<String> displayModel,
S sortProperty,
org.danekja.java.util.function.serializable.SerializableFunction<T,?> function)
Creates a property column that is also sortable.
|
NoRecordsToolbar(DataTable<?,?> table,
IModel<String> messageModel) |
PropertyColumn(IModel<String> displayModel,
S sortProperty,
String propertyExpression)
Creates a property column that is also sortable
|
PropertyColumn(IModel<String> displayModel,
String propertyExpression)
Creates a non sortable property column
|
Modifier and Type | Method and Description |
---|---|
IModel<String> |
IDataExporter.getDataFormatNameModel()
Returns a model of the exported data format name.
|
IModel<String> |
AbstractDataExporter.getDataFormatNameModel()
Returns a model of the exported data format name.
|
IModel<?> |
IExportableColumn.getDataModel(IModel<T> rowModel)
Returns an
IModel of the data displayed by this column for the rowModel provided. |
IModel<String> |
IExportableColumn.getDisplayModel()
Returns a model of the column header.
|
IModel<String> |
ExportToolbar.getFileNameModel()
Returns the model of the file name used for the exported data.
|
IModel<String> |
ExportToolbar.getMessageModel()
Returns the model of the export message displayed in the toolbar.
|
protected <T> IModel<T> |
CSVDataExporter.wrapModel(IModel<T> model)
Wrap the given model-
|
Modifier and Type | Method and Description |
---|---|
protected Component |
AbstractExportableColumn.createDisplayComponent(String componentId,
IModel<?> dataModel)
Creates a
Component which will be used to display the content of the column in this row. |
IModel<?> |
IExportableColumn.getDataModel(IModel<T> rowModel)
Returns an
IModel of the data displayed by this column for the rowModel provided. |
void |
AbstractExportableColumn.populateItem(Item<ICellPopulator<T>> cellItem,
String componentId,
IModel<T> rowModel)
Populated the data for this column in the row into the
cellItem . |
AbstractDataExporter |
AbstractDataExporter.setDataFormatNameModel(IModel<String> dataFormatNameModel)
Sets the data format name model.
|
ExportToolbar |
ExportToolbar.setFileNameModel(IModel<String> fileNameModel)
Sets the model of the file name used for the exported data.
|
ExportToolbar |
ExportToolbar.setMessageModel(IModel<String> messageModel)
Sets the models of the export message displayed in the toolbar.
|
protected <T> IModel<T> |
CSVDataExporter.wrapModel(IModel<T> model)
Wrap the given model-
|
Constructor and Description |
---|
AbstractDataExporter(IModel<String> dataFormatNameModel,
String contentType,
String fileNameExtension)
Creates a new instance with the data format name model, content type and file name extensions provided.
|
AbstractExportableColumn(IModel<String> displayModel)
Creates a new
AbstractExportableColumn with the provided display model, and without a sort property. |
AbstractExportableColumn(IModel<String> displayModel,
S sortProperty)
Creates a new
AbstractExportableColumn with the provided display model, and sort property. |
ExportToolbar(DataTable<?,?> table,
IModel<String> fileNameModel)
Creates a new instance with the provided data table and file name model.
|
ExportToolbar(DataTable<?,?> table,
IModel<String> messageModel,
IModel<String> fileNameModel)
Creates a new instance.
|
ExportToolbar(DataTable<?,?> table,
IModel<String> messageModel,
IModel<String> fileNameModel)
Creates a new instance.
|
Modifier and Type | Field and Description |
---|---|
protected static IModel<String> |
GoFilter.DEFAULT_GO_MODEL |
Modifier and Type | Method and Description |
---|---|
protected IModel<? extends List<? extends Y>> |
ChoiceFilteredPropertyColumn.getFilterChoices() |
protected IModel<Y> |
ChoiceFilteredPropertyColumn.getFilterModel(FilterForm<?> form)
Returns the model that will be passed on to the text filter.
|
protected IModel<F> |
TextFilteredPropertyColumn.getFilterModel(FilterForm<?> form)
Returns the model that will be passed on to the text filter.
|
protected IModel<?> |
AbstractFilter.getStateModel() |
Modifier and Type | Method and Description |
---|---|
protected DropDownChoice<T> |
ChoiceFilter.newDropDownChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
Factory method for the drop down choice component
|
protected DropDownChoice<T> |
ChoiceFilter.newDropDownChoice(String id,
IModel<T> model,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer)
Factory method for the drop down choice component
|
Constructor and Description |
---|
ChoiceFilter(String id,
IModel<T> model,
FilterForm<?> form,
IModel<? extends List<? extends T>> choices,
boolean autoSubmit)
Constructor.
|
ChoiceFilter(String id,
IModel<T> model,
FilterForm<?> form,
IModel<? extends List<? extends T>> choices,
boolean autoSubmit)
Constructor.
|
ChoiceFilter(String id,
IModel<T> model,
FilterForm<?> form,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer,
boolean autoSubmit) |
ChoiceFilter(String id,
IModel<T> model,
FilterForm<?> form,
IModel<? extends List<? extends T>> choices,
IChoiceRenderer<? super T> renderer,
boolean autoSubmit) |
ChoiceFilter(String id,
IModel<T> model,
FilterForm<?> form,
List<? extends T> choices,
boolean autoSubmit)
Constructor
|
ChoiceFilter(String id,
IModel<T> model,
FilterForm<?> form,
List<? extends T> choices,
IChoiceRenderer<? super T> renderer,
boolean autoSubmit)
Constructor
|
ChoiceFilteredPropertyColumn(IModel<String> displayModel,
S sortProperty,
String propertyExpression,
IModel<? extends List<? extends Y>> filterChoices) |
ChoiceFilteredPropertyColumn(IModel<String> displayModel,
S sortProperty,
String propertyExpression,
IModel<? extends List<? extends Y>> filterChoices) |
ChoiceFilteredPropertyColumn(IModel<String> displayModel,
String propertyExpression,
IModel<? extends List<? extends Y>> filterChoices) |
ChoiceFilteredPropertyColumn(IModel<String> displayModel,
String propertyExpression,
IModel<? extends List<? extends Y>> filterChoices) |
FilteredAbstractColumn(IModel<String> displayModel)
Constructor
|
FilteredAbstractColumn(IModel<String> displayModel,
S sortProperty)
Constructor
|
FilteredPropertyColumn(IModel<String> displayModel,
S sortProperty,
String propertyExpression)
Constructor
|
FilteredPropertyColumn(IModel<String> displayModel,
String propertyExpression) |
GoAndClearFilter(String id,
FilterForm<?> form,
IModel<String> goModel,
IModel<String> clearModel)
Constructor.
|
GoAndClearFilter(String id,
FilterForm<?> form,
IModel<String> goModel,
IModel<String> clearModel)
Constructor.
|
GoAndClearFilter(String id,
IModel<String> goModel,
IModel<String> clearModel,
Object originalState)
Constructor
|
GoAndClearFilter(String id,
IModel<String> goModel,
IModel<String> clearModel,
Object originalState)
Constructor
|
GoFilter(String id,
IModel<String> goModel)
Constructor
|
TextFilter(String id,
IModel<T> model,
FilterForm<?> form)
Constructor
|
TextFilteredPropertyColumn(IModel<String> displayModel,
S sortProperty,
String propertyExpression) |
TextFilteredPropertyColumn(IModel<String> displayModel,
String propertyExpression) |
Modifier and Type | Method and Description |
---|---|
IModel<T> |
Node.getModel() |
protected IModel<?> |
AbstractTree.initModel()
Delegate to
AbstractTree.newModel() if none is inited in super implementation. |
IModel<T> |
ITreeProvider.model(T object)
Callback used by the consumer of this tree provider to wrap objects retrieved from
ITreeProvider.getRoots() or ITreeProvider.getChildren(Object) with a model (usually a detachable one). |
protected IModel<Set<T>> |
AbstractTree.newModel()
Factory method for a model, by default creates a model containing a
ProviderSubset . |
Modifier and Type | Method and Description |
---|---|
protected abstract Component |
Node.createContent(String id,
IModel<T> model)
Create the component to display the actual node's content.
|
protected Component |
DefaultNestedTree.newContentComponent(String id,
IModel<T> node)
Creates
Folder for each node. |
protected abstract Component |
AbstractTree.newContentComponent(String id,
IModel<T> model)
Create a new component for the content of a node.
|
protected Component |
DefaultTableTree.newContentComponent(String id,
IModel<T> model)
Creates
Folder for each node. |
Component |
AbstractTree.newNodeComponent(String id,
IModel<T> model)
Create a new component for a node.
|
Component |
NestedTree.newNodeComponent(String id,
IModel<T> model)
Overridden to let the node output its markup id.
|
protected Item<T> |
TableTree.newRowItem(String id,
int index,
IModel<T> model)
Create a row item for the nested
DataTable . |
protected Item<T> |
DefaultTableTree.newRowItem(String id,
int index,
IModel<T> node)
Creates an
OddEvenItem . |
Component |
NestedTree.newSubtree(String id,
IModel<T> model)
Create a new subtree.
|
Constructor and Description |
---|
AbstractTree(String id,
ITreeProvider<T> provider,
IModel<? extends Set<T>> state) |
DefaultNestedTree(String id,
ITreeProvider<T> provider,
IModel<? extends Set<T>> state)
Construct.
|
DefaultTableTree(String id,
List<? extends IColumn<T,S>> columns,
ISortableTreeProvider<T,S> provider,
int rowsPerPage,
IModel<? extends Set<T>> state)
Construct.
|
NestedTree(String id,
ITreeProvider<T> provider,
IModel<? extends Set<T>> state)
Construct.
|
Node(String id,
AbstractTree<T> tree,
IModel<T> model)
Constructor.
|
TableTree(String id,
List<? extends IColumn<T,S>> columns,
ITreeProvider<T> provider,
long rowsPerPage,
IModel<? extends Set<T>> state)
Constructor
|
Modifier and Type | Method and Description |
---|---|
IModel<T> |
StyledLinkLabel.getModel() |
protected IModel<Boolean> |
CheckedFolder.newCheckBoxModel(IModel<T> model)
Create the model for the checkbox, defaults to
Boolean.FALSE . |
protected IModel<?> |
StyledLinkLabel.newLabelModel(IModel<T> model)
Create the model for the label, defaults to the model itself.
|
Modifier and Type | Method and Description |
---|---|
protected Component |
CheckedFolder.newCheckBox(String id,
IModel<T> model)
Hook method to create a new checkbox component.
|
protected IModel<Boolean> |
CheckedFolder.newCheckBoxModel(IModel<T> model)
Create the model for the checkbox, defaults to
Boolean.FALSE . |
protected Component |
StyledLinkLabel.newLabelComponent(String id,
IModel<T> model)
Hook method to create a new label component.
|
protected IModel<?> |
StyledLinkLabel.newLabelModel(IModel<T> model)
Create the model for the label, defaults to the model itself.
|
protected MarkupContainer |
StyledLinkLabel.newLinkComponent(String id,
IModel<T> model)
Hook method to create a new link component.
|
Constructor and Description |
---|
CheckedFolder(String id,
AbstractTree<T> tree,
IModel<T> model) |
CheckFolder(String id,
AbstractTree<T> tree,
IModel<T> model) |
Folder(String id,
AbstractTree<T> tree,
IModel<T> model) |
StyledLinkLabel(String id,
IModel<T> model) |
Modifier and Type | Method and Description |
---|---|
IModel<T> |
Subtree.getModel() |
Modifier and Type | Method and Description |
---|---|
protected BranchItem<T> |
Subtree.newBranchItem(String id,
int index,
IModel<T> model) |
Constructor and Description |
---|
BranchItem(String id,
int index,
IModel<T> model) |
Subtree(String id,
NestedTree<T> tree,
IModel<T> model)
Create a subtree for the children of the node contained in the given model or the root nodes
if the model contains
null . |
Modifier and Type | Class and Description |
---|---|
class |
NodeModel<T>
A model wrapping the actual node model, carrying additional information about the parental
branches.
|
Modifier and Type | Method and Description |
---|---|
IModel<T> |
NodeModel.getWrappedModel()
Get the wrapped model.
|
Modifier and Type | Method and Description |
---|---|
void |
TreeColumn.populateItem(Item<ICellPopulator<T>> cellItem,
String componentId,
IModel<T> rowModel) |
Constructor and Description |
---|
AbstractTreeColumn(IModel<String> displayModel) |
AbstractTreeColumn(IModel<String> displayModel,
S sortProperty) |
NodeModel(IModel<T> model,
boolean[] branches)
Wrap the given model.
|
TreeColumn(IModel<String> displayModel)
Construct.
|
TreeColumn(IModel<String> displayModel,
S sortProperty)
Construct.
|
Modifier and Type | Method and Description |
---|---|
IModel<Set<T>> |
ProviderSubset.createModel()
Create a model holding this set.
|
abstract IModel<T> |
TreeModelProvider.model(T object) |
Modifier and Type | Method and Description |
---|---|
IModel<String> |
ITab.getTitle() |
IModel<String> |
AbstractTab.getTitle() |
IModel<String> |
PanelCachingTab.getTitle() |
protected IModel<?> |
TabbedPanel.initModel()
Override of the default initModel behaviour.
|
Modifier and Type | Method and Description |
---|---|
protected Component |
TabbedPanel.newTitle(String titleId,
IModel<?> titleModel,
int index)
Factory method for tab titles.
|
Constructor and Description |
---|
AbstractTab(IModel<String> title)
Constructor
|
TabbedPanel(String id,
List<T> tabs,
IModel<Integer> model)
Constructor
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractCheckBoxModel
Model adapter that makes working with models for checkboxes easier.
|
Modifier and Type | Method and Description |
---|---|
protected Component |
RatingPanel.newRatingLabel(String id,
IModel<? extends Number> rating,
IModel<Integer> nrOfVotes)
Creates a new rating label, showing a message like 'Rated 5.4 from 53 votes'.
|
protected Component |
RatingPanel.newRatingLabel(String id,
IModel<? extends Number> rating,
IModel<Integer> nrOfVotes)
Creates a new rating label, showing a message like 'Rated 5.4 from 53 votes'.
|
protected Component |
RatingPanel.newRatingStarBar(String id,
IModel<Integer> nrOfStars)
Creates a new bar filled with stars to click on.
|
Constructor and Description |
---|
RatingPanel(String id,
IModel<? extends Number> rating)
Constructs a rating component with 5 stars, using the rating for retrieving the rating.
|
RatingPanel(String id,
IModel<? extends Number> rating,
IModel<Integer> nrOfStars,
IModel<Integer> nrOfVotes,
IModel<Boolean> hasVoted,
boolean addDefaultCssStyle)
Constructs a rating panel with nrOfStars stars, where the rating model is used to retrieve
the rating, the nrOfVotes model used to retrieve the number of votes cast and the hasVoted
model to retrieve whether the user already had cast a vote.
|
RatingPanel(String id,
IModel<? extends Number> rating,
IModel<Integer> nrOfStars,
IModel<Integer> nrOfVotes,
IModel<Boolean> hasVoted,
boolean addDefaultCssStyle)
Constructs a rating panel with nrOfStars stars, where the rating model is used to retrieve
the rating, the nrOfVotes model used to retrieve the number of votes cast and the hasVoted
model to retrieve whether the user already had cast a vote.
|
RatingPanel(String id,
IModel<? extends Number> rating,
IModel<Integer> nrOfStars,
IModel<Integer> nrOfVotes,
IModel<Boolean> hasVoted,
boolean addDefaultCssStyle)
Constructs a rating panel with nrOfStars stars, where the rating model is used to retrieve
the rating, the nrOfVotes model used to retrieve the number of votes cast and the hasVoted
model to retrieve whether the user already had cast a vote.
|
RatingPanel(String id,
IModel<? extends Number> rating,
IModel<Integer> nrOfStars,
IModel<Integer> nrOfVotes,
IModel<Boolean> hasVoted,
boolean addDefaultCssStyle)
Constructs a rating panel with nrOfStars stars, where the rating model is used to retrieve
the rating, the nrOfVotes model used to retrieve the number of votes cast and the hasVoted
model to retrieve whether the user already had cast a vote.
|
RatingPanel(String id,
IModel<? extends Number> rating,
int nrOfStars,
boolean addDefaultCssStyle)
Constructs a rating component with nrOfStars stars, using the rating for retrieving the
rating.
|
RatingPanel(String id,
IModel<? extends Number> rating,
int nrOfStars,
IModel<Integer> nrOfVotes,
boolean addDefaultCssStyle)
Constructs a rating panel with nrOfStars stars, where the rating model is used to retrieve
the rating, the nrOfVotes model to retrieve the number of casted votes.
|
RatingPanel(String id,
IModel<? extends Number> rating,
int nrOfStars,
IModel<Integer> nrOfVotes,
boolean addDefaultCssStyle)
Constructs a rating panel with nrOfStars stars, where the rating model is used to retrieve
the rating, the nrOfVotes model to retrieve the number of casted votes.
|
Modifier and Type | Method and Description |
---|---|
IModel<?> |
StaticContentStep.getContentModel()
Gets the content model.
|
Modifier and Type | Method and Description |
---|---|
<T> void |
StaticContentStep.setContentModel(IModel<T> content)
Sets the content model.
|
void |
WizardStep.setSummaryModel(IModel<String> summary)
Sets summary.
|
void |
WizardStep.setTitleModel(IModel<String> title)
Sets title.
|
Constructor and Description |
---|
StaticContentStep(IModel<String> title,
IModel<String> summary,
IModel<?> content,
boolean allowHtml)
Construct.
|
StaticContentStep(IModel<String> title,
IModel<String> summary,
IModel<?> content,
boolean allowHtml)
Construct.
|
StaticContentStep(IModel<String> title,
IModel<String> summary,
IModel<?> content,
boolean allowHtml)
Construct.
|
StaticContentStep(IModel<String> title,
IModel<String> summary,
String content,
boolean allowHtml)
Construct.
|
StaticContentStep(IModel<String> title,
IModel<String> summary,
String content,
boolean allowHtml)
Construct.
|
StaticContentStep(String title,
String summary,
IModel<?> content,
boolean allowHtml)
Construct.
|
WizardButton(String id,
IWizard wizard,
IModel<String> label)
Construct.
|
WizardStep(IModel<String> title,
IModel<String> summary)
Creates a new step with the specified title and summary.
|
WizardStep(IModel<String> title,
IModel<String> summary)
Creates a new step with the specified title and summary.
|
WizardStep(IModel<String> title,
IModel<String> summary,
IModel<?> model)
Creates a new step with the specified title and summary.
|
WizardStep(IModel<String> title,
IModel<String> summary,
IModel<?> model)
Creates a new step with the specified title and summary.
|
WizardStep(IModel<String> title,
IModel<String> summary,
IModel<?> model)
Creates a new step with the specified title and summary.
|
WizardStep(String title,
String summary,
IModel<?> model)
Creates a new step with the specified title and summary.
|
Constructor and Description |
---|
DynamicWizardStep(IDynamicWizardStep previousStep,
IModel<String> title,
IModel<String> summary)
Creates a new step with the specified title and summary.
|
DynamicWizardStep(IDynamicWizardStep previousStep,
IModel<String> title,
IModel<String> summary)
Creates a new step with the specified title and summary.
|
DynamicWizardStep(IDynamicWizardStep previousStep,
IModel<String> title,
IModel<String> summary,
IModel<?> model)
Creates a new step with the specified title and summary.
|
DynamicWizardStep(IDynamicWizardStep previousStep,
IModel<String> title,
IModel<String> summary,
IModel<?> model)
Creates a new step with the specified title and summary.
|
DynamicWizardStep(IDynamicWizardStep previousStep,
IModel<String> title,
IModel<String> summary,
IModel<?> model)
Creates a new step with the specified title and summary.
|
DynamicWizardStep(IDynamicWizardStep previousStep,
String title,
String summary,
IModel<?> model)
Creates a new step with the specified title and summary.
|
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.
|
Constructor and Description |
---|
GenericWebMarkupContainer(String id,
IModel<?> model) |
GenericWebPage(IModel<T> model) |
WebComponent(String id,
IModel<?> model) |
WebMarkupContainer(String id,
IModel<?> model) |
WebPage(IModel<?> 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<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.
|
Modifier and Type | Method and 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 choices
|
ImageButton |
ImageButton.setDefaultModel(IModel<?> model) |
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}.
|
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 value
|
NumberTextField<N> |
NumberTextField.setMinimum(IModel<N> minimum)
Sets the minimum allowed value
|
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)
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,
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() |
Modifier and Type | Method and Description |
---|---|
AbstractLink |
AbstractLink.setBody(IModel<?> bodyModel)
Sets the link's body 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
|
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
|
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,
long 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 |
---|---|
protected ListItem<FeedbackMessage> |
FeedbackPanel.newMessageItem(int index,
IModel<FeedbackMessage> itemModel)
Allows to define the listItem to use in the feedback's message list.
|
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 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>> |
RefreshingView.getItemModels()
Returns an iterator over models for items that will be added to this view
|
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>> |
ReuseIfModelsEqualStrategy.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>> |
DefaultItemReuseStrategy.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> |
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). |
IModel<T> |
ListDataProvider.model(T object) |
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>
Deprecated.
This class is not used by the framework anymore. Will be removed in Wicket 9.0.0
|
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>
Deprecated.
Use an anonymous instance of
IModel instead. Since Wicket 8.0 IModel
doesn't require providing implementation of setObject(Object) method. |
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 |
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 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.
|
default <R,U> IModel<R> |
IModel.combineWith(IModel<U> other,
org.danekja.java.util.function.serializable.SerializableBiFunction<? super T,? super U,R> combiner)
Returns a
IModel applying the given combining function to the current model object and
to the one from the other model, if they are not null . |
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 not
null . |
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 not
null . |
IModel<?> |
IChainingModel.getChainedModel()
Deprecated.
Returns the chained model if there is a chained model.
|
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 not
null . |
static <C> IModel<Collection<C>> |
Model.of(Collection<C> collection)
Factory method for models that contain collections.
|
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)
Deprecated.
this method will be remove in Wicket 9.x, use
map(SerializableFunction) instead. |
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 a
LambdaModel for a given target. |
static <R> IModel<R> |
LambdaModel.of(org.danekja.java.util.function.serializable.SerializableSupplier<R> getter)
Create a read-only
IModel . |
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 a
LambdaModel . |
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 the
null 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.
|
Modifier and Type | Method and 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 a
IModel applying the given combining function to the current model object and
to the one from the other model, if they are not null . |
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)
Deprecated.
this method will be remove in Wicket 9.x, use
map(SerializableFunction) instead. |
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 a
LambdaModel for a given target. |
static <Z> CompoundPropertyModel<Z> |
CompoundPropertyModel.of(IModel<Z> model)
Type-infering factory method
|
void |
IChainingModel.setChainedModel(IModel<?> model)
Deprecated.
Sets the model that is chained inside this model.
|
void |
ChainingModel.setChainedModel(IModel<?> 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.
|
Modifier and Type | Method and 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 not
null . |
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. |
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> |
IValidatable.getModel()
Returns the model of the component being validated
|
IModel<T> |
Validatable.getModel() |
Modifier and Type | Method and Description |
---|---|
void |
Validatable.setModel(IModel<T> model)
Sets model
|
Constructor and Description |
---|
VelocityContributor(String templateName,
IModel<? extends Map<?,?>> model)
The templateName needs to have the full path relative to where the resource loader starts
looking.
|
VelocityJavaScriptContributor(Class<?> clazz,
String templatePath,
IModel<? extends Map<?,?>> model,
String id)
Use this constructor if you have configured Velocity to use a ClasspathResourceLoader.
|
VelocityJavaScriptContributor(String templatePath,
IModel<? extends Map<?,?>> model,
String id)
Use this constructor when Velocity is configured with the
FileResourceLoader . |
Modifier and Type | Method and Description |
---|---|
static VelocityPanel |
VelocityPanel.forTemplateResource(String id,
IModel<? extends Map> model,
IResourceStream templateResource)
Convenience factory method to create a
VelocityPanel instance with a given
template resource . |
Constructor and Description |
---|
VelocityPanel(String id,
IModel<? extends Map> model)
Construct.
|
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.