Examples of RibbonTask


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

Examples of org.jvnet.flamingo.ribbon.RibbonTask

    }
    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

Examples of org.jvnet.flamingo.ribbon.RibbonTask

    /**
     * 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

Examples of org.pushingpixels.flamingo.api.ribbon.RibbonTask

          int count = 0;
          for (ComparableContributorHull<AbstractRibbonBand<?>> hull : hulls) {
            bands[count++] = hull.getObject();
          }
         
          RibbonTask task = new RibbonTask(TextUtils.removeTranslateComment(TextUtils.getText("ribbon."+getKey())), bands);
          if(parent != null) {
            parent.addChild(task, new ChildProperties(parseOrderSettings(attributes.getProperty("orderPriority", ""))));
          }
        }
      }
View Full Code Here

Examples of org.pushingpixels.flamingo.api.ribbon.RibbonTask

        bands[0] = projetoBand;
        bands[1] = volumeBand;
        bands[2] = indLocalBand;
        bands[3] = modeloBand;

        RibbonTask tskProjeto = new RibbonTask("Principal", bands);
        RibbonTask tskDados = new RibbonTask("Dados", dadosBand);
        RibbonTask tskFerramentas = new RibbonTask("Ferramentas", configuracoesBand);
        RibbonTask tskJanela = new RibbonTask("Janela", janelaBand);

        this.getRibbon().addTask(tskProjeto);
        this.getRibbon().addTask(tskDados);
        this.getRibbon().addTask(tskFerramentas);
        this.getRibbon().addTask(tskJanela);
View Full Code Here

Examples of org.pushingpixels.flamingo.api.ribbon.RibbonTask

  /*********/
  private RibbonTask getFileTask() {
   
    if (fileTask == null) {
      if (ConfigurationManager.getConfiguration().getApromoreUse())
        fileTask = new RibbonTask(Messages.getTitle("Task.File"), getDocumentBand(), getSaveBand(), getOutputBand()/*, getApromoreBand()*/)
      else
        fileTask = new RibbonTask(Messages.getTitle("Task.File"), getDocumentBand(), getSaveBand(), getOutputBand());           
      fileTask.setResizeSequencingPolicy(new CoreRibbonResizeSequencingPolicies.CollapseFromLast(fileTask));
    }
   
    return fileTask;
  }
View Full Code Here

Examples of org.pushingpixels.flamingo.api.ribbon.RibbonTask

  }
 
  private RibbonTask getEditTask() {
   
    if (editTask == null) {
      editTask = new RibbonTask(Messages.getTitle("Task.Edit"), getEditBand(), getFormsBand());
      editTask.setResizeSequencingPolicy(new CoreRibbonResizeSequencingPolicies.CollapseFromLast(editTask));
    }
   
    return editTask;
  }
View Full Code Here

Examples of org.pushingpixels.flamingo.api.ribbon.RibbonTask

 
  private RibbonTask getAnalyzeTask() {
   
    if (analyzeTask == null) {
      if (ConfigurationManager.getConfiguration().isUseMetrics())
        analyzeTask = new RibbonTask(Messages.getTitle("Task.Analyze"), getAnalyzeBand(), getMetricsBand())
      else
        analyzeTask = new RibbonTask(Messages.getTitle("Task.Analyze"), getAnalyzeBand());         
      analyzeTask.setResizeSequencingPolicy(new CoreRibbonResizeSequencingPolicies.CollapseFromLast(analyzeTask));
    }
   
    return analyzeTask;
  }
View Full Code Here

Examples of org.pushingpixels.flamingo.api.ribbon.RibbonTask

  }
 
  private RibbonTask getViewTask() {
   
    if (viewTask == null) {
      viewTask = new RibbonTask(Messages.getTitle("Task.View"), getLayoutBand(), getWindowsBand(), getSidebarBand())
      viewTask.setResizeSequencingPolicy(new CoreRibbonResizeSequencingPolicies.CollapseFromLast(viewTask));
    }
   
    return viewTask;
  }
View Full Code Here

Examples of org.pushingpixels.flamingo.api.ribbon.RibbonTask

  }
 
  private RibbonTask getOptionsHelpTask() {
   
    if (optionsHelpTask == null) {
      optionsHelpTask = new RibbonTask(Messages.getTitle("Task.OptionsHelp"), getOptionsHelpBand());
      optionsHelpTask.setResizeSequencingPolicy(new CoreRibbonResizeSequencingPolicies.CollapseFromLast(optionsHelpTask));
    }
   
    return optionsHelpTask;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.