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

freeseawind.lf.basic.table.LuckTableUIBundle Maven / Gradle / Ivy

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

import java.awt.Color;

import javax.swing.ImageIcon;
import javax.swing.UIDefaults;

import freeseawind.lf.cfg.LuckResourceBundle;
import freeseawind.lf.utils.LuckRes;

/**
 * 

TableUI and TableHeaderUI 资源绑定类。

* *

TableUI and TableHeaderUI resource bundle class.

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

Table选中时背景颜色属性。

* *

Table background color properties when selected.

*/ public static final String SELECTIONBACKGROUND = "Table.selectionBackground"; /** *

Table选中时字体颜色属性。

* *

Table font color properties when selected.

*/ public static final String SELECTIONFOREGROUND = "Table.selectionForeground"; /** *

Table升序箭头图标属性。

* *

Table ascending arrow icon property.

*/ public static final String ASC_ICON = "Table.ascendingSortIcon"; /** *

Table降序箭头图标属性。

* *

Table descending arrow icon property.

*/ public static final String DESC_ICON = "Table.descendingSortIcon"; @Override protected void installColor(UIDefaults table) { table.put(SELECTIONBACKGROUND, getColorRes(60, 175, 210)); table.put(SELECTIONFOREGROUND, getColorRes(Color.white)); } @Override protected void loadImages(UIDefaults table) { ImageIcon ascIcon = new ImageIcon(LuckRes.getImage("table/asc.png")); table.put(ASC_ICON, getIconRes(ascIcon)); ImageIcon descIcon = new ImageIcon(LuckRes.getImage("table/desc.png")); table.put(DESC_ICON, getIconRes(descIcon)); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy