Class PopupWrapper


  • public class PopupWrapper
    extends java.lang.Object
    Wraps the logic of displaying a small panel in a popup. For toggling, the pattern would look like:

     if (!wrapper.hidePopup()) {
       wrapper.showPopup(owner, new MyContents());
     }
     
    • Constructor Summary

      Constructors 
      Constructor Description
      PopupWrapper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hidePopup()  
      void showPopup​(java.awt.Component owner, javax.swing.JComponent contents)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PopupWrapper

        public PopupWrapper()
    • Method Detail

      • hidePopup

        public boolean hidePopup()
      • showPopup

        public void showPopup​(java.awt.Component owner,
                              javax.swing.JComponent contents)