Example usage for com.google.gwt.i18n.client AutoDirectionHandler addTo

List of usage examples for com.google.gwt.i18n.client AutoDirectionHandler addTo

Introduction

In this page you can find the example usage for com.google.gwt.i18n.client AutoDirectionHandler addTo.

Prototype

public static AutoDirectionHandler addTo(Target target, DirectionEstimator directionEstimator) 

Source Link

Document

Adds auto-direction adjustment to a given object: - Creates an AutoDirectionHandler.

Usage

From source file:com.sencha.gxt.widget.core.client.form.ValueBaseField.java

License:sencha.com license

protected ValueBaseField(ValueBaseInputCell<T> cell) {
    super(cell);//from ww w . j av  a2  s  . c o  m
    autoDirHandler = AutoDirectionHandler.addTo(this, BidiPolicy.isBidiEnabled());

    getCell().addParseErrorHandler(new ParseErrorHandler() {

        @Override
        public void onParseError(ParseErrorEvent event) {
            onCellParseError(event);
        }
    });

    setWidth(150);
}