コード例 #1
0
 /** @return the applicationSessionInitializer. */
 public ApplicationSessionInitializer getApplicationSessionInitializer() {
   if (applicationSessionInitializer == null) {
     applicationSessionInitializer =
         Application.instance().getLifecycleAdvisor().getApplicationSessionInitializer();
   }
   return applicationSessionInitializer;
 }
コード例 #2
0
 public void updateJob() {
   SessionManager sessionManager =
       (SessionManager) Application.services().getService(SessionManager.class);
   SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss", Locale.US);
   if (sessionManager.getUser() != null) {
     lbStaffValue.setText(sessionManager.getUser().getUserName());
     lbBOJValue.setText(sdf.format(new Date()));
   } else {
     lbBOJValue.setText("-");
     lbStaffValue.setText("-");
   }
 }
コード例 #3
0
 public String getMessage(String code) {
   return Application.instance()
       .getApplicationContext()
       .getMessage(code, new Object[0], Locale.getDefault());
 }