Package org.jvnet.flamingo.ribbon

Examples of org.jvnet.flamingo.ribbon.RibbonTask


              JRibbonBand band;
              band = new JRibbonBand(bandName, bandSVGIcon);                 
              activityByBand.put(bandName, band);
             
              if(!bandByTask.containsKey(taskName)) {
                RibbonTask task = new RibbonTask();
                bandByTask.put(taskName, task);
              }
//              System.out.println("#########lhbTaskName : " + taskName);
//              System.out.println("#########lhbBandName : " + bandName);
              ((RibbonTask)bandByTask.get(taskName)).addBand(band);
View Full Code Here


    }
    return band;
  }
 
  protected void createFileRibbonMenu(JRibbon ribbon){
    RibbonTask fileTask = new RibbonTask();
    JRibbonBand fileBand;
    if((fileBand = getFileBand()) != null) {
      fileTask.addBand(fileBand);
    }
   
    JRibbonBand editBand;
    if((editBand = getEditBand()) != null) {
      fileTask.addBand(editBand);
    }
   
    JRibbonBand simulationBand;
    if((simulationBand = getSimulationBand()) != null) {
      fileTask.addBand(simulationBand);
    }
   
    JRibbonBand helpBand;
    if((helpBand = getHelpBand()) != null) {
      fileTask.addBand(helpBand);
    }
   
    ribbon.addTask(GlobalContext.getLocalizedMessage("pd.menu.file", "File"),
        fileTask);
    ribbon.add(new JSeparator(JSeparator.VERTICAL));
View Full Code Here

    /**
     * Ribbon menu config
     */
    private void configureRibbonMenu() {
        // file task
        RibbonTask fileTask = new RibbonTask(
                I18n.COMMON.getString("AppView.File"),
                getActionsBand(),
                getAppExitBand());
        fileTask.setKeyTip("F");

        // extras task
        RibbonTask extrasTask = new RibbonTask(
                I18n.COMMON.getString("AppView.Extras"),
                getViewBand(),
                getExtrasBand());
        extrasTask.setKeyTip("E");

        RibbonTask helpTask = new RibbonTask(
                I18n.COMMON.getString("AppView.Help"),
                getHelpBand());
        helpTask.setKeyTip("H");

        this.getRibbon().addTask(fileTask);
        this.getRibbon().addTask(extrasTask);
        this.getRibbon().addTask(helpTask);

View Full Code Here

TOP

Related Classes of org.jvnet.flamingo.ribbon.RibbonTask

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.