You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FormLayout.java 958B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. @ITMillApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.ui;
  5. import com.vaadin.terminal.gwt.client.ui.VFormLayout;
  6. /**
  7. * FormLayout is used by {@link Form} to layout fields. It may also be used
  8. * separately without {@link Form}.
  9. *
  10. * FormLayout is a close relative to vertical {@link OrderedLayout}, but in
  11. * FormLayout caption is rendered on left side of component. Required and
  12. * validation indicators are between captions and fields.
  13. *
  14. * FormLayout does not currently support some advanced methods from
  15. * OrderedLayout like setExpandRatio and setComponentAlignment.
  16. *
  17. * FormLayout by default has component spacing on. Also margin top and margin
  18. * bottom are by default on.
  19. *
  20. */
  21. @SuppressWarnings({ "deprecation", "serial" })
  22. @ClientWidget(VFormLayout.class)
  23. public class FormLayout extends OrderedLayout {
  24. public FormLayout() {
  25. super();
  26. setSpacing(true);
  27. setMargin(true, false, true, false);
  28. }
  29. }