public Select2DropDownChoice( String id, IModel<T> model, IModel<List<T>> choices, IChoiceRenderer<T> renderer) { super(id, model, choices, renderer); initBehaviors(); }
private Select2DropDownChoice<StoreInfo> storesDropDown() { final Select2DropDownChoice<StoreInfo> stores = new Select2DropDownChoice<>( "storesDropDown", new Model<>(), new StoreListModel(), new StoreListChoiceRenderer()); stores.setOutputMarkupId(true); stores.add( new AjaxFormComponentUpdatingBehavior("change") {
new PropertyModel<StyleInfo>(layerModel, "defaultStyle"); final Select2DropDownChoice<StyleInfo> defaultStyle = new Select2DropDownChoice<>( "defaultStyle", defaultStyleModel, styles, new StyleChoiceRenderer()); defaultStyle.setRequired(true); styleContainer.add(defaultStyle); defaultStyleUpdater = new LegendGraphicAjaxUpdater(wmsURL, defStyleImg, defaultStyleModel); defaultStyle.add( new OnChangeAjaxBehavior() { private static final long serialVersionUID = -4098934889965471248L;
form.add(new CheckBox("globalServices")); form.add(new TextField<Integer>("numDecimals").add(RangeValidator.minimum(0))); form.add(new Select2DropDownChoice<>("charset", AVAILABLE_CHARSETS)); form.add( new Select2DropDownChoice<>( "resourceErrorHandling", Arrays.asList(ResourceErrorHandling.values()), new Select2DropDownChoice<>( "lockProvider", lockProviderModel, new Select2DropDownChoice<>( "webUIMode", webUIModeModel,
@Override protected void onUpdate(AjaxRequestTarget target) { if (stores.getModelObject() != null) { StoreInfo store = (StoreInfo) stores.getModelObject(); NewLayerPage.this.storeId = store.getId(); provider.setStoreId(store.getId()); storeName.setDefaultModelObject(store.getName()); selectLayers.setVisible(true); // make sure we can actually list the contents, it may happen // the store is actually unreachable, in that case we // want to display an error message try { provider.getItems(); } catch (Exception e) { LOGGER.log( Level.SEVERE, "Error retrieving layers for the specified store", e); error(e.getMessage()); selectLayers.setVisible(false); } updateSpecialFunctionPanels(store); } else { selectLayers.setVisible(false); createTypeContainer.setVisible(false); } target.add(selectLayersContainer); addFeedbackPanels(target); } });
new Select2DropDownChoice<WorkspaceInfo>( "workspace", wsBinding, new Select2DropDownChoice<>( "format", formatBinding, new Select2DropDownChoice<StyleType>( "templates", new Model<StyleType>(), new Select2DropDownChoice<>( "existingStyles", new Model<>(),
final IModel reqFileNameModel = new PropertyModel(requestModel, "requestFileName"); demoRequestsList = new Select2DropDownChoice( "demoRequestsList", reqFileNameModel,
public Select2DropDownChoice( String id, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer) { super(id, choices, renderer); initBehaviors(); }
public Select2DropDownChoice( String id, List<? extends T> choices, IChoiceRenderer<? super T> renderer) { super(id, choices, renderer); initBehaviors(); }
public Select2DropDownChoice( String id, IModel<T> model, List<T> choices, IChoiceRenderer<T> renderer) { super(id, model, choices, renderer); initBehaviors(); }
public Select2DropDownChoice( String id, IModel<T> model, IModel<? extends List<? extends T>> choices) { super(id, model, choices); initBehaviors(); }
public Select2DropDownChoice(String id, List<? extends T> choices) { super(id, choices); initBehaviors(); }
public Select2DropDownChoice(String id, IModel<T> model, List<? extends T> choices) { super(id, model, choices); initBehaviors(); }
public Select2DropDownChoice(String id, IModel<? extends List<? extends T>> choices) { super(id, choices); initBehaviors(); }