mystyle-java-fx-tools/src/main/java/com/zhangmeng/tools/utils/ResourcesUtils.java

81 lines
1.6 KiB
Java
Raw Normal View History

2023-02-15 09:08:22 +00:00
package com.zhangmeng.tools.utils;
import java.net.URL;
2023-02-16 01:21:09 +00:00
/**
* @author :
* @version : 1.0
* @date : 2023-02-16 09:19
*/
2023-02-15 09:08:22 +00:00
public class ResourcesUtils {
public static final String base_fxml = "/fxml/";
public static URL getResource(String name){
String path = base_fxml + name + ".fxml";
return ResourcesUtils.class.getResource(path);
}
public enum Menu{
Md5("md5加密",0),
SpringSecurity("spring加密",1);
2023-02-15 09:08:22 +00:00
Menu(String title, int index) {
this.title = title;
this.index = index;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
private String title;
private int index;
}
2023-02-16 01:21:09 +00:00
public enum Player{
Video("视频播放",0),
Music("音乐播放",1),
VipParser("vip解析",2);
Player(String title, int index) {
this.title = title;
this.index = index;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
private String title;
private int index;
}
2023-02-15 09:08:22 +00:00
}