Package org.gwt.mosaic.forms.client.layout

Examples of org.gwt.mosaic.forms.client.layout.FormLayout$Measure


    Mdiv mdiv = new Mdiv();
    Score score = new Score();
    ScoreDef scoreDef = createScoreDef(stavesCount);
    score.getGapsAndSbsAndCorrs().add(scoreDef);
    Section section = new Section();
    Measure measureFirst = new Measure();
    Staff staffFirst = new Staff();
    Layer layerFirst = new Layer();
    staffFirst.getSbsAndSymbolsAndOrigs().add(layerFirst);
    measureFirst.getAnnotsAndSlursAndTupletSpen().add(staffFirst);
    for (int stavesIter = 1; stavesIter < stavesCount; stavesIter++) {
      Staff staff = new Staff();
      Layer layer = new Layer();
      staff.getSbsAndSymbolsAndOrigs().add(layer);
      measureFirst.getAnnotsAndSlursAndTupletSpen().add(staff);
    }
    section.getUnclearsAndSbsAndApps().add(measureFirst);

    for (int measureIter = 1; measureIter < measureCount; measureIter++) {
      Measure measure = new Measure();
      for (int stavesIter = 0; stavesIter < stavesCount; stavesIter++) {
        Staff staff = new Staff();
        Layer layer = new Layer();
        staff.getSbsAndSymbolsAndOrigs().add(layer);
        measure.getAnnotsAndSlursAndTupletSpen().add(staff);
      }
      section.getUnclearsAndSbsAndApps().add(measure);
    }
    score.getGapsAndSbsAndCorrs().add(section);
    mdiv.setScore(score);
View Full Code Here


  /**
   * create default measure
   */
  private void createDefaultMeasure() {
    setMeiNode(new Measure());
  }
View Full Code Here

            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof MeasureForm) {
      MeasureForm measureForm = (MeasureForm) childForm;
      Measure measureNode = (Measure) measureForm.getMeiNode();
      measureNode.getAnnotsAndSlursAndTupletSpen().clear();
      for (BasicElement measureChildForm : measureForm.getChildren()) {
        measureNode.getAnnotsAndSlursAndTupletSpen().add(
            handleScoreChild(measureChildForm, saveAllVariants));
      }
      return measureNode;
    } else if (childForm instanceof StaffForm) {
      StaffForm contentForm = (StaffForm) childForm;
View Full Code Here

   * FormLayout as layout manager.
   *
   * @param panel the layout container
   */
  public ButtonStackBuilder(LayoutPanel panel) {
    this(new FormLayout(COL_SPECS, ROW_SPECS), panel);
  }
View Full Code Here

  public static void dumpAll(LayoutPanel layoutPanel) {
    if (!(layoutPanel.getLayout() instanceof FormLayout)) {
      System.out.println("The container's layout is not a FormLayout.");
      return;
    }
    FormLayout layout = (FormLayout) layoutPanel.getLayout();
    dumpColumnSpecs(layout);
    dumpRowSpecs(layout);
    System.out.println();
    dumpColumnGroups(layout);
    dumpRowGroups(layout);
View Full Code Here

    System.out.println("COMPONENT CONSTRAINTS");
    if (!(layoutPanel.getLayout() instanceof FormLayout)) {
      System.out.println("The container's layout is not a FormLayout.");
      return;
    }
    FormLayout layout = (FormLayout) layoutPanel.getLayout();
    int childCount = layoutPanel.getWidgetCount();
    for (int i = 0; i < childCount; i++) {
      Widget child = layoutPanel.getWidget(i);
      CellConstraints cc = layout.getConstraints(child);
      String ccString = cc == null ? "no constraints"
          : cc.toShortString(layout);
      System.out.print(ccString);
      System.out.print("; ");
      String childType = child.getClass().getName();
View Full Code Here

  public static FormLayout.LayoutInfo getLayoutInfo(LayoutPanel layoutPanel) {
    if (!(layoutPanel.getLayout() instanceof FormLayout)) {
      throw new IllegalArgumentException(
          "The container must use an instance of FormLayout.");
    }
    FormLayout layout = (FormLayout) layoutPanel.getLayout();
    return layout.getLayoutInfo(layoutPanel);
  }
View Full Code Here

   * panel using a preconfigured {@link FormLayout} as layout manager.
   *
   * @param layoutPanel the layout panel
   */
  public ButtonBarBuilder(LayoutPanel layoutPanel) {
    super(new FormLayout(COL_SPECS, ROW_SPECS), layoutPanel);
    leftToRight = LayoutStyle.getCurrent().isLeftToRightButtonOrder();
  }
View Full Code Here

  public static void dumpAll(LayoutPanel layoutPanel) {
    if (!(layoutPanel.getLayout() instanceof FormLayout)) {
      System.out.println("The container's layout is not a FormLayout.");
      return;
    }
    FormLayout layout = (FormLayout) layoutPanel.getLayout();
    dumpColumnSpecs(layout);
    dumpRowSpecs(layout);
    System.out.println();
    dumpColumnGroups(layout);
    dumpRowGroups(layout);
View Full Code Here

    System.out.println("COMPONENT CONSTRAINTS");
    if (!(layoutPanel.getLayout() instanceof FormLayout)) {
      System.out.println("The container's layout is not a FormLayout.");
      return;
    }
    FormLayout layout = (FormLayout) layoutPanel.getLayout();
    int childCount = layoutPanel.getWidgetCount();
    for (int i = 0; i < childCount; i++) {
      Widget child = layoutPanel.getWidget(i);
      CellConstraints cc = layout.getConstraints(child);
      String ccString = cc == null ? "no constraints"
          : cc.toShortString(layout);
      System.out.print(ccString);
      System.out.print("; ");
      String childType = child.getClass().getName();
View Full Code Here

TOP

Related Classes of org.gwt.mosaic.forms.client.layout.FormLayout$Measure

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.