1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.core.api.uif; |
17 | |
|
18 | |
import org.kuali.rice.core.api.CoreConstants; |
19 | |
import org.w3c.dom.Element; |
20 | |
|
21 | |
import javax.xml.bind.annotation.XmlAccessType; |
22 | |
import javax.xml.bind.annotation.XmlAccessorType; |
23 | |
import javax.xml.bind.annotation.XmlAnyElement; |
24 | |
import javax.xml.bind.annotation.XmlRootElement; |
25 | |
import javax.xml.bind.annotation.XmlType; |
26 | |
import java.util.Collection; |
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
@XmlRootElement(name = RemotableDatepicker.Constants.ROOT_ELEMENT_NAME) |
32 | |
@XmlAccessorType(XmlAccessType.NONE) |
33 | |
@XmlType(name = RemotableDatepicker.Constants.TYPE_NAME, propOrder = { |
34 | |
CoreConstants.CommonElements.FUTURE_ELEMENTS }) |
35 | 2 | public final class RemotableDatepicker extends RemotableAbstractWidget { |
36 | |
|
37 | 1 | private static final RemotableDatepicker INSTANCE = new RemotableDatepicker(Builder.INSTANCE); |
38 | |
|
39 | 3 | @SuppressWarnings("unused") |
40 | |
@XmlAnyElement |
41 | |
private final Collection<Element> _futureElements = null; |
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
@SuppressWarnings("unused") |
47 | |
private RemotableDatepicker() { |
48 | 2 | super(); |
49 | 2 | } |
50 | |
|
51 | |
private RemotableDatepicker(Builder b) { |
52 | 1 | super(); |
53 | 1 | } |
54 | |
|
55 | 3 | public static final class Builder extends RemotableAbstractWidget.Builder { |
56 | |
|
57 | 1 | private static final Builder INSTANCE = new Builder(); |
58 | |
|
59 | |
private Builder() { |
60 | 1 | super(); |
61 | 1 | } |
62 | |
|
63 | |
|
64 | |
public static Builder create() { |
65 | 2 | return INSTANCE; |
66 | |
} |
67 | |
|
68 | |
@Override |
69 | |
public RemotableDatepicker build() { |
70 | 2 | return RemotableDatepicker.INSTANCE; |
71 | |
} |
72 | |
} |
73 | |
|
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | 0 | static final class Constants { |
79 | |
static final String TYPE_NAME = "DatepickerType"; |
80 | |
final static String ROOT_ELEMENT_NAME = "datepicker"; |
81 | |
} |
82 | |
} |