/** * @param id * See Component * @param list * List to cast to Serializable * @see org.apache.wicket.Component#Component(String, IModel) */ public ListView(final String id, final List<T> list) { this(id, Model.ofList(list)); }
/** * @param id * See Component * @param list * List to cast to Serializable * @see org.apache.wicket.Component#Component(String, IModel) */ public ListView(final String id, final List<T> list) { this(id, Model.ofList(list)); }
/** * Constructor * * @param id the markup id * @param model the {@link IModel} * @param choices the list model of choices * @param renderer the renderer to be used, so the renderer item text and its values can be dissociated */ public ComboBox(String id, IModel<String> model, List<T> choices, IChoiceRenderer<? super T> renderer) { this(id, model, Model.ofList(choices), renderer); }
/** * Constructor * * @param id the markup id * @param model the {@link IModel} * @param choices the list of choices */ public ButtonGroup(String id, IModel<T> model, List<T> choices) { this(id, model, Model.ofList(choices)); }
/** * Construct. * * @param markupId the component id * @param images the list of images */ public Carousel(final String markupId, final List<ICarouselImage> images) { this(markupId, Model.ofList(images)); }
@Override public IModel<List<String>> model(List<String> object) { return Model.ofList(object); }
/** * Constructor * * @param id * Wicket identifier * @param radios * List of radios */ public ButtonRadioSet(String id, List<ButtonElement<T>> radios) { this(id, Model.ofList(radios)); }
/** * Constructor * * @param id the markup id * @param choices the list of choices * @param renderer the renderer to be used, so the renderer item text and its values can be dissociated */ public ComboBox(String id, List<T> choices, IChoiceRenderer<? super T> renderer) { this(id, Model.ofList(choices), renderer); }
/** * Constructor * * @param id the markup id * @param tabs the list of {@link ITab}{@code s} * @param options the {@link Options} */ public TabbedPanel(String id, List<ITab> tabs, Options options) { this(id, Model.ofList(tabs), options); }
/** * Constructor * * @param id the markup id * @param items the list of {@link IMenuItem} */ public AbstractSplitButton(String id, List<IMenuItem> items) { this(id, Model.ofList(items)); }
/** * Creates an external image * * @param id * the component id * @param srcModel * the model source URL */ public ExternalImage(String id, IModel<Serializable> srcModel) { this(id, srcModel, Model.ofList(Collections.<Serializable> emptyList())); }
/** * Creates an external image * * @param id * the component id */ public ExternalImage(String id) { this(id, null, Model.ofList(Collections.<Serializable> emptyList())); }
/** * Creates an external image * * @param id * the component id * @param srcModel * the model source URL */ public ExternalImage(String id, IModel<Serializable> srcModel) { this(id, srcModel, Model.ofList(Collections.<Serializable> emptyList())); }
/** * Creates an external image * * @param id * the component id */ public ExternalImage(String id) { this(id, null, Model.ofList(Collections.<Serializable> emptyList())); }
/** * Creates an external image * * @param id * the component id * @param src * the source URL */ public ExternalImage(String id, Serializable src) { this(id, Model.of(src), Model.ofList(Collections.<Serializable> emptyList())); }
/** * Creates an external image * * @param id * the component id * @param src * the source URL */ public ExternalImage(String id, Serializable src) { this(id, Model.of(src), Model.ofList(Collections.<Serializable> emptyList())); }
/** * Constructor * * @param id the markup id * @param columns the list of {@link IColumn} * @param provider the {@link IDataProvider} * @param rows the number of rows per page to be displayed */ public DataTable(String id, final List<IColumn> columns, final IDataProvider<T> provider, final long rows) { this(id, Model.ofList(columns), provider, rows, new Options()); }
/** * Constructor * @param id the markup id * @param choices the list of choices */ public ComboBox(String id, List<? extends T> choices) { this(id, Model.ofList(choices), new ComboBoxRenderer<T>()); }
/** * Constructor * * @param id the markup id * @param choices the list of choices */ public ComboBox(String id, List<T> choices) { this(id, Model.ofList(choices), new ChoiceRenderer<T>()); }
/** * Sets the model as the provided list and removes all children, so that the next render will be * using the contents of the model. * * @param list * The list for the new model. The list must implement {@link Serializable}. * @return This for chaining */ public ListView<T> setList(List<T> list) { setDefaultModel(Model.ofList(list)); return this; }