Examples of AjaxCheckBox


Examples of org.apache.wicket.ajax.markup.html.form.AjaxCheckBox

    @Override
    protected void populateForm(Form<ResourcesFilterData> form) {
        super.populateForm(form);
       
        //User role filter
        form.add(new AjaxCheckBox(CKEY_UR_CHECKBOX) {
            private static final long serialVersionUID = 1L;

            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                if(filterObject != null) {
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxCheckBox

        InputPanel inputPanel = new InputPanel(componentId) {

            @Override
            protected Component createControl(String controlId) {
                CheckBox checkbox = new AjaxCheckBox(controlId, new Model<Boolean>(){
                    @Override
                    public Boolean getObject() {
                        return selectedResourcesIds.contains(entityId);
                    }
                }) {
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxCheckBox

    public Component getHeader(String componentId) {
        return new InputPanel(componentId) {

            @Override
            protected Component createControl(String controlId) {
                return new AjaxCheckBox(controlId, new Model()) {


                    @Override
                    protected void onUpdate(AjaxRequestTarget target) {
                       
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxCheckBox

                                public void detach() {}
                            };

                        Fragment fragment = new Fragment(
                            id, "layer.association.checkbox", MultipleLayerChooser.this);
                        fragment.add(new AjaxCheckBox("selected", model) {
                            public void onUpdate(AjaxRequestTarget target) {}
                        });
                        return fragment;
                    } else {
                        return new Label(id, text);
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxCheckBox

        final SolrAttributeProvider attProvider = new SolrAttributeProvider(attributes);

        final GeoServerTablePanel<SolrAttribute> solrAttributePanel = getSolrAttributePanel(attProvider);
        solr_form.add(solrAttributePanel);

        AjaxCheckBox checkBox = new AjaxCheckBox("hideEmpty", Model.of(Boolean.TRUE)) {
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                attProvider.reload((Boolean) this.getDefaultModelObject());
                target.addComponent(solrAttributePanel);
            }
        };

        checkBox.setOutputMarkupId(true);
        solr_form.add(checkBox);

        solr_form.add(new AjaxButton("solr_save") {
            protected void onSubmit(AjaxRequestTarget target, Form form) {
                onSave(target);
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxCheckBox

        });

        IModel gsApp = new GeoServerApplicationModel();

        // controls whether wicket paths are being generated
        final AjaxCheckBox wicketPaths = new AjaxCheckBox("wicketPaths",
                new PropertyModel(gsApp, "debugSettings.outputComponentPath")) {

            @Override
            protected void onUpdate(AjaxRequestTarget target) {

            }

        };
        wicketPaths.setOutputMarkupId(true);
        add(wicketPaths);
       
        // controls the xhtml validation filter
        xhtml = new AjaxCheckBox("xhtml", new XHTMLModel()) {
           
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                wicketIds.setModelObject(Boolean.TRUE);
                wicketPaths.setModelObject(Boolean.FALSE);
                target.addComponent(wicketIds);
                target.addComponent(wicketPaths);
            }
        };
        add(xhtml);

        // controls whether wicket ids are being generated
        wicketIds = new AjaxCheckBox("wicketIds", new PropertyModel(gsApp,
                "markupSettings.stripWicketTags")) {

            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                wicketPaths.setModelObject(Boolean.FALSE);
                target.addComponent(wicketPaths);
            }

        };
        wicketIds.setOutputMarkupId(true);
        add(wicketIds);
       
        // controls whether the ajax debug is enabled or not
        add(new AjaxCheckBox("ajaxDebug", new PropertyModel(gsApp, "debugSettings.ajaxDebugModeEnabled")) {

            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                // nothing to do, the property binding does the work for us
            }
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxCheckBox

        add(new CheckBox("uppercaseRequired"));
        add(new CheckBox("lowercaseRequired"));
        add(new TextField<Integer>("minLength"));

        boolean unlimited = pwPolicy.getMaxLength() == -1;
        add(new AjaxCheckBox("unlimitedMaxLength", new Model(unlimited)) {
           
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                Boolean value = getModelObject();
                maxLengthPanel.setVisible(!value);
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxCheckBox

                        }
                    };
                    link.setOutputMarkupId(true);
                    link.setEnabled(service.enabled);
                   
                    AjaxCheckBox enabled =
                        new AjaxCheckBox("enabled", new PropertyModel<Boolean>(service, "enabled")) {
                        @Override
                        protected void onUpdate(AjaxRequestTarget target) {
                            link.setEnabled(getModelObject());
                            target.addComponent(link);
                        }
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxCheckBox

public class RuleRolesFormComponent extends RolePaletteFormComponent {

    public RuleRolesFormComponent(String id, IModel<Collection<String>> roleNamesModel) {
        super(id, new RolesModel(roleNamesModel), new RuleRolesModel());

        add(new AjaxCheckBox("anyRole", new Model(false)) {
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                palette.setEnabled(!getModelObject());
                target.addComponent(palette);
            }
View Full Code Here

Examples of org.apache.wicket.ajax.markup.html.form.AjaxCheckBox

    FeedbackPanel feedbackPanel;
   
    public JDBCConnectionPanel(String id, IModel<T> model) {
        super(id, new Model());

        add(new AjaxCheckBox("jndi") {
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                WebMarkupContainer c =
                    (WebMarkupContainer) JDBCConnectionPanel.this.get("cxPanelContainer");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.