Package com.google.gwt.i18n.client.HasDirection

Examples of com.google.gwt.i18n.client.HasDirection.Direction


    private void setText(final String text) {
        /**
         * To leave caret in the beginning of the line. SetSelectionRange
         * wouldn't work on IE (see #13477)
         */
        Direction previousDirection = tb.getDirection();
        tb.setDirection(Direction.RTL);
        tb.setText(text);
        tb.setDirection(previousDirection);
    }
View Full Code Here


   *          context direction, when needed, to prevent the possible garbling
   *          of whatever may follow {@code str}
   * @return Input string after applying the above processing.
   */
  public String spanWrap(String str, boolean isHtml, boolean dirReset) {
    Direction dir = BidiUtils.get().estimateDirection(str, isHtml);
    return spanWrapWithKnownDir(dir, str, isHtml, dirReset);
  }
View Full Code Here

   *          context direction, when needed, to prevent the possible garbling
   *          of whatever may follow {@code str}
   * @return Input string after applying the above processing.
   */
  public String unicodeWrap(String str, boolean isHtml, boolean dirReset) {
    Direction dir = BidiUtils.get().estimateDirection(str, isHtml);
    return unicodeWrapWithKnownDir(dir, str, isHtml, dirReset);
  }
View Full Code Here

   * Adjusts target's direction according to the estimated direction of the text
   * it supplies.
   */
  public void refreshDirection() {
    if (directionEstimator != null) {
      Direction dir = directionEstimator.estimateDirection(target.getText());
      if (dir != target.getDirection()) {
        target.setDirection(dir);
      }
    }
  }
View Full Code Here

    * @throws AssertionError if the actual direction is not equal to the given one.
    *
    * @see ValueBoxBase#getDirection()
    */
   public S directionEquals(Direction expected) {
      Direction direction = actual.getDirection();
      if (areEqual(direction, expected))
         return myself;
      throw propertyComparisonFailed("Direction", direction, expected);
   }
View Full Code Here

   *          context direction, when needed, to prevent the possible garbling
   *          of whatever may follow {@code str}
   * @return Input string after applying the above processing.
   */
  protected String spanWrapBase(String str, boolean isHtml, boolean dirReset) {
    Direction dir = BidiUtils.get().estimateDirection(str, isHtml);
    return spanWrapWithKnownDirBase(dir, str, isHtml, dirReset);
  }
View Full Code Here

   *          of whatever may follow {@code str}
   * @return Input string after applying the above processing.
   */
  protected String unicodeWrapBase(String str, boolean isHtml,
      boolean dirReset) {
    Direction dir = BidiUtils.get().estimateDirection(str, isHtml);
    return unicodeWrapWithKnownDirBase(dir, str, isHtml, dirReset);
  }
View Full Code Here

   *          context direction, when needed, to prevent the possible garbling
   *          of whatever may follow {@code str}
   * @return Input string after applying the above processing.
   */
  public String spanWrap(String str, boolean isHtml, boolean dirReset) {
    Direction dir = BidiUtils.get().estimateDirection(str, isHtml);
    return spanWrapWithKnownDir(dir, str, isHtml, dirReset);
  }
View Full Code Here

   *          context direction, when needed, to prevent the possible garbling
   *          of whatever may follow {@code str}
   * @return Input string after applying the above processing.
   */
  public String unicodeWrap(String str, boolean isHtml, boolean dirReset) {
    Direction dir = BidiUtils.get().estimateDirection(str, isHtml);
    return unicodeWrapWithKnownDir(dir, str, isHtml, dirReset);
  }
View Full Code Here

        if (this.cssClassName != null) {
            panel.setStyleName(this.cssClassName);
        }
        if (this.horizontalAlignment != null) {
            try {
                Direction d = Direction.valueOf(horizontalAlignment);
                panel.setHorizontalAlignment(HorizontalAlignmentConstant.startOf(d));
            } catch (IllegalArgumentException e) { }
        }
        if (this.title != null) {
            panel.setTitle(this.title);
View Full Code Here

TOP

Related Classes of com.google.gwt.i18n.client.HasDirection.Direction

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.