/* * MIT License * * Copyright (c) 2023 芊芊墨客 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * */ package com.zhangmeng.tools.utils; import java.net.URL; /** * @author : 芊芊墨客 * @version : 1.0 * @date : 2023-02-16 09:19 */ 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; } 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; } public enum SmallTools{ Hex_16("16进制(Hex)",0), Unicode("Unicode和字符串转换",1), JWT_WEB("json-web-token",2), COLOR_CHOOSE("颜色选择",3), Qr_CODE("生成二维码",4), ; SmallTools(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; } public enum CodecTools{ Base62("Base62编码解码",0), Base64("Base64编码解码",1), Base32("Base32编码解码",2), MorseCoder ("摩尔斯电码",3), ; CodecTools(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; } public enum SqlTools{ MySql_Code_Generate("mysql 代码生成",0), ; SqlTools(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; } }