⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 skinlfresolver.java

📁 定要上载质量高而定要上载质量高而定要上载质量高而定要上载质量高而定要上载质量高而
💻 JAVA
字号:
/*
 * Created on Feb 27, 2005
 */
package org.flexdock.plaf.mappings;

import javax.swing.UIManager;

import com.l2fprod.gui.plaf.skin.Skin;
import com.l2fprod.gui.plaf.skin.SkinLookAndFeel;

/**
 * @author Christopher Butler
 */
public class SkinLFResolver extends RefResolver {
	
	public String getRef(String plaf) {
		Skin skin = SkinLookAndFeel.getSkin();
		String skinName = skin==null? null: skin.getClass().getName();
		
		// redirect to the mapping for the skin, instead of the plaf itself
		String view = PlafMappingFactory.getPlafReference(skinName);
		return view==null? getDefaultRef(): view;
	}
	
	public String getDefaultRef() {
		String systemPlaf = UIManager.getSystemLookAndFeelClassName();
		return PlafMappingFactory.getPlafReference(systemPlaf);
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -