All Downloads are FREE. Search and download functionalities are using the official Maven repository.

freeseawind.lf.basic.filechooser.LuckFileChooserUIBundle Maven / Gradle / Ivy

The newest version!
package freeseawind.lf.basic.filechooser;

import javax.swing.UIDefaults;
import javax.swing.UIManager;

import freeseawind.lf.cfg.LuckResourceBundle;

/**
 * 

FileChooserUI资源绑定类

* *

FileChooserUI resource bundle class.

* * @author freeseawind@github * @version 1.0 * */ public class LuckFileChooserUIBundle extends LuckResourceBundle { /** *

返回上级目录按钮图片属性key

* *

up folder button icon properties.

*/ public static final String UPFOLDERICON = "FileChooser.upFolderIcon"; /** *

创建文件夹按钮图片属性key

* *

create folder button icon properties.

*/ public static final String NEWFOLDERICON = "FileChooser.newFolderIcon"; /** *

返回home目录按钮图片属性key

* *

Return to the home directory button icon properties.

*/ public static final String HOMEFOLDERICON = "FileChooser.homeFolderIcon"; /** *

查看文件列表按钮图片属性key

* *

list view button icon properties.

*/ public static final String LISTVIEWICON = "FileChooser.listViewIcon"; /** *

查看文件详情按钮图片属性key

* *

view details button icon properties.

*/ public static final String DETAILSVIEWICON = "FileChooser.detailsViewIcon"; /** *

文件夹按钮图标属性key

* *

folder button icon properties.

*/ public static final String DIRECTORYICON = "FileView.directoryIcon"; /** *

计算机按钮图标属性key

* *

Computer button icon properties.

*/ public static final String COMPUTERICON = "FileView.computerIcon"; /** *

文件按钮图标属性key

* *

file button icon properties.

*/ public static final String FILEICON = "FileView.fileIcon"; /** *

硬盘按钮图标属性key

* *

HardDrive button icon properties.

*/ public static final String HARDDRIVE = "FileView.hardDriveIcon"; /** *

软盘按钮图标属性key

* *

FloppyDrive button icon properties.

*/ public static final String FLOPPYDRIVE = "FileView.floppyDriveIcon"; /** *

FileChooser遍历文件视图风格属性key, 默认值true

* *

List view windows style properties, default value true.

*/ public static final String LISTVIEWWINDOWSSTYLE = "FileChooser.listViewWindowsStyle"; @Override protected void loadImages(UIDefaults table) { UIManager.put(UPFOLDERICON, getIconRes("filechooser/up_folder.png")); UIManager.put(NEWFOLDERICON, getIconRes("filechooser/new_folder.png")); UIManager.put(HOMEFOLDERICON, getIconRes("filechooser/home.png")); UIManager.put(LISTVIEWICON, getIconRes("filechooser/list.png")); UIManager.put(DETAILSVIEWICON, getIconRes("filechooser/details.png")); UIManager.put(DIRECTORYICON, getIconRes("filechooser/directory.png")); //------------------------------------------------------------------// UIManager.put(FILEICON, getIconRes("filechooser/file.png")); UIManager.put(HARDDRIVE, getIconRes("filechooser/harddrive.png")); UIManager.put(FLOPPYDRIVE, getIconRes("filechooser/floppyDrive.png")); } @Override protected void installOther(UIDefaults table) { UIManager.put(LISTVIEWWINDOWSSTYLE, Boolean.TRUE); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy