Examples of MoneyMask


Examples of br.com.visualmidia.ui.mask.MoneyMask

        }
       
        private void createLastWageText() {
            lastWageText = new Text(mainComposite, SWT.SINGLE | SWT.BORDER);
            Validator.validateNumbers(lastWageText);
            new MoneyMask(lastWageText);
           
            FormData data = new FormData();
            data.top = new FormAttachment(lastWageLabel, 0);
            data.left = new FormAttachment(0, 0);
            data.right = new FormAttachment(15, 0);
View Full Code Here

Examples of br.com.visualmidia.ui.mask.MoneyMask

        }
       
        private void createLastRegisteredWageText() {
            lastRegisteredWageText = new Text(mainComposite, SWT.SINGLE | SWT.BORDER);
            Validator.validateNumbers(lastRegisteredWageText);
            new MoneyMask(lastRegisteredWageText);
           
            FormData data = new FormData();
            data.top = new FormAttachment(lastRegisteredWageLabel, 1);
            data.left = new FormAttachment(lastJobFunctionText, 5);
            data.right = new FormAttachment(70, 0);
View Full Code Here

Examples of br.com.visualmidia.ui.mask.MoneyMask

    label.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));
    valueText = new Text(components, SWT.BORDER | SWT.RIGHT);
    br.com.visualmidia.tools.Validator.validateNumbers(valueText);
    br.com.visualmidia.tools.Validator.validateTextOfMoneyValuesToAvoidEmptyStrings(valueText);
    valueText.setText(VALUE_0_00);
    new MoneyMask(valueText);

    valueText.addListener(SWT.FocusIn, new Listener() {
      public void handleEvent(Event arg0) {
        valueText.selectAll();
      }
View Full Code Here

Examples of br.com.visualmidia.ui.mask.MoneyMask

        formData.left = new FormAttachment(billPlanComboTree, 10);
        valueLabel.setLayoutData(formData);

        valueText = new Text(accountRegister, SWT.BORDER);
        br.com.visualmidia.tools.Validator.validateNumbers(valueText);
        new MoneyMask(valueText);

        formData = new FormData();
        formData.top = new FormAttachment(operationsButtonComposite, 20);
        formData.left = new FormAttachment(valueLabel, 30);
        valueText.setLayoutData(formData);
View Full Code Here

Examples of br.com.visualmidia.ui.mask.MoneyMask

       
        receivedValueText = new Text(dialog, SWT.SINGLE | SWT.BORDER);
        Validator.validateNumbers(receivedValueText);
        Validator.validateTextOfMoneyValuesToAvoidEmptyStrings(receivedValueText);
       
        new MoneyMask(receivedValueText);
       
        data = new GridData(GridData.FILL);
        data.widthHint = 100;
        receivedValueText.setLayoutData(data);
       
View Full Code Here

Examples of br.com.visualmidia.ui.mask.MoneyMask

      public void keyPressed(KeyEvent arg0) {
      }
        });
       
        interestDeferredPaymentText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        new MoneyMask(interestDeferredPaymentText);
       
        Label percentLabel = new Label(groupComposite, SWT.NONE);
        percentLabel.setText("%");
       
        Label space = new Label(groupComposite, SWT.NONE);
View Full Code Here

Examples of br.com.visualmidia.ui.mask.MoneyMask

          
        fineText = new Text(groupComposite, SWT.BORDER);
        Validator.validateNumbers(fineText);
        fineText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
        fineText.setText(gd.get("fine") == null ? "2,0" : gd.get("fine").toString());
        new MoneyMask(fineText);
       
        fineText.addKeyListener(new KeyListener(){
      public void keyReleased(KeyEvent arg0) {
        if (fineText.getText().length() == 0){
          fineText.setText("2,0");
View Full Code Here

Examples of br.com.visualmidia.ui.mask.MoneyMask

     
      registrationTaxText = new Text(groupComposite, SWT.BORDER);
      Validator.validateNumbers(registrationTaxText);
      registrationTaxText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
      registrationTaxText.setText(gd.get("registrationTax") == null ? "0,00" : new Money(gd.get("registrationTax").toString()).getFormatedValue());
      new MoneyMask(registrationTaxText);
     
      registrationTaxText.addKeyListener(new KeyListener(){
       public void keyReleased(KeyEvent arg0) {
         if (registrationTaxText.getText().length() == 0){
           registrationTaxText.setText("0,00");
View Full Code Here

Examples of br.com.visualmidia.ui.mask.MoneyMask

        nameLabel.setText("Desconto de pontualidade: R$");
          
        pontualityDiscountText = new Text(groupComposite, SWT.BORDER);
        Validator.validateNumbers(pontualityDiscountText);
        pontualityDiscountText.setText(gd.get("pontualityDiscount") == null ? "0,00" : new Money(gd.get("pontualityDiscount").toString()).getFormatedValue());
        new MoneyMask(pontualityDiscountText);
        pontualityDiscountText.addKeyListener(new KeyListener(){
       public void keyReleased(KeyEvent arg0) {
         if (pontualityDiscountText.getText().length() == 0){
           pontualityDiscountText.setText("0,00");
View Full Code Here

Examples of br.com.visualmidia.ui.mask.MoneyMask

        Label descriptionLabel = new Label(dialog, SWT.NULL);
        descriptionLabel.setText("Valor: ");
       
        valueText = new Text(dialog, SWT.BORDER);
        Validator.validateNumbers(valueText);
        new MoneyMask(valueText);
       
        if (financialInfo != null) {
          valueText.setText(financialInfo.getValue().getFormatedValue());
        }
       
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.