Package net.suberic.util.gui

Examples of net.suberic.util.gui.ConfigurablePopupMenu


  /**
   * This creates and shows a PopupMenu for this component.
   */
  public void showPopupMenu(JComponent component, MouseEvent e) {
    ConfigurablePopupMenu popupMenu = new ConfigurablePopupMenu();
    FolderInfo fi = getMessageInfo().getFolderInfo();
    if ( fi != null ) {
      if (fi.isOutboxFolder()) {
        popupMenu.configureComponent("NewMessageProxy.popupMenu", Pooka.getResources());
      } else if (fi instanceof net.suberic.pooka.cache.CachingFolderInfo && ! ((net.suberic.pooka.cache.CachingFolderInfo) fi).getCacheHeadersOnly()) {
        popupMenu.configureComponent("MessageProxy.cachingPopupMenu", Pooka.getResources());
      } else {
        popupMenu.configureComponent("MessageProxy.popupMenu", Pooka.getResources());
      }
    } else {
      popupMenu.configureComponent("MessageProxy.popupMenu", Pooka.getResources());
    }
    popupMenu.setActive(getActions());
    popupMenu.show(component, e.getX(), e.getY());

  }
View Full Code Here


  /**
   * Shows the popupMenu for the MultiMessageProxy.  The definition of this
   * menu comes from the MessageProxy.popupMenu property.
   */
  public void showPopupMenu(JComponent component, MouseEvent e) {
    ConfigurablePopupMenu popupMenu = new ConfigurablePopupMenu();
    if (folderInfo instanceof net.suberic.pooka.cache.CachingFolderInfo  && ! ((net.suberic.pooka.cache.CachingFolderInfo) folderInfo).getCacheHeadersOnly()) {
      popupMenu.configureComponent("MessageProxy.cachingPopupMenu", Pooka.getResources());
    } else {
      popupMenu.configureComponent("MessageProxy.popupMenu", Pooka.getResources());
     
    }
    popupMenu.setActive(getActions());
    popupMenu.show(component, e.getX(), e.getY());
   
  }
View Full Code Here

  /**
   * This creates and shows a PopupMenu for this component.
   */
  public void showPopupMenu(JComponent component, MouseEvent e) {
    ConfigurablePopupMenu popupMenu = new ConfigurablePopupMenu();
    popupMenu.configureComponent("ReadMessageWindow.popupMenu", Pooka.getResources());
    popupMenu.setActive(getActions());
    MessageUI mui = getMessageUI();
    if (mui instanceof net.suberic.util.swing.ThemeSupporter) {
      try {
        Pooka.getUIFactory().getPookaThemeManager().updateUI((net.suberic.util.swing.ThemeSupporter) mui, popupMenu, true);
      } catch (Exception etwo) {
        java.util.logging.Logger.getLogger("Pooka.debug.gui").fine("error setting theme:  " + e);
      }
    }
    popupMenu.show(component, e.getX(), e.getY());

  }
View Full Code Here

  /**
   * This creates and shows a PopupMenu for this component. 
   */
  public void showPopupMenu(MouseEvent e) {
    if (popupMenu == null) {
      popupMenu = new ConfigurablePopupMenu();
      popupMenu.configureComponent("ConnectionMonitor.popupMenu", Pooka.getResources())
      popupMenu.setActive(getActions());
    }

    popupMenu.show(this, e.getX(), e.getY());
View Full Code Here

  /**
   * This creates and shows a PopupMenu for this component.
   */
  public void showPopupMenu(JComponent component, MouseEvent e) {
    ConfigurablePopupMenu popupMenu = new ConfigurablePopupMenu();
    popupMenu.configureComponent("NewMessageWindow.popupMenu", Pooka.getResources());
    popupMenu.setActive(getActions());
    NewMessageUI nmui = getNewMessageUI();
    if (nmui instanceof net.suberic.util.swing.ThemeSupporter) {
      try {
        Pooka.getUIFactory().getPookaThemeManager().updateUI((net.suberic.util.swing.ThemeSupporter) nmui, popupMenu, true);
      } catch (Exception etwo) {
        if (Pooka.isDebug())
          System.out.println("error setting theme:  " + e);
      }
    }
    popupMenu.show(component, e.getX(), e.getY());

  }
View Full Code Here

TOP

Related Classes of net.suberic.util.gui.ConfigurablePopupMenu

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.