移动表单,下拉刷新原创
2人赞赏了该文章
940次浏览
编辑于2021年06月08日 15:13:54
package kd.bos.debugserver; import kd.bos.form.RefreshResultType; import kd.bos.form.plugin.AbstractMobFormPlugin; import kd.bos.mvc.form.MobileFormView; import java.util.EventObject; public class Test2Plugin extends AbstractMobFormPlugin { @Override public void afterCreateNewData(EventObject e) { ((MobileFormView) this.getView()).setRefreshResult("Success", 3000, RefreshResultType.Success); } @Override public void refreshData() { boolean isSucess = true; if (isSucess) { ((MobileFormView) this.getView()).setRefreshResult("刷新成功", 3000, RefreshResultType.Success); } else { ((MobileFormView) this.getView()).setRefreshResult("刷新失败", 3000, RefreshResultType.Fail); } } }
推荐阅读