Package org.pushingpixels.flamingo.api.ribbon

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


        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

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

  }
 
  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

 
  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

  }
 
  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

  }
 
  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

  }
 
  private RibbonTask getTokengameTask() {
   
    if (tokengameTask == null) {
      tokengameTask = new RibbonTask(Messages.getTitle("Task.Tokengame"), getTokengameCloseBand(), getTokengameStepBand(), getTokengameAutoBand());
      tokengameTask.setResizeSequencingPolicy(new CoreRibbonResizeSequencingPolicies.CollapseFromLast(tokengameTask));
    }
   
    return tokengameTask;
  }
View Full Code Here

 
  private RibbonTask getRegistrationTask() {
   
    if(registrationTask == null){
      //registrationTask = new RibbonTask(Messages.getTitle("Task.Registration"), getRegistrationBand());     
      registrationTask = new RibbonTask("Registration", getSocialMediaBand(), getRegistrationBand());     
      registrationTask.setResizeSequencingPolicy(new CoreRibbonResizeSequencingPolicies.CollapseFromLast(registrationTask));
     
    }
    return registrationTask;
  }
View Full Code Here

      g2d.setPaint(paint);

      Set<RibbonTask> tasksWithTrailingSeparators = new HashSet<RibbonTask>();
      // add all regular tasks except the last
      for (int i = 0; i < ribbon.getTaskCount() - 1; i++) {
        RibbonTask task = ribbon.getTask(i);
        tasksWithTrailingSeparators.add(task);
        // System.out.println("Added " + task.getTitle());
      }
      // add all tasks of visible contextual groups except last task in
      // each group
      for (int i = 0; i < ribbon.getContextualTaskGroupCount(); i++) {
        RibbonContextualTaskGroup group = ribbon
            .getContextualTaskGroup(i);
        if (ribbon.isVisible(group)) {
          for (int j = 0; j < group.getTaskCount() - 1; j++) {
            RibbonTask task = group.getTask(j);
            tasksWithTrailingSeparators.add(task);
            // System.out.println("Added " + task.getTitle());
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.pushingpixels.flamingo.api.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.