class LookAndFeelHelper
extends Object
Helper for resolving and configuring Swing look and feels.
| Modifiers | Name | Description |
|---|---|---|
protected static LookAndFeelHelper |
instance |
Shared helper instance used by getInstance(). |
| Type Params | Return Type | Name and description |
|---|---|---|
|
String |
addLookAndFeelAlias(String alias, String className)Registers an alias for a look and feel implementation class. |
|
String |
addLookAndFeelAttributeHandler(String className, String attr, Closure handler)Registers a handler for a custom look and feel attribute. |
|
static String |
getAquaLAFName()Finds the first available Aqua look and feel implementation. |
|
static LookAndFeelHelper |
getInstance()Returns the shared helper instance. |
|
static String |
getNimbusLAFName()Finds the first available Nimbus look and feel implementation. |
|
static String |
getSubstanceLAFName()Finds the first available Substance look and feel implementation. |
|
boolean |
isLeaf()Indicates that look and feel helper nodes are always leaf nodes. |
|
LookAndFeel |
lookAndFeel(Object value, Map attributes, Closure initClosure)Creates or updates the current look and feel from the supplied value and attributes. |
Shared helper instance used by getInstance().
Registers an alias for a look and feel implementation class.
alias - the alias nameclassName - the look and feel class nameRegisters a handler for a custom look and feel attribute.
className - the look and feel class nameattr - the attribute namehandler - the handler closureFinds the first available Aqua look and feel implementation.
null if none are availableReturns the shared helper instance.
Finds the first available Nimbus look and feel implementation.
null if none are availableFinds the first available Substance look and feel implementation.
null if none are availableIndicates that look and feel helper nodes are always leaf nodes.
trueCreates or updates the current look and feel from the supplied value and attributes.
value - the requested look and feel instance, alias, or class nameattributes - additional look and feel configuration attributesinitClosure - optional initialization callback invoked with the resolved look and feel