Directory

← Back

FastFormFields

Is a collection of textfields with some restrictions.

Author

Rating

Popularity

<100

FastFormFields is a collection of textfields with some restrictions. List of TextFields

  • DecimalTextField: Accept numbers and one dot.
  • IntegerTextField: Only accept numbers.
  • UpperTextField: Upper all text when write

Working!

Feactures:

  • Limit digits before and after a dot. (see example)

Sample code

package app

import com.avathartech.fastformfields.widgets.DecimalTextField
import com.avathartech.fastformfields.widgets.IntegerTextField
import com.vaadin.server.VaadinRequest
import com.vaadin.ui.UI
import com.vaadin.ui.VerticalLayout

/**
 * @author Aluis 2014-05-08
 */
class MyUI extends UI {

    @Override
    protected void init(VaadinRequest vaadinRequest) {
	DecimalTextField dtf = new DecimalTextField("DecimalTextField:");
	dtf.setRequired(true);
	dtf.setValue("");
	dtf.setImmediate(true);
	dtf.setIntegerPresicion(7);
	dtf.setDecimalPresicion(2);
	dtf.setGroupingSize(3);
	dtf.setGroupingSeparator(",");
	dtf.setDecimalSeparator(".");

        DecimalTextField dtf = new DecimalTextField("Dot");
        IntegerTextField itf = new IntegerTextField("No Dot");

        // Limit digits on integer
        itf.setIntegerPresicion(6); 

        // Limit gidits on Decimal, before and after dot.
        dtf.setDecimalPresicion(5);
        dtf.setIntegerPresicion(4);

        VerticalLayout vl = new VerticalLayout();
	vl.addComponent(dtf);
        vl.addComponent(itf);
        vl.addComponent(dtf);

        setContent(vl);
    }
}

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Format on Decimal Numbers by Sixto Nuñez,

Released
2014-09-22
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.1+
Browser
Safari
Google Chrome

FastFormFields - Vaadin Add-on Directory

Is a collection of textfields with some restrictions. FastFormFields - Vaadin Add-on Directory
FastFormFields is a collection of textfields with some restrictions. List of TextFields - DecimalTextField: Accept numbers and one dot. - IntegerTextField: Only accept numbers. - UpperTextField: Upper all text when write Working! Feactures: - Limit digits before and after a dot. (see example)
Online