Package com.github.weisj.darklaf.util
Class PropertyUtil
- java.lang.Object
-
- com.github.weisj.darklaf.util.PropertyUtil
-
public class PropertyUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description PropertyUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> List<T>asTypedList(List<?> list, Class<T> type)static ColorchooseColor(Color currentColor, Color newColor)static booleangetBooleanProperty(Component c, String property)static booleangetBooleanProperty(Component c, String property, boolean defaultValue)static booleangetBooleanProperty(JComponent c, String property)static booleangetBooleanProperty(JComponent c, String property, boolean defaultValue)static ColorgetColor(Component c, String key)static ColorgetColor(Component c, String key, Color defaultValue)static ColorgetColor(JComponent c, String key)static ColorgetColor(JComponent c, String key, Color defaultValue)static IntegergetInteger(Component c, String key)static IntegergetInteger(Component c, String key, int defaultValue)static IntegergetInteger(JComponent c, String key)static IntegergetInteger(JComponent c, String key, int defaultValue)static <T> List<T>getList(UIDefaults defaults, String key, Class<T> type)static IntegergetMnemonic(String key, Locale l)static IntegergetMnemonic(UIDefaults defaults, String key, Locale l)static ObjectgetObject(Component c, String key)static <T> TgetObject(Component c, String key, Class<T> type)static <T> TgetObject(Component c, String key, Class<T> type, T defaultValue)static <T> TgetObject(JComponent c, String key, Class<T> type)static <T> TgetObject(JComponent c, String key, Class<T> type, T defaultValue)static StringgetString(Component c, String key)static StringgetString(Component c, String key, String defaultValue)static StringgetString(JComponent c, String key)static StringgetString(JComponent c, String key, String defaultValue)static voidinstallBackground(Component component, Color color)static voidinstallBooleanProperty(JComponent c, String key, String valueKey)static voidinstallBorder(JComponent component, Border border)static voidinstallFont(Component component, Font font)static voidinstallForeground(Component component, Color color)static voidinstallProperty(JComponent c, String key, Object value)static voidinstallSystemProperty(String key, String value)static <T> booleanisPropertyEqual(Component c, String property, T checkValue)static <T> booleanisPropertyEqual(JComponent c, String property, T checkValue)static voiduninstallProperty(JComponent c, String key)
-
-
-
Method Detail
-
installBorder
public static void installBorder(JComponent component, Border border)
-
uninstallProperty
public static void uninstallProperty(JComponent c, String key)
-
installProperty
public static void installProperty(JComponent c, String key, Object value)
-
installBooleanProperty
public static void installBooleanProperty(JComponent c, String key, String valueKey)
-
getBooleanProperty
public static boolean getBooleanProperty(Component c, String property, boolean defaultValue)
-
getBooleanProperty
public static boolean getBooleanProperty(JComponent c, String property)
-
getBooleanProperty
public static boolean getBooleanProperty(JComponent c, String property, boolean defaultValue)
-
isPropertyEqual
public static <T> boolean isPropertyEqual(Component c, String property, T checkValue)
-
isPropertyEqual
public static <T> boolean isPropertyEqual(JComponent c, String property, T checkValue)
-
getObject
public static <T> T getObject(JComponent c, String key, Class<T> type, T defaultValue)
-
getColor
public static Color getColor(JComponent c, String key, Color defaultValue)
-
getString
public static String getString(JComponent c, String key, String defaultValue)
-
getObject
public static <T> T getObject(JComponent c, String key, Class<T> type)
-
getColor
public static Color getColor(JComponent c, String key)
-
getString
public static String getString(JComponent c, String key)
-
getInteger
public static Integer getInteger(JComponent c, String key, int defaultValue)
-
getInteger
public static Integer getInteger(JComponent c, String key)
-
getList
public static <T> List<T> getList(UIDefaults defaults, String key, Class<T> type)
-
getMnemonic
public static Integer getMnemonic(UIDefaults defaults, String key, Locale l)
-
-