Examples of EmailField


Examples of com.stimulus.archiva.domain.fields.EmailField

   public void setDefaults() {
    
       emailFields = new LinkedHashMap<String,EmailField>();
      
      emailFields.put("priority", new EmailField("priority","field_label_priority",SearchMethod.STORED,"priority",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,1,ShowInResults.RESULTS));
     
      emailFields.put("attach", new EmailField("attach","field_label_attach",SearchMethod.STORED,"attach",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.NOARCHIVERULE,AllowSearch.NOSEARCH,1,ShowInResults.RESULTS));
     
      emailFields.put("score", new EmailField("score","field_label_score",SearchMethod.NONE,"score",
                  AllowExport.NOEXPORT,AllowViewMail.NOVIEWMAIL,AllowArchiveRule.NOARCHIVERULE,AllowSearch.NOSEARCH,5,ShowInResults.RESULTS));
     
      emailFields.put("size", new EmailField("size","field_label_size",SearchMethod.STORED,"size",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,5,ShowInResults.RESULTS));
     
      // set to NOSEARCH, as will always be searchable but must not appear in search field drop down
      emailFields.put("sentdate", new EmailField("sentdate","field_label_sentdate",SearchMethod.STORED,"sentdate",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.NOSEARCH,12,ShowInResults.CONDITIONAL));
     
      emailFields.put("archivedate", new EmailField("archivedate","field_label_archivedate",SearchMethod.STORED,"archivedate",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.NOSEARCH,12,ShowInResults.CONDITIONAL));
     
      emailFields.put("receiveddate", new EmailField("receiveddate","field_label_receiveddate",SearchMethod.STORED,"receiveddate",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.NOSEARCH,12,ShowInResults.CONDITIONAL));
     
      //emailFields.put("receivedate", new EmailField("receivedate","field_label_receivedate",SearchMethod.STORED,"receivedate",
         //        AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.NOSEARCH,12,ShowInResults.CONDITIONAL));
     
      emailFields.put("from", new EmailField("from","field_label_from",SearchMethod.TOKENIZED_AND_STORED,"from",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,20,ShowInResults.RESULTS));
     
      emailFields.put("to", new EmailField("to","field_label_to",SearchMethod.TOKENIZED_AND_STORED,"to",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,30,ShowInResults.RESULTS));
     
      emailFields.put("subject", new EmailField("subject","field_label_subject",SearchMethod.TOKENIZED_AND_STORED,"subject",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,30,ShowInResults.RESULTS));
     
      emailFields.put("cc", new EmailField("cc","field_label_cc",SearchMethod.TOKENIZED,"cc",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,1,ShowInResults.NORESULTS));
     
      emailFields.put("bcc", new EmailField("bcc","field_label_bcc",SearchMethod.TOKENIZED,"bcc",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,1,ShowInResults.NORESULTS));
     
      emailFields.put("deliveredto", new EmailField("deliveredto","field_label_deliveredto",SearchMethod.TOKENIZED,"deliveredto",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,1,ShowInResults.NORESULTS));
     
      emailFields.put("flag", new EmailField("flag","field_label_flag",SearchMethod.TOKENIZED,"flag",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,1,ShowInResults.NORESULTS));
     
      emailFields.put("sender", new EmailField("sender","field_label_sender",SearchMethod.TOKENIZED,"sender",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,1,ShowInResults.NORESULTS));
     
      emailFields.put("recipient", new EmailField("recipient","field_label_recipient",SearchMethod.TOKENIZED,"recipient",
                  AllowExport.EXPORT,AllowViewMail.VIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,1,ShowInResults.NORESULTS));
     
      emailFields.put("body", new EmailField("body","field_label_body",SearchMethod.TOKENIZED,"body",
                  AllowExport.NOEXPORT,AllowViewMail.NOVIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,1,ShowInResults.NORESULTS));

      emailFields.put("attachments", new EmailField("attachments","field_label_attachments",SearchMethod.TOKENIZED,"attachments",
                  AllowExport.NOEXPORT,AllowViewMail.NOVIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,1,ShowInResults.NORESULTS));
     
      emailFields.put("attachname", new EmailField("attachname","field_label_attachname",SearchMethod.TOKENIZED,"attachname",
                  AllowExport.NOEXPORT,AllowViewMail.NOVIEWMAIL,AllowArchiveRule.ARCHIVERULE,AllowSearch.SEARCH,1,ShowInResults.NORESULTS));

   }
