JsonSerializerSettings settings = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore, MissingMemberHandling = MissingMemberHandling.Ignore, Formatting = Formatting.None, DateFormatHandling = DateFormatHandling.IsoDateFormat, Converters = new List<JsonConverter> { new DecimalConverter() } };
@Override protected void onClick(AjaxRequestTarget target) { onCodeClicked(target, getDefaultModelObjectAsString()); } };
public SRSListTextArea(String id, IModel<List<String>> model) { super(id, model); add(new SRSListValidator()); setType(List.class); }
Component editRuleLink(String id, IModel itemModel, Property<ServiceAccessRule> property) { return new SimpleAjaxLink(id, itemModel, property.getModel(itemModel)) { @Override protected void onClick(AjaxRequestTarget target) { setResponsePage( new EditServiceAccessRulePage((ServiceAccessRule) getDefaultModelObject())); } }; } }
public Page createPage() { userPanel = delegate.getContents("userPanel"); return new ContentsPage(userPanel); } });
public EnvelopePanel setReadOnly( final boolean readOnly ) { visitChildren( TextField.class, new org.apache.wicket.Component.IVisitor() { public Object component(Component component) { component.setEnabled( !readOnly ); return null; } }); crsPanel.setReadOnly(readOnly); return this; }
@Override protected void onSubmit(AjaxRequestTarget target, Form form) { submit(target, (Component) this.getDefaultModelObject()); }
/** * Constructs the CRS panel with an explicit model. * * @param id The component id. * @param model The model, usually a {@link PropertyModel}. */ public CRSPanel(String id, IModel model) { super(id, model); initComponents(); }
public DecimalListTextField(String id, IModel<List> model) { super(id, model, List.class); decimalListConverter = new DecimalListConverter(); setConvertEmptyInputStringToNull(false); }
/** * Sets the max number of digits for the * @param maximumFractionDigits */ public void setMaximumFractionDigits(int maximumFractionDigits) { xInput.setMaximumFractionDigits(maximumFractionDigits); yInput.setMaximumFractionDigits(maximumFractionDigits); }
/** * Utility method to dump a single component/page to standard output * * @param c * @param dumpClass * @param dumpValue */ public static void print(Component c, boolean dumpClass, boolean dumpValue) { print(c, dumpClass, dumpValue, false); }
public Select2DropDownChoice( String id, IModel<T> model, IModel<List<T>> choices, IChoiceRenderer<T> renderer) { super(id, model, choices, renderer); initBehaviors(); }
@SuppressWarnings("unchecked") Component editRoleLink(String id, IModel itemModel, Property<GeoServerRole> property) { return new SimpleAjaxLink(id, itemModel, property.getModel(itemModel)) { @Override protected void onClick(AjaxRequestTarget target) { setResponsePage( new EditRolePage(roleServiceName, (GeoServerRole) getDefaultModelObject()) .setReturnPage(getPage())); } }; }
@Override protected void onClick(AjaxRequestTarget target) { onCodeClicked(target, getDefaultModelObjectAsString()); } };
/** * Constructs the CRS panel with an explicit model. * * @param id The component id. * @param model The model, usually a {@link PropertyModel}. */ public CRSPanel(String id, IModel<CoordinateReferenceSystem> model) { super(id, model); initComponents(); }
public Select2DropDownChoice( String id, IModel<? extends List<? extends T>> choices, IChoiceRenderer<? super T> renderer) { super(id, choices, renderer); initBehaviors(); }
Component editRuleLink(String id, IModel itemModel, Property<DataAccessRule> property) { return new SimpleAjaxLink(id, itemModel, property.getModel(itemModel)) { @Override protected void onClick(AjaxRequestTarget target) { setResponsePage(new EditDataAccessRulePage((DataAccessRule) getDefaultModelObject())); } }; }
Component editRuleLink(String id, IModel itemModel, Property<DataAccessRule> property) { return new SimpleAjaxLink(id, itemModel, property.getModel(itemModel)) { @Override protected void onClick(AjaxRequestTarget target) { setResponsePage(new EditDataAccessRulePage((DataAccessRule) getDefaultModelObject())); } }; }