Examples of DateText


Examples of br.com.visualmidia.ui.widgets.DateText

        data.left = new FormAttachment(attendanceResponsableCombo, 7);
        attendanceDateLabel.setLayoutData(data);
    }

    private void createAttendanceDateText() {
        attendanceDateText = new DateText(mainComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
        attendanceDateText.setValue(new GDDate().getDate());

        FormData data = new FormData();
        data.top = new FormAttachment(attendanceDateLabel, 1);
        data.left = new FormAttachment(attendanceResponsableCombo, 5);
View Full Code Here

Examples of br.com.visualmidia.ui.widgets.DateText

        periodLabel.setText("Per�odo:");
        periodLabel.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
        periodLabel.setEnabled(true);

        GDDate today = new GDDate();
        startPeriodText = new DateText(composite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
        startPeriodText.setValue(today.getDate());
        startPeriodText.setEnabled(false);

        final Label atLabel = new Label(composite, SWT.NULL);
        atLabel.setText("�");
        atLabel.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
        atLabel.setEnabled(true);

        endPeriodText = new DateText(composite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
        endPeriodText.setValue(today.getDate());
        endPeriodText.setEnabled(false);
    }
View Full Code Here

Examples of br.com.visualmidia.ui.widgets.DateText

    GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
    buttonsComposite.setLayoutData(gridData);

    GDDate date = new GDDate();

    final DateText fromDateText = new DateText(buttonsComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
    date.setFirstDayOfMonth();
    fromDateText.setValue(date.getDate());
    gridData = new GridData();
    gridData.widthHint = 80;
    fromDateText.setLayoutData(gridData);

    Label label = new Label(buttonsComposite, SWT.NONE);
    label.setText("  �  ");

    final DateText toDateText = new DateText(buttonsComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
    date.setLastDayOfMonth();
    toDateText.setValue(date.getDate());
    toDateText.setLayoutData(gridData);

    createModifyValidatorDateText(fromDateText, toDateText);

    Button filterByDate = new Button(buttonsComposite, SWT.NONE);
    filterByDate.setText("Filtrar");
    filterByDate.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event arg0) {
        if (checkIffromDateIsAftertoDate(fromDateText.getText(), toDateText.getText())){
          setErrorMessage("A data Inicial deve ser menor que a data Final!");
        }else{
          setErrorMessage("");
          incomingTable.setFromDate(new GDDate(fromDateText.getText()));
          incomingTable.setToDate(new GDDate(toDateText.getText()));
          incomingTable.updateTable();
        }
      }
    });
View Full Code Here

Examples of br.com.visualmidia.ui.widgets.DateText

    GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
    buttonsComposite.setLayoutData(gridData);

    GDDate date = new GDDate();

    final DateText fromDateText = new DateText(buttonsComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
    date.setFirstDayOfMonth();
    fromDateText.setValue(date.getDate());
    gridData = new GridData();
    gridData.widthHint = 80;
    fromDateText.setLayoutData(gridData);

    Label label = new Label(buttonsComposite, SWT.NONE);
    label.setText("  �  ");

    final DateText toDateText = new DateText(buttonsComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
    date.setLastDayOfMonth();
    toDateText.setValue(date.getDate());
    toDateText.setLayoutData(gridData);

    createModifyValidatorDateText(fromDateText, toDateText);

    Button filterByDate = new Button(buttonsComposite, SWT.NONE);
    filterByDate.setText("Filtrar");
    filterByDate.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event arg0) {
        if (checkIffromDateIsAftertoDate(fromDateText.getText(), toDateText.getText())){
          setErrorMessage("A data Inicial deve ser menor que a data Final!");
        }else{
          setErrorMessage("");
          expendituresTable.setFromDate(new GDDate(fromDateText.getText()));
          expendituresTable.setToDate(new GDDate(toDateText.getText()));
          expendituresTable.updateTable();
        }
      }
    });
View Full Code Here

Examples of br.com.visualmidia.ui.widgets.DateText

  private void createNextPaymentDate() {
    Label nextPaymentDatelabel = new Label(components, SWT.NONE);
    nextPaymentDatelabel.setText("Pr�xima data de pagamento:");
    nextPaymentDatelabel.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));

    nextPaymentDateText = new DateText(components, SWT.BORDER | SWT.READ_ONLY);
    nextPaymentDateText.setValue(new GDDate().getDate());
    nextPaymentDateText.setEditable(false);

    GridData data = new GridData();
    data.horizontalSpan = 2;
View Full Code Here

Examples of br.com.visualmidia.ui.widgets.DateText

        periodLabel.setText("Per�odo:");
        periodLabel.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
        periodLabel.setEnabled(true);

        final GDDate today = new GDDate();
        startPeriodText = new DateText(composite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
        startPeriodText.setValue(today.getDate());
        data = new GridData();
        data.widthHint = 80;
        startPeriodText.setLayoutData(data);
       
        final Label atLabel = new Label(composite, SWT.NULL);
        atLabel.setText("    �    ");
        atLabel.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
        atLabel.setEnabled(true);

        endPeriodText = new DateText(composite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
        endPeriodText.setValue(today.getDate());
        endPeriodText.setEnabled(true);
        data = new GridData();
        data.widthHint = 80;
        endPeriodText.setLayoutData(data);
View Full Code Here

Examples of br.com.visualmidia.ui.widgets.DateText

        periodLabel.setText("Per�odo:");
        periodLabel.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
        periodLabel.setEnabled(true);

        GDDate today = new GDDate();
        startPeriodText = new DateText(composite, SWT.SINGLE | SWT.BORDER);
        startPeriodText.setValue(today.getDate());
        startPeriodText.setEnabled(true);

        final Label atLabel = new Label(composite, SWT.NULL);
        atLabel.setText("�");
        atLabel.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
        atLabel.setEnabled(true);

        endPeriodText = new DateText(composite, SWT.SINGLE | SWT.BORDER);
        endPeriodText.setValue(today.getDate());
        endPeriodText.setEnabled(true);

        combo.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
View Full Code Here

Examples of br.com.visualmidia.ui.widgets.DateText

       
        Label periodLabel = new Label(filterGroup, SWT.NONE);
        periodLabel.setText("Per�odo: ");
        periodLabel.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));
       
        initialDateText = new DateText(filterGroup, SWT.BORDER | SWT.READ_ONLY);
        initialDateText.setValue(new GDDate().getDate());
       
        Label middleLabel = new Label(filterGroup, SWT.NONE);
        middleLabel.setText(" � ");
        middleLabel.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));
       
        finishDateText = new DateText(filterGroup, SWT.BORDER | SWT.READ_ONLY);
        finishDateText.setValue(new GDDate().getDate());
       
    Button filterButton = new Button(filterGroup, SWT.NONE);
    filterButton.setText("Filtrar");
   
View Full Code Here

Examples of br.com.visualmidia.ui.widgets.DateText

       
      });
    }

    private void createEndDateText() {
        endDateText = new DateText(student, SWT.BORDER |SWT.READ_ONLY);
        endDateText.setValue(new GDDate().getDate());
        endDateText.setEditable(false);
       
        FormData data = new FormData();
        data.top = new FormAttachment(endDateLabel, 1);
View Full Code Here

Examples of br.com.visualmidia.ui.widgets.DateText

        createEndDateLabel();
        createEndDateText();
    }
   
    private void createInitialDateText() {
      initialDateText = new DateText(student, SWT.BORDER | SWT.READ_ONLY);
      initialDateText.setValue(new GDDate().getDate());
      initialDateText.setEditable(false);
       
        FormData data = new FormData();
        data.top = new FormAttachment(inicialDateLabel, 1);
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.