View Full Code Here

Examples of javango.forms.fields.EmailField

import junit.framework.TestCase;

public class EmailFieldTest extends InjectedTestCaseBase {

  public void testNotRequired() throws Exception {
    Field<String> field = new EmailField(injector.getInstance(WidgetFactory.class));
    field.setName("fieldName");
    field.setRequired(false);

    Map<String, String> errors = new HashMap<String, String>();
   
    String value = field.clean(new String[]{""}, errors);
    assertTrue(errors.isEmpty());
  }
View Full Code Here

Examples of org.apache.click.extras.control.EmailField

        getForm().add(querySelect);

        getForm().add(new TextField("firstName"));
        getForm().add(new TextField("lastName"));
        getForm().add(new DateField("dateJoined"));
        getForm().add(new EmailField("email"));
    }
View Full Code Here

Examples of org.apache.click.extras.control.EmailField

        // Row 2
        fieldSet.add(new TextArea("description", 39, 3), 2);

        // Row 3
        fieldSet.add(new EmailField("email"), 2);

        // Row 4
        fieldSet.add(new TelephoneField("telephone"));

        fieldSet.add(new Submit("ok", " OK "));
View Full Code Here

Examples of org.apache.click.extras.control.EmailField

    public EditTable() {
        // Setup customers form
        FieldSet fieldSet = new FieldSet("customer");
        fieldSet.add(new TextField("name"));
        fieldSet.add(new EmailField("email"));
        fieldSet.add(new DoubleField("holdings"));
        fieldSet.add(new DateField("dateJoined"));
        form.add(fieldSet);
        form.add(new Submit("save", this, "onSaveClick"));
        form.add(new Submit("cancel", this, "onCancelClick"));
View Full Code Here

Examples of org.apache.click.extras.control.EmailField

        nameField = new TextField("name");
        nameField.setRequired(true);
        nameField.setFocus(true);
        fieldSet.add(nameField);

        emailField = new EmailField("email");
        emailField.setRequired(true);
        fieldSet.add(emailField);

        investmentsField = new InvestmentSelect("investments");
        fieldSet.add(investmentsField);
View Full Code Here

Examples of org.apache.click.extras.control.EmailField

        TextField nameField = new TextField("name", true);
        nameField.setMinLength(5);
        nameField.setFocus(true);
        fieldSet.add(nameField);

        fieldSet.add(new EmailField("email"));

        IntegerField ageField = new IntegerField("age");
        ageField.setMinValue(1);
        ageField.setMaxValue(120);
        ageField.setWidth("40px");
View Full Code Here

Examples of org.apache.click.extras.control.EmailField

    public EditCustomerPage() {
        // Setup customers form
        FieldSet fieldSet = new FieldSet("customer");
        fieldSet.add(new TextField("name", true));
        fieldSet.add(new EmailField("email"));
        fieldSet.add(new DoubleField("holdings", true));
        fieldSet.add(new DateField("dateJoined"));
        form.add(fieldSet);
        form.add(new Submit("save", this, "onSaveClick"));
        form.add(new Submit("cancel", this, "onCancelClick"));
View Full Code Here

Examples of org.apache.click.extras.control.EmailField

        nameField.setMinLength(5);
        nameField.setTitle("Customer full name");
        nameField.setFocus(true);
        form.add(nameField);

        EmailField emailField = new EmailField("email", true);
        emailField.setTitle("Customers email address");
        form.add(emailField);

        IntegerField ageField = new IntegerField("age");
        ageField.setMinValue(1);
        ageField.setMaxValue(120);
View Full Code Here

Examples of org.apache.click.extras.control.EmailField

    public EmailForm() {
        form.setLabelsPosition(Form.POSITION_TOP);
        form.setErrorsPosition(Form.POSITION_TOP);

        EmailField addressField = new EmailField("address", "To:");
        addressField.setRequired(true);
        addressField.setSize(60);
        form.add(addressField);

        TextField subjectField = new TextField("subject", "Subject:");
        subjectField.setRequired(true);
        subjectField.setSize(60);
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.