44 lines
891 B
Java
44 lines
891 B
Java
|
|
package com.zhangmeng.tools.utils;
|
||
|
|
|
||
|
|
import java.net.URL;
|
||
|
|
|
||
|
|
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);
|
||
|
|
|
||
|
|
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;
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|