Package ru.bitel.common.client
Class LookAndFeelUtils
java.lang.Object
ru.bitel.common.client.LookAndFeelUtils
public class LookAndFeelUtils
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLookAndFeelUtils.LookAndFeelTheme -
Field Summary
Fields Modifier and Type Field Description static java.util.concurrent.atomic.AtomicIntegerBUTTON_HEIGHTstatic java.util.concurrent.atomic.AtomicIntegerCOMBO_HEIGHTstatic intDEFAULT_HEIGHT -
Constructor Summary
Constructors Constructor Description LookAndFeelUtils() -
Method Summary
Modifier and Type Method Description static voidaddLookAndFeelTheme(LookAndFeelUtils.LookAndFeelTheme t)static LookAndFeelUtils.LookAndFeelThemegetCurrent()static java.util.List<LookAndFeelUtils.LookAndFeelTheme>getLookAndFeelThemeList()static java.util.List<LookAndFeelUtils.LookAndFeelTheme>getLookAndFeelThemeList(java.util.Comparator<LookAndFeelUtils.LookAndFeelTheme> comp)static LookAndFeelUtils.LookAndFeelThemegetTheme(java.lang.String lafName, java.lang.String themeName)static voidmain(java.lang.String[] args)static voidminFontSize(int size)static voidsetFont(java.awt.Font myFont)static voidsetFontSize(float size, javax.swing.plaf.FontUIResource defaultFont)static voidsetFontSize(java.lang.String key, float size, javax.swing.plaf.FontUIResource defaultFont)static voidsetStyle(java.lang.String key, int style)static voidsetTheme(java.lang.String lafName, java.lang.String themeName)static voidsetTheme(java.lang.String lafName, java.lang.String themeName, java.awt.Component component)static voidsetTheme(LookAndFeelUtils.LookAndFeelTheme t)static voidsetTheme(LookAndFeelUtils.LookAndFeelTheme t, java.awt.Component component)static voidupdateOnChangeLookAndFeel(java.awt.Container container)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
DEFAULT_HEIGHT
public static final int DEFAULT_HEIGHT- See Also:
- Constant Field Values
-
BUTTON_HEIGHT
public static java.util.concurrent.atomic.AtomicInteger BUTTON_HEIGHT -
COMBO_HEIGHT
public static java.util.concurrent.atomic.AtomicInteger COMBO_HEIGHT
-
-
Constructor Details
-
LookAndFeelUtils
public LookAndFeelUtils()
-
-
Method Details
-
addLookAndFeelTheme
-
getLookAndFeelThemeList
-
getLookAndFeelThemeList
public static java.util.List<LookAndFeelUtils.LookAndFeelTheme> getLookAndFeelThemeList(java.util.Comparator<LookAndFeelUtils.LookAndFeelTheme> comp) -
setTheme
- Throws:
java.lang.Exception
-
setTheme
public static void setTheme(LookAndFeelUtils.LookAndFeelTheme t, java.awt.Component component) throws java.lang.Exception- Throws:
java.lang.Exception
-
getTheme
public static LookAndFeelUtils.LookAndFeelTheme getTheme(java.lang.String lafName, java.lang.String themeName) -
setTheme
public static void setTheme(java.lang.String lafName, java.lang.String themeName, java.awt.Component component) throws java.lang.Exception- Throws:
java.lang.Exception
-
setTheme
public static void setTheme(java.lang.String lafName, java.lang.String themeName) throws java.lang.Exception- Throws:
java.lang.Exception
-
getCurrent
-
main
public static void main(java.lang.String[] args) -
setFont
public static void setFont(java.awt.Font myFont) -
setFontSize
public static void setFontSize(float size, javax.swing.plaf.FontUIResource defaultFont) -
setFontSize
public static void setFontSize(java.lang.String key, float size, javax.swing.plaf.FontUIResource defaultFont) -
setStyle
public static void setStyle(java.lang.String key, int style) -
minFontSize
public static void minFontSize(int size) -
updateOnChangeLookAndFeel
public static void updateOnChangeLookAndFeel(java.awt.Container container)
-