PageRenderTime 48ms CodeModel.GetById 42ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/main/java/com/googlecode/struts2yuiplugin/views/velocity/components/DatePickerDirective.java

http://struts2yuiplugin.googlecode.com/
Java | 26 lines | 17 code | 6 blank | 3 comment | 0 complexity | b24a9e8cb8bf9ffbaece72f005c61ae3 MD5 | raw file
 1package com.googlecode.struts2yuiplugin.views.velocity.components;
 2
 3import javax.servlet.http.HttpServletRequest;
 4import javax.servlet.http.HttpServletResponse;
 5
 6import org.apache.struts2.components.Component;
 7
 8import com.googlecode.struts2yuiplugin.components.DatePicker;
 9import com.opensymphony.xwork2.util.ValueStack;
10
11/**
12 * @see DateTimePicker
13 */
14public class DatePickerDirective extends YUIAbstractDirective {
15
16    @Override
17    protected Component getBean(ValueStack stack, HttpServletRequest req,
18        HttpServletResponse res) {
19        return new DatePicker(stack, req, res);
20    }
21
22    @Override
23    public String getBeanName() {
24        return "datepicker";
25    }
26}