Tabnine Logo
EventListenerProxy
Code IndexAdd Tabnine to your IDE (free)

How to use
EventListenerProxy
in
java.util

Best Java code snippets using java.util.EventListenerProxy (Showing top 6 results out of 315)

origin: org.hobsoft.entangle/entangle-swing

/**
 * {@inheritDoc}
 */
@Override
public ObservableListener<String> getListener()
{
  return (ObservableListener<String>) super.getListener();
}

origin: org.hobsoft.symmetry/symmetry-ui

/**
 * {@inheritDoc}
 */
@Override
public TableCellListener getListener()
{
  return (TableCellListener) super.getListener();
}
 
origin: org.hobsoft.symmetry/symmetry-support-bean

public static EventListener unproxy(EventListener listener)
{
  EventListener unproxiedListener = listener;
  
  while (unproxiedListener instanceof EventListenerProxy)
  {
    unproxiedListener = ((EventListenerProxy) unproxiedListener).getListener();
  }
  
  return unproxiedListener;
}
 
origin: jtulach/bck2brwsr

  /**
   * Extracts a real listener from the proxy listener.
   * It is necessary because default proxy class is not serializable.
   *
   * @return a real listener
   */
  public final L extract(L listener) {
    while (listener instanceof EventListenerProxy) {
      EventListenerProxy<L> proxy = (EventListenerProxy<L>) listener;
      listener = proxy.getListener();
    }
    return listener;
  }
}
origin: org.apidesign.bck2brwsr/emul

  /**
   * Extracts a real listener from the proxy listener.
   * It is necessary because default proxy class is not serializable.
   *
   * @return a real listener
   */
  public final L extract(L listener) {
    while (listener instanceof EventListenerProxy) {
      EventListenerProxy<L> proxy = (EventListenerProxy<L>) listener;
      listener = proxy.getListener();
    }
    return listener;
  }
}
origin: stackoverflow.com

 Toolkit.getDefaultToolkit().addAWTEventListener(this, ...);

for (AWTEventListener listener : Toolkit.getDefaultToolkit().getAWTEventListeners()) {

  java.awt.event.AWTEventListenerProxy proxy = (java.awt.event.AWTEventListenerProxy) listener;
  if (proxy.getListener().equals(this) {
    // there, we found it.
  }
}
java.utilEventListenerProxy

Javadoc

This abstract class provides a simple wrapper for objects of type EventListener.

Most used methods

  • getListener
    Returns the listener associated with the proxy.

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Kernel (java.awt.image)
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best plugins for Eclipse
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