org.netbeans.swing.plaf 1.25

org.netbeans.swing.plaf
Class Startup

java.lang.Object
  extended by org.netbeans.swing.plaf.Startup

public final class Startup
extends Object

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

setClassLoader

public static void setClassLoader(ClassLoader loader)
Set a class loader to be used in place of Thread.getContextClassLoader().

Parameters:
loader - a system-wide class loader
Since:
org.netbeans.swing.plaf 1.15

run

public 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. Basically delegates to run(java.lang.Class, int, java.net.URL, java.util.ResourceBundle) with null resource bundle.


run

public 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.

Parameters:
uiClass - The UI class which should be used for the look and feel
uiFontSize - 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.
Since:
1.16

org.netbeans.swing.plaf 1.25

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.