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

freeseawind.lf.basic.spinner.LuckSpinnerUIBundle Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
package freeseawind.lf.basic.spinner;

import java.awt.Color;
import java.awt.Insets;

import javax.swing.UIDefaults;

import freeseawind.lf.border.LuckLineBorder;
import freeseawind.lf.cfg.LuckResourceBundle;

/**
 * 

SpinnerUI资源绑定类。

* *

SpinnerUI resource bundle class.

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

Spinner边框属性key。

* *

Spinner border properties.

*/ public static final String BORDER = "Spinner.border"; /** *

Spinner箭头按钮边框属性key。

* *

Spinner arrow button border properties.

*/ public static final String ARROWBUTTONBORDER = "Spinner.arrowButtonBorder"; /** *

Spinner背景颜色属性key。

* *

Spinner background color properties.

*/ public static final String BACKGROUND = "Spinner.background"; /** *

Spinner箭头按钮间距属性key。

* *

Spinner arrow button insets properties.

*/ public static final String ARROWBUTTONINSETS = "Spinner.arrowButtonInsets"; @Override protected void installBorder(UIDefaults table) { table.put(BORDER, new LuckLineBorder(new Insets(4, 5, 4, 5))); table.put(ARROWBUTTONBORDER, new LuckLineBorder(new Insets(1, 1, 1, 1), 6)); } @Override protected void installColor(UIDefaults table) { table.put(BACKGROUND, getColorRes(Color.white)); } @Override protected void installOther(UIDefaults table) { table.put(ARROWBUTTONINSETS, new Insets(1, 0, 0, 0)); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy