PageRenderTime 41ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/struts2-jquery-richtext-plugin/src/main/java/com/jgeppert/struts2/jquery/richtext/views/velocity/components/CkeditorDirective.java

http://struts2-jquery.googlecode.com/
Java | 51 lines | 20 code | 7 blank | 24 comment | 0 complexity | 36cecf3c3c02269060608e2aa9478529 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. package com.jgeppert.struts2.jquery.richtext.views.velocity.components;
  20. import javax.servlet.http.HttpServletRequest;
  21. import javax.servlet.http.HttpServletResponse;
  22. import org.apache.struts2.components.Component;
  23. import com.jgeppert.struts2.jquery.richtext.components.Ckeditor;
  24. import com.opensymphony.xwork2.util.ValueStack;
  25. /**
  26. *
  27. * @see Ckeditor
  28. * @author <a href="http://www.jgeppert.com">Johannes Geppert</a>
  29. *
  30. */
  31. public class CkeditorDirective extends JqueryRichtextAbstractDirective {
  32. public String getBeanName()
  33. {
  34. return "ckeditor";
  35. }
  36. protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res)
  37. {
  38. return new Ckeditor(stack, req, res);
  39. }
  40. public int getType()
  41. {
  42. return BLOCK;
  43. }
  44. }