Examples of UIEventCloseTab


Examples of vg.core.event.UIEventCloseTab

              SimpleNavigator.this.selectTabInNavigator(tabId);
              break;
            }
            case DEF_CLOSE_TAB:
            {
              UIEventCloseTab bufEvent = (UIEventCloseTab)event;
              int tabId = bufEvent.getTabId();
              SimpleNavigator.this.closeTab(tabId);
              break;
            }
            case DEF_CHANGE_VIEW:
            {
              UIEventChangeView bufEvent = (UIEventChangeView)event;
              int tabId = bufEvent.getTabId();
              SimpleNavigator.this.selectTabInNavigator(tabId);
              break;
            }
            case DEF_RENAME_TAB:
            {
              UIEventRenameTab bufEvent = (UIEventRenameTab)event;
              GraphNode tabNode = SimpleNavigator.this.rootNode.getNode(bufEvent.getTabId(), ENodeType.DEF_TAB);
              if(tabNode != null) {
                tabNode.setName(bufEvent.getNewName());
              } else {
                VisualGraph.log.printError("[" + this.getClass().getName()+".update] [BAD] Renaming of tab.");
              }
              break;
            }
View Full Code Here

Examples of vg.core.event.UIEventCloseTab

            this.tabSet.add(bufEvent.getTabId());
          }
          break;
        }
        case DEF_CLOSE_TAB: {
          UIEventCloseTab bufEvent = (UIEventCloseTab)event;
          synchronized (this.tabSet) {
            this.tabSet.remove(bufEvent.getTabId());
          }
          break;         
        }
      }
    }
View Full Code Here

Examples of vg.core.event.UIEventCloseTab

      }
    }
    this.comTabIdAndTab = bufMap;
    // create and send event
    if(this.parameter != null && this.parameter.userInterface != null) {
      UIEventCloseTab event = new UIEventCloseTab(id);
      this.parameter.userInterface.addEvent(event);
    }
    // update ui
    if(SwingUtilities.isEventDispatchThread()) {
      this.tabs.remove(index);     
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.