com.google.gwt.user.client.ui.Label.updateHorizontalAlignment()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(112)

本文整理了Java中com.google.gwt.user.client.ui.Label.updateHorizontalAlignment()方法的一些代码示例,展示了Label.updateHorizontalAlignment()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.updateHorizontalAlignment()方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Label
类名称:Label
方法名:updateHorizontalAlignment

Label.updateHorizontalAlignment介绍

暂无

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Sets the widget element's direction.
 * @deprecated Use {@link #setDirectionEstimator} and / or pass explicit
 * direction to {@link #setText} instead
 */
@Deprecated
public void setDirection(Direction direction) {
 directionalTextHelper.setDirection(direction);
 updateHorizontalAlignment();
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Sets the label's content to the given text.
 * <p>
 * Doesn't change the widget's direction or horizontal alignment if {@code
 * directionEstimator} is null. Otherwise, the widget's direction is set using
 * the estimator, and its alignment may therefore change as described in
 * {@link #setText(String, com.google.gwt.i18n.client.HasDirection.Direction) setText(String, Direction)}.
 *
 * @param text the widget's new text
 */
public void setText(String text) {
 directionalTextHelper.setText(text);
 updateHorizontalAlignment();
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
  * Sets the label's content to the given text, applying the given direction.
  * <p>
  * This will have the following effect on the horizontal alignment:
  * <ul>
  * <li> If the automatic alignment setting is ALIGN_CONTENT_START or
  * ALIGN_CONTENT_END, the horizontal alignment will be set to match the start
  * or end edge, respectively, of the new direction (the {@code dir}
  * parameter). If that is DEFAULT, the locale direction is used.
  * <li> Otherwise, the horizontal alignment value is not changed, but the
  * effective alignment may nevertheless change according to the usual HTML
  * rules, i.e. it will match the start edge of the new direction if the widget
  * element is a &lt;div&gt; and has no explicit alignment value even by
  * inheritance.
  * </ul>
  *
  * @param text the widget's new text
  * @param dir the text's direction. Note: {@code Direction.DEFAULT} means
  *        direction should be inherited from the widget's parent element.
  */
 public void setText(String text, Direction dir) {
  directionalTextHelper.setText(text, dir);
  updateHorizontalAlignment();
 }
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Sets the widget element's direction.
 * @deprecated Use {@link #setDirectionEstimator} and / or pass explicit
 * direction to {@link #setText} instead
 */
@Deprecated
public void setDirection(Direction direction) {
 directionalTextHelper.setDirection(direction);
 updateHorizontalAlignment();
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Sets the widget element's direction.
 * @deprecated Use {@link #setDirectionEstimator} and / or pass explicit
 * direction to {@link #setText} instead
 */
@Deprecated
public void setDirection(Direction direction) {
 directionalTextHelper.setDirection(direction);
 updateHorizontalAlignment();
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Sets the label's content to the given text.
 * <p>
 * Doesn't change the widget's direction or horizontal alignment if {@code
 * directionEstimator} is null. Otherwise, the widget's direction is set using
 * the estimator, and its alignment may therefore change as described in
 * {@link #setText(String, com.google.gwt.i18n.client.HasDirection.Direction) setText(String, Direction)}.
 *
 * @param text the widget's new text
 */
public void setText(String text) {
 directionalTextHelper.setTextOrHtml(text, false);
 updateHorizontalAlignment();
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Sets the label's content to the given text.
 * <p>
 * Doesn't change the widget's direction or horizontal alignment if {@code
 * directionEstimator} is null. Otherwise, the widget's direction is set using
 * the estimator, and its alignment may therefore change as described in
 * {@link #setText(String, com.google.gwt.i18n.client.HasDirection.Direction) setText(String, Direction)}.
 *
 * @param text the widget's new text
 */
public void setText(String text) {
 directionalTextHelper.setTextOrHtml(text, false);
 updateHorizontalAlignment();
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
  * Sets the label's content to the given text, applying the given direction.
  * <p>
  * This will have the following effect on the horizontal alignment:
  * <ul>
  * <li> If the automatic alignment setting is ALIGN_CONTENT_START or
  * ALIGN_CONTENT_END, the horizontal alignment will be set to match the start
  * or end edge, respectively, of the new direction (the {@code dir}
  * parameter). If that is DEFAULT, the locale direction is used.
  * <li> Otherwise, the horizontal alignment value is not changed, but the
  * effective alignment may nevertheless change according to the usual HTML
  * rules, i.e. it will match the start edge of the new direction if the widget
  * element is a &lt;div&gt; and has no explicit alignment value even by
  * inheritance.
  * </ul>
  *
  * @param text the widget's new text
  * @param dir the text's direction. Note: {@code Direction.DEFAULT} means
  *        direction should be inherited from the widget's parent element.
  */
 public void setText(String text, Direction dir) {
  directionalTextHelper.setTextOrHtml(text, dir, false);
  updateHorizontalAlignment();
 }
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
  * Sets the label's content to the given text, applying the given direction.
  * <p>
  * This will have the following effect on the horizontal alignment:
  * <ul>
  * <li> If the automatic alignment setting is ALIGN_CONTENT_START or
  * ALIGN_CONTENT_END, the horizontal alignment will be set to match the start
  * or end edge, respectively, of the new direction (the {@code dir}
  * parameter). If that is DEFAULT, the locale direction is used.
  * <li> Otherwise, the horizontal alignment value is not changed, but the
  * effective alignment may nevertheless change according to the usual HTML
  * rules, i.e. it will match the start edge of the new direction if the widget
  * element is a &lt;div&gt; and has no explicit alignment value even by
  * inheritance.
  * </ul>
  *
  * @param text the widget's new text
  * @param dir the text's direction. Note: {@code Direction.DEFAULT} means
  *        direction should be inherited from the widget's parent element.
  */
 public void setText(String text, Direction dir) {
  directionalTextHelper.setTextOrHtml(text, dir, false);
  updateHorizontalAlignment();
 }
}

相关文章