Examples of CubeViewEditor


Examples of com.tensegrity.wpalo.client.ui.mvc.cubeview.CubeViewEditor

    setText(modify(name));
    setAutoHeight(true);
    setAutoWidth(true);
    setDeferHeight(true);
   
    vEditor = new CubeViewEditor(this);
    vEditor.setWidth("100%");
    vEditor.setHeight("100%");
    add(vEditor);
    vEditor.initialize(showSaveButtons, displayFlags);
 
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.mvc.cubeview.CubeViewEditor

  private final CubeViewEditor vEditor;
 
  public TemplateViewEditorTab(String name) {
    super(name);
    setText(name);
    vEditor = new CubeViewEditor(this);
    vEditor.setWidth("100%");
    vEditor.setHeight("100%");
    add(vEditor);
    vEditor.initialize(true, null);
  }
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.mvc.cubeview.CubeViewEditor

//    content.add(tabFolder);
    Listener<ContainerEvent<TabPanel, TabItem>> listener = new Listener<ContainerEvent<TabPanel, TabItem>>() {
      public void handleEvent(final ContainerEvent<TabPanel, TabItem> ce) {
        if (ce.item instanceof ViewEditorTab) {
          final ViewEditorTab editorTab = (ViewEditorTab) ce.item;
          CubeViewEditor vEditor = editorTab.getEditor();
          switch (ce.type) {
          case Events.BeforeRemove:
            if (vEditor.isDirty()) {
              ce.doit = false;
              final XViewModel view = vEditor.getView();
              MessageBoxUtils.yesNoCancel(constants.saveView(),
                  messages.saveViewBeforeClosing(ViewBrowserModel.modify(view.getName())),
                  new Listener<WindowEvent>() {
                    public void handleEvent(WindowEvent be) {
                      if (be.buttonClicked.getItemId().equalsIgnoreCase(Dialog.YES)) {
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.mvc.cubeview.CubeViewEditor

    }

  }
 
  private final void askBeforeClose(final ViewEditorTab editorTab, final AsyncCallback <Boolean> callback) {
    CubeViewEditor vEditor = editorTab.getEditor();
    final XViewModel view = vEditor.getView();
    MessageBoxUtils.yesNoCancel(constants.saveView(), messages.saveViewBeforeClosing(ViewBrowserModel.modify(view.getName())),
        new Listener<WindowEvent>() {
          public void handleEvent(WindowEvent be) {
            if (be.buttonClicked.getItemId()
                .equalsIgnoreCase(Dialog.YES)) {
View Full Code Here

Examples of com.tensegrity.wpalo.client.ui.mvc.cubeview.CubeViewEditor

  public void beforeClose(final AsyncCallback<Boolean> callback) {
    ArrayList <ViewEditorTab> dirtyTabs = new ArrayList<ViewEditorTab>();
    for (TabItem item: tabFolder.getItems()) {
      if (item instanceof ViewEditorTab) {
        final ViewEditorTab editorTab = (ViewEditorTab) item;
        CubeViewEditor vEditor = editorTab.getEditor();
        if (vEditor.isDirty()) {
          dirtyTabs.add(editorTab);
        }
      }     
    }
    if (dirtyTabs.isEmpty()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.