Package org.pushingpixels.flamingo.api.common

Examples of org.pushingpixels.flamingo.api.common.JCommandButton$DefaultPopupButtonModel


  }

  private JCommandButton getTaskbarButtonAnalyze() {
   
    if (taskbarButtonAnalyze == null) {
      taskbarButtonAnalyze = new JCommandButton(Messages.getString("Tools.semanticalAnalysis.text"), new analyze_semanticalanalysis());
      setTooltip(taskbarButtonAnalyze, "Tools.semanticalAnalysis");
      taskbarButtonAnalyze.addActionListener(new ActionButtonListener(m_mediator,ActionFactory.ACTIONID_WOPED, AbstractViewEvent.ANALYSIS_WOPED, taskbarButtonAnalyze));
    }
    return taskbarButtonAnalyze;
  }
View Full Code Here


  }

  private JCommandButton getTaskbarButtonConfig() {
   
    if (taskbarButtonConfig == null) {
      taskbarButtonConfig = new JCommandButton(Messages.getString("OptionsAndHelp.Configuration.text"), new help_configuration());
      setTooltip(taskbarButtonConfig, "OptionsAndHelp.Configuration");
      taskbarButtonConfig.addActionListener(new ActionButtonListener(m_mediator,ActionFactory.ACTIONID_SHOWCONFIG, AbstractViewEvent.CONFIG, taskbarButtonConfig));   
    }
    return taskbarButtonConfig;
  }   
View Full Code Here

  /* BUTTONS */
  /***********/
  private JCommandButton getNewButton() {
   
    if (newButton == null) {
      newButton = new JCommandButton(Messages.getString("Document.new.text"), new file_new());
      newListener = new ActionButtonListener(m_mediator,ActionFactory.ACTIONID_NEW, AbstractViewEvent.NEW, newButton);
      newButton.addActionListener(newListener);     
      setTooltip(newButton, "Document.new");
    }
   
View Full Code Here

  }

  private JCommandButton getOpenButton() {
   
    if (openButton == null) {
      openButton = new JCommandButton(Messages.getString("Document.open.text"), new file_open());
      openButton.addActionListener(new ActionButtonListener(m_mediator,ActionFactory.ACTIONID_OPEN, AbstractViewEvent.OPEN, openButton));     
      setTooltip(openButton, "Document.open");
    }
   
    return openButton;
View Full Code Here

  }

  private JCommandButton getRecentButton() {
   
    if (recentButton == null) {
      recentButton = new JCommandButton(Messages.getString("Document.recent.text"), new file_recent());
      recentButton.setCommandButtonKind(JCommandButton.CommandButtonKind.POPUP_ONLY);
     
      recentButton.setPopupCallback(new PopupPanelCallback() {
        @Override
        public JPopupPanel getPopupPanel(JCommandButton commandButton) {
View Full Code Here

  }

  private JCommandButton getCloseButton() {
   
    if (closeButton == null) {
      closeButton = new JCommandButton(Messages.getString("Document.close.text"), new file_close());
      closeButton.addActionListener(new ActionButtonListener(m_mediator,ActionFactory.ACTIONID_CLOSE, AbstractViewEvent.CLOSE, closeButton));     
      setTooltip(closeButton, "Document.close");
    }
   
    return closeButton;
View Full Code Here

  }
 
  private JCommandButton getSaveButton() {
   
    if (saveButton == null) {
      saveButton = new JCommandButton(Messages.getString("Save.save.text"), new file_save());
      saveButton.addActionListener(new ActionButtonListener(m_mediator,ActionFactory.ACTIONID_SAVE, AbstractViewEvent.SAVE, saveButton));     
      setTooltip(saveButton, "Save.save");
    }
   
    return saveButton;
View Full Code Here

  }
 
  private JCommandButton getSaveAsButton() {
   
    if (saveAsButton == null) {
      saveAsButton = new JCommandButton(Messages.getString("Save.saveAs.text"), new file_saveas());
      saveAsButton.addActionListener(new ActionButtonListener(m_mediator,ActionFactory.ACTIONID_SAVEAS, AbstractViewEvent.SAVEAS, saveAsButton));     
      setTooltip(saveAsButton, "Save.saveAs");
    }
   
    return saveAsButton;
View Full Code Here

  }
 
  private JCommandButton getPrintButton() {
   
    if (printButton == null) {
      printButton = new JCommandButton(Messages.getString("DataOutput.print.text"), new file_print());
      printButton.addActionListener(new ActionButtonListener(m_mediator,ActionFactory.ACTIONID_PRINT, AbstractViewEvent.PRINT, printButton));     
      setTooltip(printButton, "DataOutput.print");
    }
   
    return printButton;
View Full Code Here

  }
   
  private JCommandButton getExportButton() {
   
    if (exportAsButton == null) {
      exportAsButton = new JCommandButton(Messages.getString("DataOutput.exportAs.text"), new file_exportas());
      exportAsButton.addActionListener(new ActionButtonListener(m_mediator,ActionFactory.ACTIONID_EXPORT, AbstractViewEvent.EXPORT, exportAsButton));     
      setTooltip(exportAsButton, "DataOutput.exportAs");
    }
   
    return exportAsButton;
View Full Code Here

TOP

Related Classes of org.pushingpixels.flamingo.api.common.JCommandButton$DefaultPopupButtonModel

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.