Tabnine Logo
AsyncSwingTreeModel.getNodeOrAddZombie
Code IndexAdd Tabnine to your IDE (free)

How to use
getNodeOrAddZombie
method
in
jadex.base.gui.asynctree.AsyncSwingTreeModel

Best Java code snippets using jadex.base.gui.asynctree.AsyncSwingTreeModel.getNodeOrAddZombie (Showing top 1 results out of 315)

origin: net.sourceforge.jadex/jadex-tools-base-swing

      public IFuture<Void> componentRemoved(final IComponentDescription desc, Map<String, Object> results)
      {
        final ISwingTreeNode node = getModel().getNodeOrAddZombie(desc.getName());
//                if(desc.getName().toString().startsWith("ANDTest@"))
//                System.out.println("Component removed0: "+desc.getName().getName()+", zombie="+(node==null));
        if(node!=null)
        {
          SwingUtilities.invokeLater(new Runnable()
          {
            public void run()
            {
              if(getModel().getNodeOrAddZombie(desc.getName())!=null)
              {
//                                if(desc.getName().toString().startsWith("ANDTest@"))
//                                    System.out.println("Component removed: "+desc.getName().getName());
                ((AbstractSwingTreeNode)node.getParent()).removeChild(node);
              }
            }
          });
        }
        return IFuture.DONE;
      }
      
jadex.base.gui.asynctreeAsyncSwingTreeModelgetNodeOrAddZombie

Popular methods of AsyncSwingTreeModel

  • fireNodeChanged
    Inform listeners that a node has changed.
  • addNodeListener
    Register a node listener.
  • getNode
    Get a node by its id.
  • <init>
    Create a component tree model.
  • addNodeHandler
    Add a node handler.
  • dispose
    Called when the tree is removed.
  • getNodeHandlers
    Get the node handlers.
  • getRoot
    Get the root node.
  • registerNode
    Register a node. Nodes can be registered for easy access.
  • setRoot
    Set the root node.

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now