Ejemplo n.º 1
0
 private void closeEditor() {
   // As we display the editor differently in different devices,
   // close properly in each modes
   if (payeeEditor.getParent() == mainContent) {
     mainContent.removeComponent(payeeEditor);
   } else {
     AppUI.get().getContentLayout().replaceComponent(payeeEditor, this);
   }
 }
Ejemplo n.º 2
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);
   }
 }