Ejemplo n.º 1
0
 private void openEditor(Payee trans) {
   payeeEditor.setEntity(trans);
   // display next to table on desktop class screens
   if (ScreenSize.getScreenSize() == ScreenSize.LARGE) {
     mainContent.addComponent(payeeEditor);
     payeeEditor.focusFirst();
   } else {
     // Replace this view with the editor in smaller devices
     AppUI.get().getContentLayout().replaceComponent(this, payeeEditor);
   }
 }