Examples of LayoutManager


Examples of org.apache.myfaces.tobago.layout.LayoutManager

        // recursion
        if (cell instanceof OriginCell) {
          OriginCell origin = (OriginCell) cell;
          LayoutComponent component = cell.getComponent();
          if (component instanceof LayoutContainer && component.isRendered()) {
            LayoutManager layoutManager = ((LayoutContainer) component).getLayoutManager();
            // TODO: may be improved
            boolean childAuto = origin.getSpan(orientation) == 1 && heads[i].getToken() instanceof AutoLayoutToken;
            layoutManager.fixRelativeInsideAuto(orientation, childAuto);
          }
        }
      }
      if (neitherRendered && !isRigid()) {
        heads[i].setRendered(false);
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.LayoutManager

  }

  public static LayoutManager createAndInitLayout(
      FacesContext facesContext, String componentType, String rendererType, UIComponent parent) {

    LayoutManager layoutManager = (LayoutManager) CreateComponentUtils.createComponent(
        facesContext, componentType, rendererType, facesContext.getViewRoot().createUniqueId());
    if (layoutManager instanceof OnComponentCreated) {
      ((OnComponentCreated) layoutManager).onComponentCreated(facesContext, parent);
    }
    if (layoutManager instanceof OnComponentPopulated) {
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.LayoutManager

    final boolean trace = LOG.isTraceEnabled();
    if (debug) {
      begin = System.nanoTime();
    }

    LayoutManager layoutManager = container.getLayoutManager();
    layoutManager.init();
    if (trace) {
      log("after init", true);
    }
    layoutManager.fixRelativeInsideAuto(Orientation.VERTICAL, false);
    if (trace) {
      log("after fixRelativeInsideAuto vertical", true);
    }
    layoutManager.fixRelativeInsideAuto(Orientation.HORIZONTAL, false);
    if (trace) {
      log("after fixRelativeInsideAuto horizontal", true);
    }
    layoutManager.preProcessing(Orientation.VERTICAL);
    if (trace) {
      log("after preProcessing vertical", true);
    }
    layoutManager.preProcessing(Orientation.HORIZONTAL);
    if (trace) {
      log("after preProcessing horizontal", true);
    }
    layoutManager.mainProcessing(Orientation.VERTICAL);
    if (trace) {
      log("after mainProcessing vertical", true);
    }
    layoutManager.mainProcessing(Orientation.HORIZONTAL);
    if (trace) {
      log("after mainProcessing horizontal", true);
    }
    layoutManager.postProcessing(Orientation.VERTICAL);
    if (trace) {
      log("after postProcessing vertical", true);
    }
    layoutManager.postProcessing(Orientation.HORIZONTAL);
    if (trace) {
      log("after postProcessing horizontal", true);
    }

    if (debug) {
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.LayoutManager

      buffer.append(", ");
      buffer.append(((LayoutBase) component).getCurrentHeight());
      buffer.append(")");
    }
    if (component instanceof LayoutContainer) {
      LayoutManager layoutManager = ((LayoutContainer) component).getLayoutManager();
      if (layoutManager instanceof AbstractUIGridLayout) {
        buffer.append("\n");
        buffer.append(StringUtils.repeat("  ", depth + 4));
        buffer.append("layout: ");
        buffer.append(((AbstractUIGridLayout) layoutManager).toString(depth));
View Full Code Here

Examples of org.apache.myfaces.tobago.layout.LayoutManager

        // recursion
        if (cell instanceof OriginCell) {
          OriginCell origin = (OriginCell) cell;
          LayoutComponent component = cell.getComponent();
          if (component instanceof LayoutContainer && component.isRendered()) {
            LayoutManager layoutManager = ((LayoutContainer) component).getLayoutManager();
            // TODO: may be improved
            boolean childAuto = origin.getSpan(orientation) == 1 && heads[i].getToken() instanceof AutoLayoutToken;
            layoutManager.fixRelativeInsideAuto(orientation, childAuto);
          }
        }
      }
      if (neitherRendered && !isRigid()) {
        heads[i].setRendered(false);
View Full Code Here

Examples of org.apache.myfaces.tobago.renderkit.LayoutManager

  private static final Log LOG = LogFactory.getLog(FoRendererBase.class);

  private LayoutManager getLayoutManager(
      FacesContext facesContext,
      UIComponent component) {
    LayoutManager layoutManager = null;

    Renderer renderer = ComponentUtil.getRenderer(facesContext, component);
    if (renderer instanceof LayoutManager) {
      return  (LayoutManager) renderer;
    }
View Full Code Here

Examples of org.eclipse.draw2d.LayoutManager

        if (editPart.getParent() != null) {
            IFigure figure = ((GraphicalEditPart) editPart.getParent())
                    .getFigure();
            if (figure instanceof CSSFigure) {
                CSSFigure cssFigure = (CSSFigure) figure;
                LayoutManager layoutManager = cssFigure.getLayoutManager();
                if (layoutManager instanceof CSSTableLayout2) {
                    CSSTableLayout2 tableLayout = (CSSTableLayout2) layoutManager;
                    bounds.y = tableLayout.getHSpacing();
                    bounds.height = figure.getClientArea().height
                            - tableLayout.getHSpacing() * 2;
 
View Full Code Here

Examples of org.flexdock.docking.state.LayoutManager

     * @see #setLayoutManager(LayoutManager)
     * @see LayoutManager#store()
     */
    public static boolean storeLayoutModel() throws IOException,
        PersistenceException {
        LayoutManager mgr = getLayoutManager();
        return mgr == null ? false : mgr.store();
    }
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.