您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

AbstractPage.js 592B

12345678910111213141516171819202122
  1. // @flow
  2. import { Component } from 'react';
  3. /**
  4. * Abstract component that defines a refreshable page to be rendered by
  5. * {@code PagedList}.
  6. */
  7. export default class AbstractPage<P> extends Component<P> {
  8. /**
  9. * Method to be overriden by the implementing classes to refresh the data
  10. * content of the component.
  11. *
  12. * Note: It is a static method as the {@code Component} may not be
  13. * initialized yet when the UI invokes refresh (e.g. Tab change).
  14. *
  15. * @returns {void}
  16. */
  17. static refresh() {
  18. // No implementation in abstract class.
  19. }
  20. }