-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathResources.java
More file actions
106 lines (73 loc) · 3.13 KB
/
Resources.java
File metadata and controls
106 lines (73 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// Copyright 2019 doubleSlash Net Business GmbH
//
// This file is part of KeepTime.
// KeepTime is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// 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.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package de.doubleslash.keeptime.common;
import java.net.URL;
public class Resources {
private Resources() {
throw new IllegalStateException("Utility class");
}
public enum RESOURCE {
/** FONTS **/
FONT_BOLD("/font/OpenSans-Bold.ttf"),
FONT_SEMI_BOLD("/font/OpenSans-SemiBold.ttf"),
FONT_REGULAR("/font/OpenSans-Regular.ttf"),
/** LAYOUTS **/
// main
FXML_VIEW_LAYOUT("/layouts/ViewLayout.fxml"),
FXML_PROJECT_LAYOUT("/layouts/ProjectDetailLayout.fxml"),
FXML_SETTINGS("/layouts/settings.fxml"),
FXML_VIEW_POPUP_LAYOUT("/layouts/ViewLayoutPopup.fxml"),
FXML_REPORT("/layouts/report.fxml"),
FXML_MANAGE_PROJECT("/layouts/manage-project.fxml"),
FXML_MANAGE_WORK("/layouts/manage-work.fxml"),
FXML_EXT_PROJECT_MAPPING("/layouts/externalProjectMapping.fxml"),
FXML_EXT_PROJECT_SYNC("/layouts/externalProjectSync.fxml"),
SVG_CALENDAR_DAYS_ICON("/svgs/calendar-days.svg"),
SVG_CLOSE_ICON("/svgs/xmark.svg"),
SVG_SETTINGS_ICON("/svgs/gear.svg"),
SVG_MINUS_ICON("/svgs/minus.svg"),
SVG_TRASH_ICON("/svgs/trash-can.svg"),
SVG_PENCIL_ICON("/svgs/pencil.svg"),
SVG_CLIPBOARD_ICON("/svgs/clipboard.svg"),
SVG_BUG_ICON("/svgs/bug.svg"),
SVG_LAYOUT_ICON("/svgs/border-all.svg"),
SVG_ABOUT_ICON("/svgs/info.svg"),
SVG_COLOR_ICON("/svgs/palette.svg"),
SVG_IMPORT_EXPORT_ICON("/svgs/sort.svg"),
SVG_LICENSES_ICON("/svgs/closed-captioning.svg"),
SVG_MULTIPLE_CLIPBOARD_ICON("/svgs/copy.svg"),
SVG_SPINNER_SOLID("/svgs/spinner-solid.svg"),
SVG_XMARK_SOLID("/svgs/xmark-solid.svg"),
SVG_THUMBS_UP_SOLID("/svgs/thumbs-up-solid.svg"),
SVG_GLOBE_ICON("/svgs/globe-solid.svg"),
SVG_ROTATE_ICON("/svgs/rotate-solid.svg"),
SVG_PLUS_SOLID("/svgs/plus-solid.svg"),
ICON_MAIN("/icons/icon.png"),
/** CSS **/
CSS_DS_STYLE("/css/dsStyles.css")
;
String resourceLocation;
private RESOURCE(final String resourceLocation) {
this.resourceLocation = resourceLocation;
}
public String getResourceLocation() {
return resourceLocation;
}
}
public static URL getResource(final RESOURCE resource) {
return Resources.class.getResource(resource.getResourceLocation());
}
}