Example usage for com.google.gwt.user.client.ui HasDirectionalText HasDirectionalText

List of usage examples for com.google.gwt.user.client.ui HasDirectionalText HasDirectionalText

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui HasDirectionalText HasDirectionalText.

Prototype

HasDirectionalText

Source Link

Usage

From source file:cc.kune.common.client.ui.dialogs.BSBasicDialog.java

License:GNU Affero Public License

public BSBasicDialog() {
    initWidget(uiBinder.createAndBindUi(this));
    this.fireEvent(null);

    title = new HasDirectionalText() {

        @Override//  ww  w.j a va2s  .co  m
        public String getText() {
            return modal.getTitle();
        }

        @Override
        public Direction getTextDirection() {
            // TODO
            return Direction.LTR;
        }

        @Override
        public void setText(final String text) {
            modal.setTitle(text);
        }

        @Override
        public void setText(final String text, final Direction dir) {
            // TODO
            modal.setTitle(text);
        }
    };

}