Package br.com.visualmidia.ui.widgets

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


        data.left = new FormAttachment(walletWorkNumberText, 7);
        registerDateLabel.setLayoutData(data);
    }

    private void createRegisterDateText() {
        registerDateText = new DateText(mainComposite, SWT.BORDER);

        registerDateText.addFocusListener(new FocusListener(){
          public void focusLost(FocusEvent arg0) {
        if (registerDateText.getText().contains(" ")){
              registerDateText.setValue(null);
View Full Code Here


        data.left = new FormAttachment(registerDateText, 7);
        beginDateLabel.setLayoutData(data);
    }

    private void createBeginDateText() {
        beginDateText = new DateText(mainComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
        beginDateText.addFocusListener(new RequiredWhenLostFocus(beginDateText, RequiredWhenLostFocus.ERROR_REQUIRED_BEGINDATE, screenMessageLabel));

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

        data.left = new FormAttachment(beginDateText, 7);
        dismissedDateLabel.setLayoutData(data);
    }

    private void createDismissedDateText() {
        dismissedDateText = new DateText(mainComposite, SWT.SINGLE | SWT.BORDER);

        dismissedDateText.addFocusListener(new FocusListener(){
          public void focusLost(FocusEvent arg0) {
        if (dismissedDateText.getText().contains(" ")){
          dismissedDateText.setValue(null);
View Full Code Here

        FormData dataLabel = new FormData();
        dataLabel.top = new FormAttachment(0, 40);
        dataLabel.left = new FormAttachment(40, 0);
        label.setLayoutData(dataLabel);
       
        startDateText = new DateText(mainComposite, SWT.BORDER|SWT.SINGLE);
        startDateText.setBackground(gdRegistry.getColor(GDRegistry.COLOR_WHITE));
       
        FormData dataText = new FormData();
        dataText.top = new FormAttachment(label, -3, SWT.TOP);
        dataText.left = new FormAttachment(label, 3);
View Full Code Here

        FormData dataLabel = new FormData();
        dataLabel.top = new FormAttachment(startDateText, 3, SWT.TOP);
        dataLabel.left = new FormAttachment(startDateText, 3);
        label.setLayoutData(dataLabel);
       
        endDateText = new DateText(mainComposite, SWT.BORDER|SWT.SINGLE);
        endDateText.setBackground(gdRegistry.getColor(GDRegistry.COLOR_WHITE));
       
        FormData dataText = new FormData();
        dataText.top = new FormAttachment(label, -3, SWT.TOP);
        dataText.left = new FormAttachment(label, 3);
View Full Code Here

            }
        });
    }

    private void createEndDateText() {
        endDateText = new DateText(registrationComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
        endDateText.setValue(new GDDate().getDate());
       
        FormData data = new FormData();
        data.top = new FormAttachment(endDateLabel, 1);
        data.left = new FormAttachment(initialDateText, 5);
View Full Code Here

        createEndDateText();
        createIgnoreDateCheck();
    }

    private void createInitialDateText() {
        initialDateText = new DateText(registrationComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
        initialDateText.setValue(new GDDate().getDate());

        FormData data = new FormData();
        data.top = new FormAttachment(inicialDateLabel, 1);
        data.left = new FormAttachment(0, 0);
View Full Code Here

    FormData data = new FormData();
    data.top = new FormAttachment(separator, 10);
    data.left = new FormAttachment(studentComposite, 5);
    specificDateLabel.setLayoutData(data);

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

    data = new FormData();
    data.top = new FormAttachment(specificDateLabel, 10);
    data.left = new FormAttachment(studentComposite, 5);
    data.width = 80;
    startPeriodText.setLayoutData(data);

    final Label atLabel = new Label(studentComposite, SWT.NULL);
    atLabel.setText("�");
    atLabel.setEnabled(true);

    data = new FormData();
    data.top = new FormAttachment(specificDateLabel, 10);
    data.left = new FormAttachment(startPeriodText, 10);
    atLabel.setLayoutData(data);

    endPeriodText = new DateText(studentComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
    endPeriodText.setValue(new GDDate().getDate());
    endPeriodText.setEnabled(true);

    data = new FormData();
    data.top = new FormAttachment(specificDateLabel, 10);
View Full Code Here

        data.left = new FormAttachment(0, 2);
        inicialDateLabel.setLayoutData(data);
    }
   
    private void createInitialDateText() {
        initialDateText = new DateText(registrationComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
        initialDateText.setValue(new GDDate().getDate());
       
        FormData data = new FormData();
        data.top = new FormAttachment(inicialDateLabel, 1);
        data.left = new FormAttachment(0, 0);
View Full Code Here

        data.left = new FormAttachment(initialDateText, 7);
        endDateLabel.setLayoutData(data);
    }
   
    private void createEndDateText() {
        endDateText = new DateText(registrationComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
        endDateText.setValue(new GDDate().getDate());
       
        FormData data = new FormData();
        data.top = new FormAttachment(endDateLabel, 1);
        data.left = new FormAttachment(initialDateText, 5);
View Full Code Here

TOP

Related Classes of br.com.visualmidia.ui.widgets.DateText

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.