Package nu.fw.jeti.backend.roster

Examples of nu.fw.jeti.backend.roster.JIDStatusTree


  {
    SwingUtilities.invokeLater(new Runnable()
    {
      public void run()
      {
        JIDStatusTree tree = ((JIDStatusTree)getModel().getRoot());
        TreePath path = new TreePath(new Object[] {tree,tree.getGroup(I18N.gettext("main.main.roster.Servers"))});
        expandPath(path);
      }
    });
              
  }
View Full Code Here


  }

  public List getOpenGroups()
  {
    List tempList = new LinkedList();
    JIDStatusTree tree = ((JIDStatusTree) getModel().getRoot());
    if (tree == null) return null;
    for (int i = 0; i < tree.getSize(); i++)
    {
      TreePath path = new TreePath(new Object[] { tree, tree.get(i)});
      if (isExpanded(path)) {
                tempList.add(tree.get(i).toString());
            }
    }
    return tempList;

  }
View Full Code Here

  }

  public void openGroups(JetiPrivateRosterExtension extension)
  {
    String[] groups = extension.getOpenGroups();
    JIDStatusTree tree = ((JIDStatusTree) getModel().getRoot());
    if (groups == null) return;
    for (int i = 0; i < groups.length; i++)
    {
      if(tree.existGroup(groups[i]))
      {
        TreePath path = new TreePath(new Object[] { tree, tree.getGroup(groups[i])});
                if (treeExpander != null) {
                    treeExpander.expand(path);
                } else {
                    expandPath(path);
                }
View Full Code Here

TOP

Related Classes of nu.fw.jeti.backend.roster.JIDStatusTree

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.