@@ -0,0 +1,1366 @@
+/*%0A * Copyright 2000-2014 Vaadin Ltd.%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you may not%0A * use this file except in compliance with the License. You may obtain a copy of%0A * the License at%0A * %0A * http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0A * License for the specific language governing permissions and limitations under%0A * the License.%0A */%0Apackage com.vaadin.tests.layouts;%0A%0Aimport com.vaadin.server.VaadinRequest;%0Aimport com.vaadin.tests.components.AbstractTestUIWithLog;%0Aimport com.vaadin.ui.Button;%0Aimport com.vaadin.ui.HorizontalLayout;%0Aimport com.vaadin.ui.Label;%0A%0Apublic class HorizontalLayoutWithLabelAndButton extends AbstractTestUIWithLog %7B%0A%0A    @Override%0A    protected void setup(VaadinRequest request) %7B%0A        HorizontalLayout hl = new HorizontalLayout();%0A        hl.setSpacing(true);%0A        hl.setWidth(%22100%25%22);%0A        Label l = new Label();%0A        l.setCaption(%22POTUS Database%22);%0A        l.setSizeUndefined();%0A%0A        Button b = new Button(%22Add new%22);%0A        hl.addComponents(l, b);%0A        b.setStyleName(%22primary%22);%0A        hl.setExpandRatio(b, 1);%0A%0A        addComponent(hl);%0A    %7D%0A%0A%7D%0A

Test UI for #15321