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

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


 
  public BasicLayerConfig(String id, IModel model) {
    super(id, model);
    init();
    // 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


@SuppressWarnings("serial")
public class HTTPLayerConfig extends LayerConfigurationPanel {
    public HTTPLayerConfig(String id, IModel model){
        super(id, model);
        add(new CheckBox("cachingEnabled", new MapModel(new PropertyModel(model, "resource.metadata"), "cachingEnabled")));
        TextField maxAge = new TextField("cacheAgeMax", new MapModel(new PropertyModel(model, "resource.metadata"), "cacheAgeMax"), Long.class);
        maxAge.add(NumberValidator.range(0, Long.MAX_VALUE));
        add(maxAge);
    }
View Full Code Here

        choices = new ListMultipleChoice("keywords", new Model(), new ArrayList((List) keywords.getObject()));
        choices.setOutputMarkupId(true);
        add(choices);
        add(removeKeywordsButton());
        newKeyword = new TextField("newKeyword", new Model());
        newKeyword.setOutputMarkupId(true);
        add(newKeyword);
        add(addKeywordsButton());
    }
View Full Code Here

            }
        };
        styleForm.setMarkupId("mainForm");
        add(styleForm);

        styleForm.add(nameTextField = new TextField("name"));
        nameTextField.setRequired(true);
       
        styleForm.add( editor = new TextArea("editor", new PropertyModel(this, "rawSLD")) );
        // force the id otherwise this blasted thing won't be usable from other forms
        editor.setMarkupId("editor");
View Full Code Here

                new MapModel(metadata, "kml.regionateAttribute"),
                new AttributeNamesModel(new PropertyModel(model, "resource"))));
        add(new DropDownChoice("kml.regionateStrategy",
                    new MapModel(metadata, "kml.regionateStrategy"), KML_STRATEGIES)
           );
        TextField maxFeatures = new TextField("kml.regionateFeatureLimit",
                    new MapModel(metadata, "kml.regionateFeatureLimit"), Integer.class);
        maxFeatures.add(NumberValidator.minimum(1));
        add(maxFeatures);
    }
View Full Code Here

public class LabelParamPanel extends Panel {
 
    public LabelParamPanel(final String id, final IModel labelModel, IModel paramLabelModel) {
        super(id, labelModel);
        Label label = new Label("paramName", paramLabelModel);
        TextField textField = new TextField("paramValue", labelModel);

        add(label);
        add(textField);
    }
View Full Code Here

            protected void onError(AjaxRequestTarget target) {
                // nothing to do
            }
        });

        urlTextField = new TextField("url", new PropertyModel(requestModel, "requestUrl"));
        urlTextField.setMarkupId("requestUrl");
        urlTextField.setOutputMarkupId(true);
        demoRequestsForm.add(urlTextField);

        body = new TextArea("body", new PropertyModel(requestModel, "requestBody"));
        // force the id otherwise this blasted thing won't be usable from other forms
        body.setMarkupId("requestBody");
        body.setOutputMarkupId(true);
        body.add(new EditAreaBehavior());
        demoRequestsForm.add(body);

        username = new TextField("username", new PropertyModel(requestModel, "userName"));
        demoRequestsForm.add(username);

        password = new PasswordTextField("password", new PropertyModel(requestModel, "password"));
        password.setRequired(false);
        demoRequestsForm.add(password);
View Full Code Here

        String requiredMark = required ? " *" : "";
        Label label = new Label("paramName", paramLabelModel.getObject() + requiredMark);
        add(label);

        // the text field, with a decorator for validations
        textField = new TextField("paramValue", paramValue);
        textField.setRequired(required);
        // set the label to be the paramLabelModel otherwise a validation error would look like
        // "Parameter 'paramValue' is required"
        textField.setLabel(paramLabelModel);

View Full Code Here

                return new Label(componentId, new ResourceModel(
                        "ExtraStylesPalette.availableHeader"));
            }
        };
        add(extraStyles);
        add(new TextField("wmsPath", new PropertyModel(layerModel, "path")));
    }
View Full Code Here

    protected Class<WFSInfo> getServiceClass() {
        return WFSInfo.class;
    }
   
    protected void build(final IModel info, Form form) {
        form.add( new TextField( "maxFeatures" ) );
        form.add( new CheckBox("featureBounding") );
       
        //service level
        RadioGroup sl = new RadioGroup( "serviceLevel" );
        form.add( sl );
View Full Code Here

TOP

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

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.