UIDefaults
|
getDefaults()
Returns the look and feel defaults.
|
abstract
String
|
getDescription()
Return a one line description of this look and feel implementation,
e.g.
|
static
Object
|
getDesktopPropertyValue(String systemPropertyName, Object fallbackValue)
Returns the value of the specified system desktop property by
invoking Toolkit.getDefaultToolkit().getDesktopProperty() .
|
Icon
|
getDisabledIcon(JComponent component, Icon icon)
Returns an Icon with a disabled appearance.
|
Icon
|
getDisabledSelectedIcon(JComponent component, Icon icon)
Returns an Icon for use by disabled
components that are also selected.
|
abstract
String
|
getID()
Return a string that identifies this look and feel.
|
LayoutStyle
|
getLayoutStyle()
Returns the LayoutStyle for this look
and feel.
|
abstract
String
|
getName()
Return a short string that identifies this look and feel, e.g.
|
boolean
|
getSupportsWindowDecorations()
Returns true if the LookAndFeel returned
RootPaneUI instances support providing Window
decorations in a JRootPane .
|
void
|
initialize()
Initializes the look and feel.
|
static
void
|
installBorder(JComponent c, String defaultBorderName)
Convenience method for setting a component's border property with
a value from the defaults.
|
static
void
|
installColors(JComponent c, String defaultBgName, String defaultFgName)
Convenience method for setting a component's foreground
and background color properties with values from the
defaults.
|
static
void
|
installColorsAndFont(JComponent c, String defaultBgName, String defaultFgName, String defaultFontName)
Convenience method for setting a component's foreground,
background and font properties with values from the
defaults.
|
static
void
|
installProperty(JComponent c, String propertyName, Object propertyValue)
Convenience method for installing a property with the specified name
and value on a component if that property has not already been set
by the developer.
|
abstract
boolean
|
isNativeLookAndFeel()
If the underlying platform has a "native" look and feel, and
this is an implementation of it, return true .
|
abstract
boolean
|
isSupportedLookAndFeel()
Return true if the underlying platform supports and or permits
this look and feel.
|
static
void
|
loadKeyBindings(InputMap retMap, Object[] keys)
Populates an InputMap with the specified bindings.
|
static
ComponentInputMap
|
makeComponentInputMap(JComponent c, Object[] keys)
Creates a ComponentInputMapUIResource from
keys .
|
static
Object
|
makeIcon(Class<?> baseClass, String gifFile)
Creates and returns a UIDefault.LazyValue that loads an
image.
|
static
InputMap
|
makeInputMap(Object[] keys)
Creates a InputMapUIResource from keys .
|
static
KeyBinding[]
|
makeKeyBindings(Object[] keyBindingList)
Convenience method for building an array of KeyBindings .
|
void
|
provideErrorFeedback(Component component)
Invoked when the user attempts an invalid operation,
such as pasting into an uneditable JTextField
that has focus.
|
String
|
toString()
Returns a string that displays and identifies this
object's properties.
|
void
|
uninitialize()
Uninitializes the look and feel.
|
static
void
|
uninstallBorder(JComponent c)
Convenience method for uninstalling a border.
|