APIdia Launch Partner
Top Description Fields Constructors Methods
sun.swing

public Class DefaultLookup

extends Object
Class Inheritance
Known Direct Subclasses
javax.swing.plaf.synth.SynthDefaultLookup
Imports
java.awt.Color, .Insets, javax.swing.*, javax.swing.border.Border, javax.swing.plaf.ComponentUI

DefaultLookup provides a way to customize the lookup done by the UIManager. The default implementation of DefaultLookup forwards the call to the UIManager.

Warning

While this class is public, it should not be treated as public API and its API may change in incompatible ways between dot dot releases and even patch releases. You should not rely on this class even existing.

Author
Scott Violet

Field Summary

Modifier and TypeField and Description
private static DefaultLookup
currentDefaultLookup

DefaultLookup currently set.

private static boolean
isLookupSet

If true, a custom DefaultLookup has been set.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Object
public static boolean
getBoolean(JComponent c, ComponentUI ui, String key, boolean defaultValue)

public static boolean
public static Border
getBorder(JComponent c, ComponentUI ui, String key, Border defaultValue)

public static Border
public static Color
getColor(JComponent c, ComponentUI ui, String key, Color defaultValue)

public static Color
public Object
public static Icon
getIcon(JComponent c, ComponentUI ui, String key, Icon defaultValue)

public static Icon
public static Insets
getInsets(JComponent c, ComponentUI ui, String key, Insets defaultValue)

public static Insets
public static int
getInt(JComponent c, ComponentUI ui, String key, int defaultValue)

public static int
public static void
setDefaultLookup(DefaultLookup lookup)

Sets the DefaultLookup instance to use.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentDefaultLookupback to summary
private static DefaultLookup currentDefaultLookup

DefaultLookup currently set.

isLookupSetback to summary
private static boolean isLookupSet

If true, a custom DefaultLookup has been set.

Constructor Detail

DefaultLookupback to summary
public DefaultLookup()

Method Detail

getback to summary
public static Object get(JComponent c, ComponentUI ui, String key)
getBooleanback to summary
public static boolean getBoolean(JComponent c, ComponentUI ui, String key, boolean defaultValue)
getBooleanback to summary
public static boolean getBoolean(JComponent c, ComponentUI ui, String key)
getBorderback to summary
public static Border getBorder(JComponent c, ComponentUI ui, String key, Border defaultValue)
getBorderback to summary
public static Border getBorder(JComponent c, ComponentUI ui, String key)
getColorback to summary
public static Color getColor(JComponent c, ComponentUI ui, String key, Color defaultValue)
getColorback to summary
public static Color getColor(JComponent c, ComponentUI ui, String key)
getDefaultback to summary
public Object getDefault(JComponent c, ComponentUI ui, String key)
getIconback to summary
public static Icon getIcon(JComponent c, ComponentUI ui, String key, Icon defaultValue)
getIconback to summary
public static Icon getIcon(JComponent c, ComponentUI ui, String key)
getInsetsback to summary
public static Insets getInsets(JComponent c, ComponentUI ui, String key, Insets defaultValue)
getInsetsback to summary
public static Insets getInsets(JComponent c, ComponentUI ui, String key)
getIntback to summary
public static int getInt(JComponent c, ComponentUI ui, String key, int defaultValue)
getIntback to summary
public static int getInt(JComponent c, ComponentUI ui, String key)
setDefaultLookupback to summary
public static void setDefaultLookup(DefaultLookup lookup)

Sets the DefaultLookup instance to use. Null implies the UIManager should be used.