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.

Select.java 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright 2011 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.ui;
  17. import java.util.Collection;
  18. import com.vaadin.data.Container;
  19. /**
  20. * <p>
  21. * A class representing a selection of items the user has selected in a UI. The
  22. * set of choices is presented as a set of {@link com.vaadin.data.Item}s in a
  23. * {@link com.vaadin.data.Container}.
  24. * </p>
  25. *
  26. * <p>
  27. * A <code>Select</code> component may be in single- or multiselect mode.
  28. * Multiselect mode means that more than one item can be selected
  29. * simultaneously.
  30. * </p>
  31. *
  32. * @author Vaadin Ltd.
  33. * @since 3.0
  34. * @deprecated As of 7.0. Use {@link ComboBox} instead.
  35. */
  36. @Deprecated
  37. public class Select extends ComboBox {
  38. /* Component methods */
  39. public Select() {
  40. super();
  41. }
  42. public Select(String caption, Collection<?> options) {
  43. super(caption, options);
  44. }
  45. public Select(String caption, Container dataSource) {
  46. super(caption, dataSource);
  47. }
  48. public Select(String caption) {
  49. super(caption);
  50. }
  51. }