Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

HasDataSource.java 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright 2000-2014 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.tokka.connectors.data;
  17. import com.vaadin.client.data.DataSource;
  18. import elemental.json.JsonObject;
  19. /**
  20. * Marker interface for Connectors that have a {@link DataSource}.
  21. */
  22. public interface HasDataSource {
  23. /**
  24. * Sets the data source for this Connector.
  25. *
  26. * @param dataSource
  27. * new data source
  28. */
  29. public void setDataSource(DataSource<JsonObject> dataSource);
  30. /**
  31. * Gets the current data source for this Connector.
  32. *
  33. * @return data source
  34. */
  35. DataSource<JsonObject> getDataSource();
  36. }