public InstallBundlePanel()

in osgi/core/src/main/java/org/apache/karaf/webconsole/osgi/core/bundle/install/InstallBundlePanel.java [44:80]


    public InstallBundlePanel(String id, IModel<WicketInstallModel> model) {
        super(id);

        Form<WicketInstallModel> form = new Form<WicketInstallModel>("form", new CompoundPropertyModel<WicketInstallModel>(model));
        location = new RequiredTextField<String>("location");
        location.setLabel(of("Bundle location"));
        LabelBorder border = new LabelBorder("locationGroup", location);
        form.add(border);

        upload = new AjaxCheckBox("upload") {
            private static final long serialVersionUID = 1L;

            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                if (target != null) {
                    if (upload.getModelObject()) {
                        onChecked();
                    } else {
                        onUnchecked();
                    }
                    target.add(file);
                }
            }
        };
        upload.setLabel(of("Specify file to install"));
        border = new LabelBorder("uploadGroup", upload);
        form.add(border);

        file = new FileUploadField("file");
        file.setLabel(of("Bundle file"));
        file.add(new AttributeModifier("disabled", "disabled"));
        file.setOutputMarkupId(true);
        border = new LabelBorder("fileGroup", file);
        form.add(border);

        add(form);
    }