congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ISwingNodeHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
ISwingNodeHandler
in
jadex.base.gui.asynctree

Best Java code snippets using jadex.base.gui.asynctree.ISwingNodeHandler (Showing top 3 results out of 315)

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

public void	mouseClicked(MouseEvent e)
{
  if(!doPopup(e) && e.getClickCount()==2)
  {
    JTree    tree    = (JTree)e.getSource();
    TreePath[]    paths    = tree.getSelectionPaths();
    if(paths!=null)
    {
      AsyncSwingTreeModel    model    = (AsyncSwingTreeModel)tree.getModel();
      INodeHandler[]    handlers    = model.getNodeHandlers();
      if(handlers!=null)
      {
        for(int i=0; paths!=null && i<paths.length; i++)
        {
          Action    a    = null;
          for(int j=handlers.length-1; a==null && j>=0; j--)
          {
            a    = ((ISwingNodeHandler) handlers[j]).getDefaultAction((ISwingTreeNode)paths[i].getLastPathComponent());
          }
          if(a!=null)
          {
            a.actionPerformed(new ActionEvent(tree, 0, null));
          }
        }
      }
    }
  }
}
origin: net.sourceforge.jadex/jadex-tools-base-swing

for(int i=handlers.length-1; i>=0; i--)
  Action[]    acts    = ((ISwingNodeHandler) handlers[i]).getPopupActions(nodes);
  if(acts!=null && acts.length>0)
origin: net.sourceforge.jadex/jadex-tools-base-swing

for(int i = 0; handlers != null && i < handlers.length; i++)
  Icon overlay = ((ISwingNodeHandler) handlers[i]).getSwingOverlay(node);
  if(overlay != null)
jadex.base.gui.asynctreeISwingNodeHandler

Javadoc

Node handlers provide additional information for nodes such as icon overlays and popup actions.

Most used methods

  • getDefaultAction
    Get the default action to be performed after a double click.
  • getPopupActions
    Get the popup actions available for all of the given nodes, if any.
  • getSwingOverlay
    Get the overlay for a node if any.

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JTextField (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top PhpStorm 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