add function `setCanRefresh(boolean canRefresh, String text)` and
`setCanRefresh(boolean canRefrsh)`