com.google.gwt.dom.client.Element.getTitle()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(105)

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

Element.getTitle介绍

[英]The element's advisory title.
[中]元素的咨询标题。

代码示例

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

@Override
public String getTitle() {
 return contentElem.getTitle();
}

代码示例来源:origin: stackoverflow.com

public class DetailActivity extends AppCompatActivity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_detail);

    setSupportActionBar((Toolbar) findViewById(R.id.toolbar));

    long elementId = getIntent().getLongExtra("ITEM_ID", -1);
    Element element = DataSet.find(elementId);

    ((TextView) findViewById(R.id.title)).setText(element.getTitle());
    ((TextView) findViewById(R.id.description)).setText(element.getDescription());

    // if we transition the status and navigation bar we have to wait till everything is available
    TransitionHelper.fixSharedElementTransitionForStatusAndNavigationBar(this);
    // set a custom shared element enter transition
    TransitionHelper.setSharedElementEnterTransition(this, R.transition.detail_activity_shared_element_enter_transition);
  }
}

代码示例来源:origin: gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} title contains the given sequence.
 *
 * @param sequence the sequence to search for.
 * @return this assertion object.
 * @throws AssertionError if the actual title value does not contain the given sequence.
 */
public S titleContains(String sequence) {
  String title = actual.getTitle();
  if (!title.contains(sequence))
    failWithMessage("actual title [%s] does not contains [%s]", title, sequence);
  return myself;
}

代码示例来源:origin: com.googlecode.gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} title contains the given sequence.
 *
 * @param sequence the sequence to search for.
 * @return this assertion object.
 * @throws AssertionError if the actual title value does not contain the given sequence.
 */
public S titleContains(String sequence) {
  String title = actual.getTitle();
  if (!title.contains(sequence))
    failWithMessage("actual title [%s] does not contains [%s]", title, sequence);
  return myself;
}

代码示例来源:origin: com.googlecode.gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} title is equal to the given one.
 *
 * @param expected the given title to compare the actual title value to.
 * @return this assertion object.
 * @throws AssertionError if the actual title value is not equal to the given one.
 */
public S titleEquals(String expected) {
  String title = actual.getTitle();
  if (areEqual(title, expected))
    return myself;
  throw propertyComparisonFailed("title", title, expected);
}

代码示例来源:origin: gwt-test-utils/gwt-test-utils

/**
 * Verifies that the actual {@link UIObject} title is equal to the given one.
 *
 * @param expected the given title to compare the actual title value to.
 * @return this assertion object.
 * @throws AssertionError if the actual title value is not equal to the given one.
 */
public S titleEquals(String expected) {
  String title = actual.getTitle();
  if (areEqual(title, expected))
    return myself;
  throw propertyComparisonFailed("title", title, expected);
}

代码示例来源:origin: stackoverflow.com

body.setMaxLines(5000);
holder.title.setText(row.getTitle());
if (row.getBody() != null) {
  holder.body.setText(row.getBody());

相关文章

微信公众号

最新文章

更多

Element类方法