Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright 2000-2021 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.client.ui;
  17. import com.vaadin.client.StyleConstants;
  18. import com.vaadin.client.ui.orderedlayout.VAbstractOrderedLayout;
  19. /**
  20. * Represents a layout where the children is ordered vertically.
  21. */
  22. public class VVerticalLayout extends VAbstractOrderedLayout {
  23. /** Default classname for this widget. */
  24. public static final String CLASSNAME = "v-verticallayout";
  25. /**
  26. * Default constructor.
  27. */
  28. public VVerticalLayout() {
  29. super(true);
  30. setStyleName(CLASSNAME);
  31. }
  32. @Override
  33. public void setStyleName(String style) {
  34. super.setStyleName(style);
  35. addStyleName(StyleConstants.UI_LAYOUT);
  36. addStyleName("v-vertical");
  37. }
  38. }