public final class LafManagerImpl extends LafManager implements PersistentStateComponent<Element>, Disposable
LafManager.LafReference
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
WINDOW_ALPHA |
Constructor and Description |
---|
LafManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addLafManagerListener(LafManagerListener listener) |
void |
addLafManagerListener(LafManagerListener listener,
Disposable disposable) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
javax.swing.UIManager.LookAndFeelInfo |
findLaf(LafManager.LafReference reference) |
javax.swing.UIManager.LookAndFeelInfo |
getCurrentLookAndFeel() |
LafManager.LafReference |
getCurrentLookAndFeelReference() |
javax.swing.UIManager.LookAndFeelInfo |
getDefaultLaf() |
javax.swing.UIManager.LookAndFeelInfo [] |
getInstalledLookAndFeels() |
CollectionComboBoxModel<LafManager.LafReference> |
getLafComboBoxModel() |
Element |
getState() |
static LafManagerImpl |
getTestInstance() |
static void |
initFontDefaults(javax.swing.UIDefaults defaults,
javax.swing.plaf.FontUIResource uiFont) |
void |
initializeComponent()
If class also is a component, then this method will be called after loading state (even if not state) but only once throughout the life cycle
|
static void |
initInputMapDefaults(javax.swing.UIDefaults defaults) |
static void |
installMacOSXFonts(javax.swing.UIDefaults defaults) |
void |
loadState(Element element)
This method is called when new component state is loaded.
|
void |
noStateLoaded()
This method is called when the component is initialized, but no state is persisted.
|
void |
removeLafManagerListener(LafManagerListener listener) |
void |
repaintUI()
Repaints all displayable window.
|
void |
setCurrentLookAndFeel(javax.swing.UIManager.LookAndFeelInfo lookAndFeelInfo,
boolean lockEditorScheme)
Sets current LAF.
|
static void |
updateForDarcula(boolean isDarcula)
Deprecated.
|
void |
updateUI()
Updates LAF of all windows.
|
void |
updateWizardLAF(boolean wasUnderDarcula) |
getInstance, setCurrentLookAndFeel
public static final java.lang.String WINDOW_ALPHA
public void addLafManagerListener(LafManagerListener listener)
addLafManagerListener
in class LafManager
public void addLafManagerListener(LafManagerListener listener, Disposable disposable)
addLafManagerListener
in class LafManager
public void removeLafManagerListener(LafManagerListener listener)
removeLafManagerListener
in class LafManager
public void initializeComponent()
PersistentStateComponent
initializeComponent
in interface PersistentStateComponent<Element>
public void updateWizardLAF(boolean wasUnderDarcula)
public void dispose()
Disposable
dispose
in interface Disposable
public void loadState(Element element)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
element
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public void noStateLoaded()
PersistentStateComponent
noStateLoaded
in interface PersistentStateComponent<Element>
public Element getState()
getState
in interface PersistentStateComponent<Element>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public javax.swing.UIManager.LookAndFeelInfo [] getInstalledLookAndFeels()
getInstalledLookAndFeels
in class LafManager
public CollectionComboBoxModel<LafManager.LafReference> getLafComboBoxModel()
getLafComboBoxModel
in class LafManager
public javax.swing.UIManager.LookAndFeelInfo findLaf(LafManager.LafReference reference)
findLaf
in class LafManager
public javax.swing.UIManager.LookAndFeelInfo getCurrentLookAndFeel()
getCurrentLookAndFeel
in class LafManager
public LafManager.LafReference getCurrentLookAndFeelReference()
getCurrentLookAndFeelReference
in class LafManager
public javax.swing.UIManager.LookAndFeelInfo getDefaultLaf()
public void setCurrentLookAndFeel(javax.swing.UIManager.LookAndFeelInfo lookAndFeelInfo, boolean lockEditorScheme)
setCurrentLookAndFeel
in class LafManager
@Deprecated public static void updateForDarcula(boolean isDarcula)
AppUIUtil.updateForDarcula(boolean)
public void updateUI()
UISettings
.updateUI
in class LafManager
public static void installMacOSXFonts(javax.swing.UIDefaults defaults)
public void repaintUI()
repaintUI
in class LafManager
public static void initInputMapDefaults(javax.swing.UIDefaults defaults)
public static void initFontDefaults(javax.swing.UIDefaults defaults, javax.swing.plaf.FontUIResource uiFont)
public static LafManagerImpl getTestInstance()