Examples of FileField


Examples of com.ibm.sbt.services.client.connections.activities.FileField

      }
      if (field instanceof DateField) {
        DateField dateField = (DateField)field;
        addText(element, DateSerializer.toString(dateFormat, dateField.getDate()));
      } else if (field instanceof FileField) {
        FileField fileField = (FileField)field;
        if (fileField.getEditMediaLink() != null) {
          Element link = element(Namespace.ATOM.getUrl(), "link",
              attribute("href", fileField.getEditMediaLink().getHref()),
              attribute("type", fileField.getEditMediaLink().getType()),
              attribute("size", fileField.getEditMediaLink().getSize()));
          appendChildren(element, link);         
        }
      } else if (field instanceof LinkField) {
        LinkField linkField = (LinkField)field;
        Element link = element(Namespace.ATOM.getUrl(), "link",
View Full Code Here

Examples of dk.brics.jwig.FileField

                            value = aParsed_request.getString("UTF-8");
                        } catch (UnsupportedEncodingException e) {
                            throw new JWIGException(e);
                        }
                    } else {
                        value = new FileField(aParsed_request);
                    }
                    List<Object> ps = paramslists.get(name);
                    if (ps == null) {
                        ps = new ArrayList<Object>();
                        paramslists.put(name, ps);
View Full Code Here

Examples of edu.stanford.smi.protege.util.FileField

        private FileField fileField;

        ClamlFilesWizardPage(Wizard wizard, ClamlCreateProjectPlugin plugin) {
            super("foo files", wizard);
            this.plugin = plugin;
            fileField = new FileField("CLAML File", null, ".xml", "CLAML Files");
            JPanel panel = new JPanel(new GridLayout(1, 0));
            panel.add(fileField);
            setLayout(new BorderLayout());
            add(panel);
            setPageComplete(false);
View Full Code Here

Examples of edu.stanford.smi.protege.util.FileField

  private void buildUI() {
    setLayout(new BorderLayout());
   
    java.util.List<String> extensions = (java.util.List<String>) Arrays.asList((new String[]{"pprj", "owl" , "rdfs", "rdf"}));
    fileField = new FileField("Select file", null, new ExtensionFilter(extensions.iterator(), "Files"));
    JPanel filePanel = new JPanel(new BorderLayout());
    filePanel.add(fileField, BorderLayout.CENTER);
    JPanel buttonPanel = new JPanel();
    buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.Y_AXIS));
    JButton button = new JButton(getLoadAction());
View Full Code Here

Examples of edu.stanford.smi.protege.util.FileField

      "Speciality_Adaptation_Mental_Health", "Specialty_Adaptation_Dermatology",
      "Specialty_Adaptation_Musculoskeletal", "Specialty_Adaptation_Neurology",
      "Specialty_Adaptation_Paediatrics"}

    public ICDClaMLExportPanel() {
      umbrellaProjectFileField = new FileField("ICD Umbrella pprj file name",
                                     null, ".pprj",
                                     "Protege Project files");

      clamlOutputFileFiled = new FileField("ICD ClaML output file name",
                null, ".xml",
                "ICD ClaML output (xml) files");
     
      JPanel panelLinearType = new JPanel();
      labelLinearType = new JLabel("Linearization type: ");
View Full Code Here

Examples of org.apache.click.control.FileField

        form.setLabelsPosition("top");

        FieldSet fieldSet1 = new FieldSet("upload1", "<b>Upload File 1</b>");
        form.add(fieldSet1);

        fileField1 = new FileField("selectFile1", "Select File 1", 40);
        fieldSet1.add(fileField1);

        descField1 = new TextField("description1", "File Description 1", 30);
        fieldSet1.add(descField1);

        FieldSet fieldSet2 = new FieldSet("upload2", "<b>Upload File 2</b>");
        form.add(fieldSet2);

        fileField2 = new FileField("selectFile2", "Select File 2", 40);
        fieldSet2.add(fileField2);

        descField2 = new TextField("description2", "File Description 2", 30);
        fieldSet2.add(descField2);
View Full Code Here

Examples of org.apache.click.control.FileField

        // Controls FieldSet
        FieldSet fieldSet = new FieldSet("fieldSet");
        form.add(fieldSet);

        fieldSet.add(new Checkbox("checkbox"));
        fieldSet.add(new FileField("fileField"));
        fieldSet.add(new HiddenField("hiddenField", String.class));
        String labelText = "<span style='color:blue;font-style:italic'>Label - note how label text spans both columns</span>";
        fieldSet.add(new Label("label", labelText));
        fieldSet.add(new PasswordField("passwordField"));
        fieldSet.add(new Radio("radio", "Radio", "radio"));
View Full Code Here

Examples of org.apache.click.control.FileField

    public void onInit() {
        addControl(form);
        form.add(new TextField("firstname"));
        form.add(new TextField("lastname"));
        FileField upload1 = new FileField("upload1");
        form.add(upload1);
        FileField upload2 = new FileField("upload2");
        form.add(upload2);
    }
View Full Code Here

Examples of org.apache.click.control.FileField

        // Check that field parameters were processed
        assertEquals(firstname, page.getForm().getFieldValue("firstname"));
        assertEquals(lastname, page.getForm().getFieldValue("lastname"));

        // Check that file field parameters were processed
        FileField fileField1 = (FileField) page.getForm().getField("upload1");
        FileField fileField2 = (FileField) page.getForm().getField("upload2");
        assertEquals("upload1 success", fileField1.getFileItem().getString());
        assertEquals("upload2 success", fileField2.getFileItem().getString());

        container.stop();
    }
View Full Code Here

Examples of org.apache.click.control.FileField

        // Controls FieldSet
        FieldSet fieldSet = new FieldSet("fieldSet");
        form.add(fieldSet);

        fieldSet.add(new Checkbox("checkbox"));
        fieldSet.add(new FileField("fileField"));
        fieldSet.add(new HiddenField("hiddenField", String.class));
        String labelText = "<span style='color:blue;font-style:italic'>Label - note how label text spans both columns</span>";
        fieldSet.add(new Label("label", labelText));
        fieldSet.add(new PasswordField("passwordField"));
        fieldSet.add(new Radio("radio", "Radio", "radio"));
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.