Package com.vaadin.terminal.gwt.client

Examples of com.vaadin.terminal.gwt.client.RenderSpace


    public RenderSpace getAllocatedSpace(Widget child) {
        com.google.gwt.dom.client.Element pe = child.getElement()
                .getParentElement();

        FloatSize extra = locationToExtraSize.get(getLocation(child));
        return new RenderSpace(pe.getOffsetWidth() - (int) extra.getWidth(),
                pe.getOffsetHeight() - (int) extra.getHeight(),
                Util.mayHaveScrollBars(pe));
    }
View Full Code Here


            @Override
            public RenderSpace getAllocatedSpace(Widget child) {
                if (widgetInHierarchyColumn == child) {
                    final int hierarchyAndIconWidth = getHierarchyAndIconWidth();
                    final RenderSpace allocatedSpace = super
                            .getAllocatedSpace(child);
                    return new RenderSpace() {
                        @Override
                        public int getWidth() {
                            return allocatedSpace.getWidth()
                                    - hierarchyAndIconWidth;
                        }

                        @Override
                        public int getHeight() {
                            return allocatedSpace.getHeight();
                        }

                    };
                }
                return super.getAllocatedSpace(child);
View Full Code Here

                        // columns ->
                        // if one component is relative width so are others)
                        w = headerCell.getOffsetWidth() - getCellExtraWidth();
                    }
                }
                return new RenderSpace(w, 0) {
                    @Override
                    public int getHeight() {
                        return (int) getRowHeight();
                    }
                };
View Full Code Here

        public boolean hasRelativeHeight() {
            return relHeight;
        }

        public RenderSpace getAllocatedSpace() {
            return new RenderSpace(getAvailableWidth()
                    - cc.getCaptionWidthAfterComponent(), getAvailableHeight()
                    - cc.getCaptionHeightAboveComponent());
        }
View Full Code Here

                        // columns ->
                        // if one component is relative width so are others)
                        w = headerCell.getOffsetWidth() - getCellExtraWidth();
                    }
                }
                return new RenderSpace(w, 0) {
                    @Override
                    public int getHeight() {
                        return (int) getRowHeight();
                    }
                };
View Full Code Here

        }

        // ApplicationConnection.getConsole().log(
        // "allocatedSpace for " + Util.getSimpleName(child) + ": "
        // + width + "," + height);
        RenderSpace space = new RenderSpace(width, height);
        return space;
    }
View Full Code Here

    public RenderSpace getAllocatedSpace(Widget child) {
        com.google.gwt.dom.client.Element pe = child.getElement()
                .getParentElement();

        FloatSize extra = locationToExtraSize.get(getLocation(child));
        return new RenderSpace(pe.getOffsetWidth() - (int) extra.getWidth(),
                pe.getOffsetHeight() - (int) extra.getHeight(),
                Util.mayHaveScrollBars(pe));
    }
View Full Code Here

        } else {
            // top defined or both undefined, available space == canvas - top
            h = canvas.getOffsetHeight() - wrapper.getElement().getOffsetTop();
        }

        return new RenderSpace(w, h);
    }
View Full Code Here

        if (!this.width.equals("")) {
            int availableWidth = getOffsetWidth();
            width = table.getAllocatedWidth(child, availableWidth);
        }

        return new RenderSpace(width, height, false);
    }
View Full Code Here

            if (h < 0) {
                h = 0;
            }
        }

        return new RenderSpace(w, h, true);
    }
View Full Code Here

TOP

Related Classes of com.vaadin.terminal.gwt.client.RenderSpace

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.