Package com.tensegrity.wpalo.client.ui.mvc.viewbrowser.importer

Examples of com.tensegrity.wpalo.client.ui.mvc.viewbrowser.importer.ViewImportDialog


    // final ViewCreateDialog createDlg = new ViewCreateDialog();
    XUser user = ((Workbench)Registry.get(Workbench.ID)).getUser();
    int permission = user.isAdmin() ? 0 : 16;   
    WPaloCubeViewServiceProvider.getInstance().checkPermission(user.getSessionId(), permission, new AsyncCallback <Boolean>(){
      private final void showDialog(boolean showBoxes) {
        final ViewImportDialog createDlg = new ViewImportDialog(false, showBoxes);
        createDlg.addButtonListener(ViewImportDialog.BUTTON_OK,
            new Listener<BaseEvent>() {
              public void handleEvent(BaseEvent be) {
                XView[] xViews = createDlg.getSelectedViews();
                TreeNode parent = getParentFolder(node);
                importViews(constants.creatingView(), xViews, parent, createDlg
                    .isPublic(), createDlg.isEditable());
              }
            });
        createDlg.show();           
      }

      public void onFailure(Throwable t) {
        showDialog(false);
      }
View Full Code Here


  private final void importViewsAfterCheck(final TreeNode node) {
    XUser user = ((Workbench)Registry.get(Workbench.ID)).getUser();
    int permission = user.isAdmin() ? 0 : 16;   
    WPaloCubeViewServiceProvider.getInstance().checkPermission(user.getSessionId(), permission, new AsyncCallback <Boolean>(){
      private final void showDialog(boolean showBoxes) {
        final ViewImportDialog importDlg = new ViewImportDialog(true, showBoxes);
        importDlg.addButtonListener(ViewImportDialog.BUTTON_OK,
            new Listener<BaseEvent>() {
              public void handleEvent(BaseEvent be) {
                XView[] xViews = importDlg.getSelectedViews();
                TreeNode parent = getParentFolder(node);
                importViews(constants.importingViews(), xViews, parent, importDlg
                    .isPublic(), importDlg.isEditable());
              }
            });
        importDlg.show();           
      }
     
      public void onFailure(Throwable t) {
        showDialog(false);
      }
View Full Code Here

TOP

Related Classes of com.tensegrity.wpalo.client.ui.mvc.viewbrowser.importer.ViewImportDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.