|
org.netbeans.swing.plaf 1.25 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.swing.plaf.Startup
public final class Startup
Singleton, manages customizers for various LFs. Installs, uninstalls them on LF change. LF customizers works with Swing UIManager, putting info about various UI elements in it. Other modules then can query UIManager to get UI elements to get needed visual design and behaviour.
| Method Summary | |
|---|---|
static void |
run(Class uiClass,
int uiFontSize,
URL themeURL)
Initialize values in UIDefaults which need to be there for NetBeans' components; apply customizations such as setting up a custom font size and loading a theme. |
static void |
run(Class uiClass,
int uiFontSize,
URL themeURL,
ResourceBundle rb)
Initialize values in UIDefaults which need to be there for NetBeans' components; apply customizations such as setting up a custom font size and loading a theme. |
static void |
setClassLoader(ClassLoader loader)
Set a class loader to be used in place of Thread.getContextClassLoader(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setClassLoader(ClassLoader loader)
Thread.getContextClassLoader().
loader - a system-wide class loader
public static void run(Class uiClass,
int uiFontSize,
URL themeURL)
run(java.lang.Class, int, java.net.URL, java.util.ResourceBundle) with null
resource bundle.
public static void run(Class uiClass,
int uiFontSize,
URL themeURL,
ResourceBundle rb)
uiClass - The UI class which should be used for the look and feeluiFontSize - A custom fontsize, or 0. This will be retrievable via UIManager.get("customFontSize") after this method has returned
if non 0. If non zero, all of the standard Swing font keys in UIDefaults will be customized to
provide a font with the requested size. Results are undefined for values less than 0 or greater
than any hard limit the platform imposes on font size.themeURL - An optional URL for a theme file, or null. Theme file format documentation can be found
here.rb - resource bundle to use for branding or null. Allows NetBeans to provide enhanced version
of bundle that knows how to deal with branding. The bundle shall have the same keys as
org.netbeans.swing.plaf.Bundle bundle has.
|
org.netbeans.swing.plaf 1.25 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||