Package com.jidesoft.document

Examples of com.jidesoft.document.DocumentComponent


  public void nodeStructureChanged(TreeNode node) {
    model.nodeStructureChanged(node);
  }

  private void maybeRefocusDocument(TreeNode treeNode) {
    DocumentComponent found = null ;
   
    if (treeNode instanceof DestinationConfigTreeNode) {
      final DestinationConfigTreeNode node = (DestinationConfigTreeNode) treeNode;
      found = HermesBrowser.getBrowser().getOpenQueueBrowser(node.getConfig());
    } else if (treeNode instanceof MessageStoreTreeNode) {
      final MessageStoreTreeNode node = (MessageStoreTreeNode) treeNode;
      found = HermesBrowser.getBrowser().getOpenStoreBrowser(node.getMessageStore()) ;
    }
   
    if (found != null) {
      HermesBrowser.getBrowser().getDocumentPane().setActiveDocument(found.getName());
    }
  }
View Full Code Here


   */
  public void addDocumentComponent(final DocumentComponent document) {
    log.debug("addDocument() name=" + document.getName());

    if (getDocumentPane().isDocumentOpened(document.getName())) {
      DocumentComponent existing = getDocumentPane().getDocument(document.getName());

      if (document != existing) {
        getDocumentPane().closeDocument(document.getName());
      }
    }
View Full Code Here

    }
  }

  public MessageStoreBrowserAction getOpenStoreBrowser(MessageStore store) {
    for (int d = 0 ; d < HermesBrowser.getBrowser().getDocumentPane().getDocumentCount() ; d++) {
       DocumentComponent doc =  HermesBrowser.getBrowser().getDocumentPane().getDocumentAt(d) ;
       if (doc instanceof MessageStoreBrowserAction) {
         MessageStoreBrowserAction sBrowser = (MessageStoreBrowserAction) doc ;
         if (sBrowser.getMessageStore().equals(store)) {
           return sBrowser ;
         }
View Full Code Here

    return null ;
  }
 
  public QueueBrowseAction getOpenQueueBrowser(DestinationConfig config) {
    for (int d = 0 ; d < HermesBrowser.getBrowser().getDocumentPane().getDocumentCount() ; d++) {
       DocumentComponent doc =  HermesBrowser.getBrowser().getDocumentPane().getDocumentAt(d) ;
       if (doc instanceof QueueBrowseAction) {
         QueueBrowseAction qBrowser = (QueueBrowseAction) doc ;
         if (qBrowser.getDestinationConfig().equals(config)) {
           return qBrowser ;
         }
View Full Code Here

      d.delete();
    }
  }

  private void checkEnabled() {
    DocumentComponent document = HermesBrowser.getBrowser().getDocumentPane().getActiveDocument() ;
   
    setEnabled(document instanceof MessagesDeleteable);
  }
View Full Code Here

    // loading element
    JLabel j = new JLabel(I18N.t("Lädt Tab"), IconCache.get("wait", 32), JLabel.CENTER);
    j.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));

    // build
    DocumentComponent document = new DocumentComponent(j, uid, "Lädt", IconCache.get("wait"));

    return document;
  }
View Full Code Here

      @Override
      public void go() {

        // open it
        try {
          final DocumentComponent doccom = YaTab.getLoadingDocument(uid);

          // build dummy tab
          get().getPane().openDocument(doccom);
          get().getPane().setActiveDocument(uid);

          try {
            // new SwingHelper(true) {
            //
            // @Override
            // public void run() {
            // search for the tab
            YaTab tab = TabEvent.getTab(id);

            // found something?
            if (tab == null) {
              YEx.info("Can not find tab for " + id, new IllegalArgumentException("Tab " + id + " is missing"));
              close(id);
              return;
            }
            Log.ger.info("Open Tab " + tab.getTitle() + " (" + id + ")");

            // inform
            ExtentionManagement.work("yaframe.openTab", JavaHelper.createHashStringObj("tab", tab));
            // frame.tabs.put(tab.getID(), tab);
            tab.getDocument(doccom, id);

            // overwrite with fav?
            if (fav != null) {
              doccom.setTitle(String.valueOf(fav.getTitle()));
              doccom.setIcon(IconCache.get(String.valueOf(fav.getIcon())));
              setTooltip(fav.getTitle(), fav.getIcon());
            } else {
              setTooltip(tab.getTitle(), tab.getIcon());
            }
View Full Code Here

   * Get the spec. open tab
   *
   * @return the tabs
   */
  public YaTab getOpenTab(String id) {
    DocumentComponent dc = frame.pane.getDocument(getTabID(id));

    // exist?
    if (dc == null) {
      return null;
    }

    return (YaTab) dc.getComponent();
  }
View Full Code Here

TOP

Related Classes of com.jidesoft.document.DocumentComponent

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.