1 | /* |
---|
2 | * Copyright (C) 2014 CLARIN |
---|
3 | * |
---|
4 | * This program is free software: you can redistribute it and/or modify |
---|
5 | * it under the terms of the GNU General Public License as published by |
---|
6 | * the Free Software Foundation, either version 3 of the License, or |
---|
7 | * (at your option) any later version. |
---|
8 | * |
---|
9 | * This program is distributed in the hope that it will be useful, |
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | * GNU General Public License for more details. |
---|
13 | * |
---|
14 | * You should have received a copy of the GNU General Public License |
---|
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
16 | */ |
---|
17 | package eu.clarin.cmdi.vlo; |
---|
18 | |
---|
19 | import eu.clarin.cmdi.vlo.wicket.pages.RecordPage; |
---|
20 | import eu.clarin.cmdi.vlo.wicket.pages.VloBasePage; |
---|
21 | import org.apache.wicket.request.resource.CssResourceReference; |
---|
22 | import org.apache.wicket.request.resource.JavaScriptResourceReference; |
---|
23 | |
---|
24 | /** |
---|
25 | * |
---|
26 | * @author twagoo |
---|
27 | */ |
---|
28 | public final class JavaScriptResources { |
---|
29 | |
---|
30 | private final static JavaScriptResourceReference VLO_FRONT = new JavaScriptResourceReference(VloBasePage.class, "vlo-front.js"); |
---|
31 | private final static JavaScriptResourceReference VLO_HEADER = new JavaScriptResourceReference(VloBasePage.class, "vlo-header.js"); |
---|
32 | private final static JavaScriptResourceReference VLO_SYNTAX_HELP = new JavaScriptResourceReference(VloBasePage.class, "vlo-syntax-help.js"); |
---|
33 | private final static JavaScriptResourceReference VLO_FACETS = new JavaScriptResourceReference(VloBasePage.class, "vlo-facets.js"); |
---|
34 | private final static JavaScriptResourceReference JQUERY_UI = new JavaScriptResourceReference(VloBasePage.class, "jquery-ui-1.11.4.custom/jquery-ui.min.js"); |
---|
35 | private final static CssResourceReference JQUERY_UI_CSS = new CssResourceReference(VloBasePage.class, "jquery-ui-1.11.4.custom/jquery-ui.min.css"); |
---|
36 | private final static JavaScriptResourceReference JQUERY_WATERMARK = new JavaScriptResourceReference(VloBasePage.class, "jquery.watermark-3.1.4/jquery.watermark.min.js"); |
---|
37 | private final static JavaScriptResourceReference HIGHLIGHT = new JavaScriptResourceReference(RecordPage.class, "searchhi.js"); |
---|
38 | |
---|
39 | public static JavaScriptResourceReference getVloFrontJS() { |
---|
40 | return VLO_FRONT; |
---|
41 | } |
---|
42 | |
---|
43 | public static JavaScriptResourceReference getVloHeaderJS() { |
---|
44 | return VLO_HEADER; |
---|
45 | } |
---|
46 | public static JavaScriptResourceReference getVloFacetsJS() { |
---|
47 | return VLO_FACETS; |
---|
48 | } |
---|
49 | |
---|
50 | public static JavaScriptResourceReference getJQueryUIJS() { |
---|
51 | return JQUERY_UI; |
---|
52 | } |
---|
53 | public static CssResourceReference getJQueryUICSS() { |
---|
54 | return JQUERY_UI_CSS; |
---|
55 | } |
---|
56 | |
---|
57 | public static JavaScriptResourceReference getJQueryWatermarkJS() { |
---|
58 | return JQUERY_WATERMARK; |
---|
59 | } |
---|
60 | |
---|
61 | public static JavaScriptResourceReference getHighlightJS() { |
---|
62 | return HIGHLIGHT; |
---|
63 | } |
---|
64 | |
---|
65 | public static JavaScriptResourceReference getSyntaxHelpJS() { |
---|
66 | return VLO_SYNTAX_HELP; |
---|
67 | } |
---|
68 | |
---|
69 | } |
---|