Package org.apache.wicket.markup.html.form

Examples of org.apache.wicket.markup.html.form.CheckBox


        form.add(maxTime);
        TextField maxErrors = new TextField("maxRenderingErrors");
        maxErrors.add(NumberValidator.minimum(0.0));
        form.add(maxErrors);
      // watermark
      form.add(new CheckBox("watermark.enabled"));
      form.add(new TextField("watermark.uRL"));
      TextField transparency = new TextField("watermark.transparency");
      transparency.add(NumberValidator.range(0, 100));
        form.add(transparency);
      form.add(new DropDownChoice("watermark.position", Arrays.asList(Position.values()), new WatermarkPositionRenderer()));
      // svg
      PropertyModel metadataModel = new PropertyModel(info, "metadata");
        form.add(new CheckBox("svg.antialias", new MapModel(metadataModel, "svgAntiAlias")));
      form.add(new DropDownChoice("svg.producer", new MapModel(metadataModel, "svgRenderer"), SVG_RENDERERS, new SVGMethodRenderer()));
      // png compression levels
      MapModel pngCompression = defaultedModel(metadataModel, WMS.PNG_COMPRESSION, WMS.PNG_COMPRESSION_DEFAULT);
        TextField pngCompressionField = new TextField("png.compression", pngCompression, Integer.class);
        pngCompressionField.add(new NumberValidator.RangeValidator(0, 100));
        form.add(pngCompressionField);
        // jpeg compression levels
      MapModel jpegCompression = defaultedModel(metadataModel, WMS.JPEG_COMPRESSION, WMS.JPEG_COMPRESSION_DEFAULT);
        TextField jpegCompressionField = new TextField("jpeg.compression", jpegCompression, Integer.class);
        form.add(jpegCompressionField);
       
        // kml handling
        MapModel kmlReflectorMode = defaultedModel(metadataModel, WMS.KML_REFLECTOR_MODE, WMS.KML_REFLECTOR_MODE_DEFAULT);
        form.add(new DropDownChoice("kml.defaultReflectorMode", kmlReflectorMode, KML_REFLECTOR_MODES));
       
        MapModel kmlSuperoverlayMode = defaultedModel(metadataModel, WMS.KML_SUPEROVERLAY_MODE, WMS.KML_SUPEROVERLAY_MODE_DEFAULT);
        form.add(new DropDownChoice("kml.superoverlayMode", kmlSuperoverlayMode, KML_SUPEROVERLAY_MODES));
       
        form.add(new CheckBox("kml.kmattr", defaultedModel(metadataModel, WMS.KML_KMLATTR, WMS.KML_KMLATTR_DEFAULT)));
        form.add(new CheckBox("kml.kmlplacemark", defaultedModel(metadataModel, WMS.KML_KMLPLACEMARK, WMS.KML_KMLPLACEMARK_DEFAULT)));
       
        MapModel kmScore = defaultedModel(metadataModel, WMS.KML_KMSCORE, WMS.KML_KMSCORE_DEFAULT);
        TextField kmScoreField = new TextField("kml.kmscore", kmScore, Integer.class);
        kmScoreField.add(new NumberValidator.RangeValidator(0, 100));
        form.add(kmScoreField);
View Full Code Here


    }
   
    Component defaultStyleCheckbox(String id, IModel itemModel) {
        final LayerGroupEntry entry = (LayerGroupEntry) itemModel.getObject();
        Fragment f = new Fragment(id, "defaultStyle", this);
        CheckBox ds = new CheckBox("checkbox", new Model(entry.isDefaultStyle()));
        ds.add(new OnChangeAjaxBehavior() {
           
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                Boolean useDefault = (Boolean) getComponent().getModelObject();
                entry.setDefaultStyle(useDefault);
View Full Code Here

        add(newTranslationForm = new Form("newTranslationForm"));

        newLanguageChoice = newLanguageChoice();
        newTranslationForm.add(newLanguageChoice);
        newTranslationForm.add(new CheckBox("showNativeLanguageNames"));
       
        newTranslationForm.add(createNewTranslationLink());
        newTranslationForm.add(cancelLink());
        localeInput = new LocaleInputField("localeInput");
        localeInput.setOutputMarkupId(true);
View Full Code Here

        return toolbarForm;
    }

    private CheckBox showMissingOnlyComponent() {
        final IModel model = new PropertyModel(getModel(), "showMissingOnly");
        final CheckBox checkBox = new CheckBox("showMissingOnly", model);

        checkBox.add(new AjaxFormSubmitBehavior(toolbarForm, "onChange") {
            private static final long serialVersionUID = 1L;

            @Override
            protected void onSubmit(final AjaxRequestTarget target) {
                keyTreePanel.refresh();
View Full Code Here

@SuppressWarnings("serial")
public class GeoSearchLayerConfigPanel extends LayerConfigurationPanel{
    public GeoSearchLayerConfigPanel(String id, IModel model){
        super(id, model);

        add(new CheckBox("geosearch.enable", new MapModel(new PropertyModel(getModel(), "resource.metadata"), "indexingEnabled")));
    }
View Full Code Here

       
        Form form = new Form("form", new CompoundPropertyModel(globalInfoModel));

        add(form);

        form.add(new CheckBox("verbose"));
        form.add(new CheckBox("verboseExceptions"));
        form.add(new TextField("numDecimals"));
        form.add(new TextField("charset"));
        form.add(new TextField("proxyBaseUrl"));
       
        logLevelsAppend(form, loggingInfoModel);
        form.add(new CheckBox("stdOutLogging", new PropertyModel( loggingInfoModel, "stdOutLogging")));
        form.add(new TextField("loggingLocation", new PropertyModel( loggingInfoModel, "location")) );
       
        form.add(new TextField("featureTypeCacheSize"));
       
        Button submit = new Button("submit", new StringResourceModel("submit", this, null)) {
View Full Code Here

        })));
        form.add(new TextField("maintainer"));
        TextField onlineResource = new TextField("onlineResource");
        onlineResource.add(new UrlValidator());
        form.add(onlineResource);
        form.add(new CheckBox("enabled"));
        form.add(new CheckBox("citeCompliant"));
        form.add(new TextField("title"));
        form.add(new TextArea("abstract"));
        form.add(new KeywordsEditor("keywords", LiveCollectionModel.list(new PropertyModel(infoModel, "keywords"))));
        form.add(new TextField("fees"));
        form.add(new TextField("accessConstraints"));
View Full Code Here

        }
        return result;
    }
   
    CheckBox selectAllCheckbox() {
        CheckBox sa = new CheckBox("selectAll", new PropertyModel(this, "selectAllValue"));
        sa.setOutputMarkupId(true);
        sa.add(new AjaxFormComponentUpdatingBehavior("onclick") {

            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                // select all the checkboxes
                setSelection(selectAllValue);
View Full Code Here

        });
        return sa;
    }
   
    CheckBox selectOneCheckbox(Item item) {
        CheckBox cb = new CheckBox("selectItem", new SelectionModel(item.getIndex()));
        cb.setOutputMarkupId(true);
        cb.add(new AjaxFormComponentUpdatingBehavior("onclick") {

            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                if(Boolean.FALSE.equals(getComponent().getModelObject())) {
                    selectAllValue = false;
View Full Code Here

    // atm the layer follows the resource name, so it's not editable
    TextField name = new TextField("name");
    name.setEnabled(false);
   
        add(name);
    add(new CheckBox("enabled"));
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.form.CheckBox

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.