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

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

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

Hyperlink.setTargetHistoryToken介绍

[英]Sets the history token referenced by this hyperlink. This is the history token that will be passed to History#newItem when this link is clicked.
[中]设置此超链接引用的历史标记。这是单击此链接时将传递给history#newItem的历史标记。

代码示例

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

/**
 * Creates a hyperlink with its text and target history token specified.
 *
 * @param text the hyperlink's text
 * @param asHTML <code>true</code> to treat the specified text as html
 * @param targetHistoryToken the history token to which it will link
 * @see #setTargetHistoryToken
 */
public Hyperlink(@IsSafeHtml String text, boolean asHTML, String targetHistoryToken) {
 this();
 directionalTextHelper.setTextOrHtml(text, asHTML);
 setTargetHistoryToken(targetHistoryToken);
}

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

/**
 * Creates a hyperlink with its text target history token specified.
 *
 * @param text the hyperlink's text
 * @param asHTML <code>true</code> to treat the specified text as html
 * @param dir the text's direction
 * @param targetHistoryToken the history token to which it will link
 * @see #setTargetHistoryToken
 */
private Hyperlink(
  @IsSafeHtml String text, boolean asHTML, Direction dir, String targetHistoryToken) {
 this();
 directionalTextHelper.setTextOrHtml(text, dir, asHTML);
 setTargetHistoryToken(targetHistoryToken);
}

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

/**
 * Creates a hyperlink with its text and target history token specified.
 *
 * @param text the hyperlink's text
 * @param asHTML <code>true</code> to treat the specified text as html
 * @param directionEstimator A DirectionEstimator object used for automatic
 *          direction adjustment. For convenience,
 *          {@link #DEFAULT_DIRECTION_ESTIMATOR} can be used.
 * @param targetHistoryToken the history token to which it will link
 * @see #setTargetHistoryToken
 */
private Hyperlink(
  @IsSafeHtml String text,
  boolean asHTML,
  DirectionEstimator directionEstimator,
  String targetHistoryToken) {
 this();
 directionalTextHelper.setDirectionEstimator(directionEstimator);
 directionalTextHelper.setTextOrHtml(text, asHTML);
 setTargetHistoryToken(targetHistoryToken);
}

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

/**
 * Creates a hyperlink with its text and target history token specified.
 *
 * @param text the hyperlink's text
 * @param asHTML <code>true</code> to treat the specified text as html
 * @param targetHistoryToken the history token to which it will link
 * @see #setTargetHistoryToken
 */
public Hyperlink(String text, boolean asHTML, String targetHistoryToken) {
 this();
 directionalTextHelper.setTextOrHtml(text, asHTML);
 setTargetHistoryToken(targetHistoryToken);
}

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

/**
 * Creates a hyperlink with its text and target history token specified.
 *
 * @param text the hyperlink's text
 * @param asHTML <code>true</code> to treat the specified text as html
 * @param targetHistoryToken the history token to which it will link
 * @see #setTargetHistoryToken
 */
public Hyperlink(String text, boolean asHTML, String targetHistoryToken) {
 this();
 directionalTextHelper.setTextOrHtml(text, asHTML);
 setTargetHistoryToken(targetHistoryToken);
}

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

/**
 * Creates a hyperlink with its text target history token specified.
 *
 * @param text the hyperlink's text
 * @param asHTML <code>true</code> to treat the specified text as html
 * @param dir the text's direction
 * @param targetHistoryToken the history token to which it will link
 * @see #setTargetHistoryToken
 */
private Hyperlink(String text, boolean asHTML, Direction dir,
  String targetHistoryToken) {
 this();
 directionalTextHelper.setTextOrHtml(text, dir, asHTML);
 setTargetHistoryToken(targetHistoryToken);
}

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

/**
 * Creates a hyperlink with its text target history token specified.
 *
 * @param text the hyperlink's text
 * @param asHTML <code>true</code> to treat the specified text as html
 * @param dir the text's direction
 * @param targetHistoryToken the history token to which it will link
 * @see #setTargetHistoryToken
 */
private Hyperlink(String text, boolean asHTML, Direction dir,
  String targetHistoryToken) {
 this();
 directionalTextHelper.setTextOrHtml(text, dir, asHTML);
 setTargetHistoryToken(targetHistoryToken);
}

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

/**
 * Creates a hyperlink with its text and target history token specified.
 *
 * @param text the hyperlink's text
 * @param asHTML <code>true</code> to treat the specified text as html
 * @param directionEstimator A DirectionEstimator object used for automatic
 *          direction adjustment. For convenience,
 *          {@link #DEFAULT_DIRECTION_ESTIMATOR} can be used.
 * @param targetHistoryToken the history token to which it will link
 * @see #setTargetHistoryToken
 */
private Hyperlink(String text, boolean asHTML,
  DirectionEstimator directionEstimator, String targetHistoryToken) {
 this();
 directionalTextHelper.setDirectionEstimator(directionEstimator);
 directionalTextHelper.setTextOrHtml(text, asHTML);
 setTargetHistoryToken(targetHistoryToken);
}

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

/**
 * Creates a hyperlink with its text and target history token specified.
 *
 * @param text the hyperlink's text
 * @param asHTML <code>true</code> to treat the specified text as html
 * @param directionEstimator A DirectionEstimator object used for automatic
 *          direction adjustment. For convenience,
 *          {@link #DEFAULT_DIRECTION_ESTIMATOR} can be used.
 * @param targetHistoryToken the history token to which it will link
 * @see #setTargetHistoryToken
 */
private Hyperlink(String text, boolean asHTML,
  DirectionEstimator directionEstimator, String targetHistoryToken) {
 this();
 directionalTextHelper.setDirectionEstimator(directionEstimator);
 directionalTextHelper.setTextOrHtml(text, asHTML);
 setTargetHistoryToken(targetHistoryToken);
}

代码示例来源:origin: org.switchyard.console.wildfly/switchyard-console-wildfly-extension

@Override
public void setValue(T value) {
  _link.setText(_valueAdapter.getText(value));
  _link.setTargetHistoryToken(_valueAdapter.getTargetHistoryToken(value));
}

相关文章