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

How to use
getListener
method
in
java.util.EventListenerProxy

Best Java code snippets using java.util.EventListenerProxy.getListener (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.utilEventListenerProxygetListener

Javadoc

Returns the wrapped EventListener.

Popular methods of EventListenerProxy

    Popular in Java

    • Making http requests using okhttp
    • setContentView (Activity)
    • scheduleAtFixedRate (Timer)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • Component (java.awt)
      A component is an object having a graphical representation that can be displayed on the screen and t
    • HashSet (java.util)
      HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
    • Scanner (java.util)
      A parser that parses a text string of primitive types and strings with the help of regular expressio
    • TimeZone (java.util)
      TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
    • TimeUnit (java.util.concurrent)
      A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
    • JTextField (javax.swing)
    • From CI to AI: The AI layer in your organization
    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