Пример #1
0
 public static DataLoadManager getListDataLoader(ListLoadCallbacks callbacks) {
   DataLoadManager dataLoadManager = new DataLoadManager();
   dataLoadManager.setCallback(callbacks);
   dataLoadManager.notifyPageLoaded(); // init page
   return dataLoadManager;
 }
Пример #2
0
 public static void destroy(DataLoadManager dataLoadManager) {
   if (dataLoadManager != null) {
     dataLoadManager.setCallback(null);
   }
 }
Пример #3
0
 public static DataLoadManager getDataLoader(LoadCallbacks callbacks) {
   DataLoadManager dataLoadManager = new DataLoadManager();
   dataLoadManager.setCallback(callbacks);
   return dataLoadManager;
 }