* @param duplicateModel duplicate model (show ok and cancel button if true else only close button)
* @param commands use dataModel.getMethods() or null (no buttons are visible on the lefthand bottom side)
* @return true if ok was pressed on the dialog window
*/
public boolean popupEdit(DataModel dataModel, ViewerCreator creator, LayoutItem layout, boolean duplicateModel, DataModelCommandVector commands) {
PopupController controller = new PopupController(getFactory());
try {
controller.setClientModel(dataModel, duplicateModel, commands, creator, (DefaultLayoutItem) layout);
} catch (Exception e) {
e.printStackTrace();
}
return controller.popup(duplicateModel);
}