Examples of LayoutData


Examples of com.extjs.gxt.ui.client.widget.layout.LayoutData

      component.addStyleName(extraStyle);
    }
    if (renderHidden && component != activeItem) {
      component.setVisible(false);
    }
    LayoutData data = component.getLayoutData();
    if (data != null && data instanceof MarginData) {
      MarginData ld = (MarginData) data;
      applyMargins(component.el(), ld.getMargins());
    }
  }
View Full Code Here

Examples of nextapp.echo2.app.LayoutData

            Element propertiesElement = DomUtil.getChildElementByTagName(layoutDataElement, "properties");
            Style propertyStyle = propertyLoader.createStyle(propertiesElement, type);
           
            // Instantiate LayoutData instance.
            Class propertyClass = Class.forName(type, true, classLoader);
            LayoutData layoutData = (LayoutData) propertyClass.newInstance();
           
            // Create introspector to analyze LayoutData class.
            ComponentIntrospector ci = ComponentIntrospector.forName(type, classLoader);
           
            // Set property values of LayoutData instance.
View Full Code Here

Examples of nextapp.echo2.app.LayoutData

     * @return the layout data
     * @throws java.lang.RuntimeException if the the provided
     *         <code>LayoutData</code> is not a <code>GridLayoutData</code>
     */
    private GridLayoutData getLayoutData(Component child) {
        LayoutData layoutData = (LayoutData) child.getRenderProperty(Component.PROPERTY_LAYOUT_DATA);
        if (layoutData == null) {
            return null;
        } else if (layoutData instanceof GridLayoutData) {
            return (GridLayoutData) layoutData;
        } else {
            throw new RuntimeException("Invalid LayoutData for Grid Child: " + layoutData.getClass().getName());
        }
    }
View Full Code Here

Examples of nextapp.echo2.app.LayoutData

        }

        Cell[] cells = new Cell[children.length];

        for (int i = 0; i < children.length; ++i) {
            LayoutData layoutData = (LayoutData) children[i].getRenderProperty(Grid.PROPERTY_LAYOUT_DATA);
            if (layoutData instanceof GridLayoutData) {
                GridLayoutData gcLayoutData = (GridLayoutData) layoutData;
                int xSpan = horizontalOrientation ? gcLayoutData.getColumnSpan() : gcLayoutData.getRowSpan();
                int ySpan = horizontalOrientation ? gcLayoutData.getRowSpan() : gcLayoutData.getColumnSpan();
                cells[i] = new Cell(children[i], i, xSpan, ySpan);
View Full Code Here

Examples of nextapp.echo2.app.LayoutData

     * @return the layout data
     * @throws java.lang.RuntimeException if the the provided
     *         <code>LayoutData</code> is not a <code>TableLayoutData</code>
     */
    private TableLayoutData getLayoutData(Component child) {
        LayoutData layoutData = (LayoutData) child.getRenderProperty(Component.PROPERTY_LAYOUT_DATA);
        if (layoutData == null) {
            return null;
        } else if (layoutData instanceof TableLayoutData) {
            return (TableLayoutData) layoutData;
        } else {
            throw new RuntimeException("Invalid LayoutData for Table Child: " + layoutData.getClass().getName());
        }
    }
View Full Code Here

Examples of nextapp.echo2.app.LayoutData

     *
     * @param component the child pane component
     * @return the background image
     */
    private ImageReference getPaneBackgroundImage(Component component) {
        LayoutData layoutData = (LayoutData) component.getRenderProperty(SplitPane.PROPERTY_LAYOUT_DATA);
        if (!(layoutData instanceof SplitPaneLayoutData)) {
            return null;
        }
        FillImage backgroundImage = ((SplitPaneLayoutData) layoutData).getBackgroundImage();
        if (backgroundImage == null) {
View Full Code Here

Examples of nextapp.echo2.app.LayoutData

     * @return the layout data
     * @throws java.lang.RuntimeException if the the provided
     *         <code>LayoutData</code> is not a <code>ColumnLayoutData</code>
     */
    private ColumnLayoutData getLayoutData(Component child) {
        LayoutData layoutData = (LayoutData) child.getRenderProperty(Component.PROPERTY_LAYOUT_DATA);
        if (layoutData == null) {
            return null;
        } else if (layoutData instanceof ColumnLayoutData) {
            return (ColumnLayoutData) layoutData;
        } else {
            throw new RuntimeException("Invalid LayoutData for Column Child: " + layoutData.getClass().getName());
        }
    }
View Full Code Here

Examples of nextapp.echo2.app.LayoutData

     * @return the layout data
     * @throws java.lang.RuntimeException if the the provided
     *         <code>LayoutData</code> is not a <code>RowLayoutData</code>
     */
    private RowLayoutData getLayoutData(Component child) {
        LayoutData layoutData = (LayoutData) child.getRenderProperty(Component.PROPERTY_LAYOUT_DATA);
        if (layoutData == null) {
            return null;
        } else if (layoutData instanceof RowLayoutData) {
            return (RowLayoutData) layoutData;
        } else {
            throw new RuntimeException("Invalid LayoutData for Row Child: " + layoutData.getClass().getName());
        }
    }
View Full Code Here

Examples of org.gwt.mosaic.ui.client.layout.LayoutData

    content.setVisible(visible);

    if (visible && oldIndex >= 0) {
      Object layoutDataObject = content.getLayoutData();
      if (layoutDataObject instanceof LayoutData) {
        LayoutData layoutData = (LayoutData) layoutDataObject;
        if (index > oldIndex) {
          layoutData.setSourceTop(content.getOffsetHeight());
        } else {
          layoutData.setSourceTop(-content.getOffsetHeight());
        }
      }
    }
  }
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.