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

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

本文整理了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

  1. @Override
  2. public String getTitle() {
  3. return contentElem.getTitle();
  4. }

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

  1. public class DetailActivity extends AppCompatActivity {
  2. @Override
  3. protected void onCreate(Bundle savedInstanceState) {
  4. super.onCreate(savedInstanceState);
  5. setContentView(R.layout.activity_detail);
  6. setSupportActionBar((Toolbar) findViewById(R.id.toolbar));
  7. long elementId = getIntent().getLongExtra("ITEM_ID", -1);
  8. Element element = DataSet.find(elementId);
  9. ((TextView) findViewById(R.id.title)).setText(element.getTitle());
  10. ((TextView) findViewById(R.id.description)).setText(element.getDescription());
  11. // if we transition the status and navigation bar we have to wait till everything is available
  12. TransitionHelper.fixSharedElementTransitionForStatusAndNavigationBar(this);
  13. // set a custom shared element enter transition
  14. TransitionHelper.setSharedElementEnterTransition(this, R.transition.detail_activity_shared_element_enter_transition);
  15. }
  16. }

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

  1. /**
  2. * Verifies that the actual {@link UIObject} title contains the given sequence.
  3. *
  4. * @param sequence the sequence to search for.
  5. * @return this assertion object.
  6. * @throws AssertionError if the actual title value does not contain the given sequence.
  7. */
  8. public S titleContains(String sequence) {
  9. String title = actual.getTitle();
  10. if (!title.contains(sequence))
  11. failWithMessage("actual title [%s] does not contains [%s]", title, sequence);
  12. return myself;
  13. }

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

  1. /**
  2. * Verifies that the actual {@link UIObject} title contains the given sequence.
  3. *
  4. * @param sequence the sequence to search for.
  5. * @return this assertion object.
  6. * @throws AssertionError if the actual title value does not contain the given sequence.
  7. */
  8. public S titleContains(String sequence) {
  9. String title = actual.getTitle();
  10. if (!title.contains(sequence))
  11. failWithMessage("actual title [%s] does not contains [%s]", title, sequence);
  12. return myself;
  13. }

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

  1. /**
  2. * Verifies that the actual {@link UIObject} title is equal to the given one.
  3. *
  4. * @param expected the given title to compare the actual title value to.
  5. * @return this assertion object.
  6. * @throws AssertionError if the actual title value is not equal to the given one.
  7. */
  8. public S titleEquals(String expected) {
  9. String title = actual.getTitle();
  10. if (areEqual(title, expected))
  11. return myself;
  12. throw propertyComparisonFailed("title", title, expected);
  13. }

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

  1. /**
  2. * Verifies that the actual {@link UIObject} title is equal to the given one.
  3. *
  4. * @param expected the given title to compare the actual title value to.
  5. * @return this assertion object.
  6. * @throws AssertionError if the actual title value is not equal to the given one.
  7. */
  8. public S titleEquals(String expected) {
  9. String title = actual.getTitle();
  10. if (areEqual(title, expected))
  11. return myself;
  12. throw propertyComparisonFailed("title", title, expected);
  13. }

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

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

相关文章

Element类方法