Tabnine Logo
EnhancedPanel.fireAncestorWindowHidden
Code IndexAdd Tabnine to your IDE (free)

How to use
fireAncestorWindowHidden
method
in
de.schlichtherle.truezip.swing.EnhancedPanel

Best Java code snippets using de.schlichtherle.truezip.swing.EnhancedPanel.fireAncestorWindowHidden (Showing top 2 results out of 315)

origin: de.schlichtherle.truezip/truezip-swing

/**
 * Calls {@link #fireAncestorWindowShown} or
 * {@link #fireAncestorWindowHidden}, depending on the ID of the given
 * {@code event}.
 */
protected void processPanelEvent(final PanelEvent event) {
  switch (event.getID()) {
    case PanelEvent.ANCESTOR_WINDOW_SHOWN:
      fireAncestorWindowShown(event);
      break;
    case PanelEvent.ANCESTOR_WINDOW_HIDDEN:
      fireAncestorWindowHidden(event);
      break;
    default:
      throw new AssertionError();
  }
}
origin: de.schlichtherle.truezip/truezip-swing

@Test
public void testFireAncestorWindowHidden() {
  final CountingPanelListener l = new CountingPanelListener();
  instance.addPanelListener(l);
  instance.addPanelListener(l); // add again to receive same event twice!
  assertEquals(0, l.hidden);
  PanelEvent event = null;
  instance.fireAncestorWindowHidden(event);
  assertEquals(2, l.hidden);
}
de.schlichtherle.truezip.swingEnhancedPanelfireAncestorWindowHidden

Javadoc

Notifies all registered listeners about the event. This is a synchronous operation.

Popular methods of EnhancedPanel

  • getAncestorWindow
  • <init>
    Creates a new EnhancedPanel with FlowLayoutand the specified buffering strategy. If isDoubleBuffered
  • add
  • addPanelListener
    Adds the listener to the list of receivers for PanelEvents. Note that the listener doesn't get seria
  • fireAncestorWindowShown
    Notifies all registered listeners about the event. This is a synchronous operation.
  • getListeners
  • getPanelListeners
    Returns an array of all the panel listeners registered on this component.
  • isShowing
  • processPanelEvent
    Calls #fireAncestorWindowShown or #fireAncestorWindowHidden, depending on the ID of the given event.
  • removePanelListener
    Removes the listener from the list of receivers for PanelEvents.
  • setBorder
  • setLayout
  • setBorder,
  • setLayout

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JOptionPane (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Vim 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