/src/cocktail/nativeElement/abstract/AbstractNativeElementCreator.hx

http://github.com/silexlabs/Cocktail · Haxe · 43 lines · 13 code · 6 blank · 24 comment · 0 complexity · fd8a87d341189a50cfcc69d2ee0cfe1c MD5 · raw file

  1. /*This file is part of Silex - see http://projects.silexlabs.org/?/silex
  2. Silex is Š 2010-2011 Silex Labs and is released under the GPL License:
  3. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
  4. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  5. To read the license please visit http://www.gnu.org/copyleft/gpl.html
  6. */
  7. package cocktail.nativeElement.abstract;
  8. import cocktail.nativeElement.NativeElementData;
  9. import cocktail.nativeElement.NativeElement;
  10. /**
  11. * This is a base class for the native element
  12. * creator implementation. It creates a native element
  13. * and returns a reference to it
  14. *
  15. * @author Yannick DOMINGUEZ
  16. */
  17. class AbstractNativeElementCreator
  18. {
  19. /**
  20. * class constructor
  21. */
  22. public function new()
  23. {
  24. }
  25. /**
  26. * Instantiate a native element and returns a reference to it. Implemented in inheriting classes
  27. * @param nativeElementType the type of element to create (graphic, text...)
  28. */
  29. public function createNativeElement(nativeElementType:NativeElementTypeValue):NativeElement
  30. {
  31. return null;
  32. }
  33. }