![JAR search and dependency download from the Maven repository](/logo.png)
freeseawind.lf.basic.splitpane.LuckSplitPaneUIBundle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of littleluck Show documentation
Show all versions of littleluck Show documentation
Java Swing cross platform LookAndFeel
The newest version!
package freeseawind.lf.basic.splitpane;
import java.awt.Color;
import java.awt.Insets;
import javax.swing.BorderFactory;
import javax.swing.UIDefaults;
import freeseawind.lf.border.LuckLineBorder;
import freeseawind.lf.cfg.LuckResourceBundle;
/**
* SplitPaneUI资源绑定类
*
* SplitPaneUI resource bundle class.
*
* @author freeseawind@github
* @version 1.0
*
*/
public class LuckSplitPaneUIBundle extends LuckResourceBundle
{
/**
* SplitPane边框属性key。
*
* SplitPane border properties.
*/
public static final String BORDER = "SplitPane.border";
/**
* SplitPaneDivider边框属性key。
*
* SplitPaneDivider border properties.
*/
public static final String DIVIDERBORDER = "SplitPaneDivider.border";
/**
* SplitPane背景颜色属性key。
*
* SplitPane background color properties.
*/
public static final String BACKGROUND = "SplitPane.background";
/**
* SplitPane分隔区域大小属性key, 当前默认值5。
*
* SplitPane divider size properties, default size 5.
*/
public static final String DIVIDERSIZE = "SplitPane.dividerSize";
@Override
protected void installBorder(UIDefaults table)
{
table.put(BORDER, getBorderRes(BorderFactory.createEmptyBorder()));
table.put(DIVIDERBORDER, getBorderRes(new LuckLineBorder(new Insets(1, 1, 1, 1), 2)));
table.put(BACKGROUND, getColorRes(Color.white));
table.put(DIVIDERSIZE, 5);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy