Esempio n. 1
0
 /** clears the layout and shows the new generated view. */
 public void switchToView(boolean refresh) {
   layout.removeMembers(layout.getMembers());
   if (refresh) {
     getViewPanel(); // gets the data first!
   } else {
     layout.addMember(getViewForm());
   }
 }
Esempio n. 2
0
 /** clears the layout and shows the new generated edit form. */
 public void switchToEdit() {
   layout.removeMembers(layout.getMembers());
   layout.addMember(createEditForm());
 }