public class AppEditorFontOptions extends java.lang.Object implements PersistentStateComponent<AppEditorFontOptions.PersistentFontPreferences>
Modifier and Type | Class and Description |
---|---|
static class |
AppEditorFontOptions.PersistentFontPreferences |
Constructor and Description |
---|
AppEditorFontOptions() |
Modifier and Type | Method and Description |
---|---|
FontPreferences |
getFontPreferences() |
static AppEditorFontOptions |
getInstance() |
AppEditorFontOptions.PersistentFontPreferences |
getState() |
static void |
initDefaults(ModifiableFontPreferences fontPreferences) |
void |
loadState(AppEditorFontOptions.PersistentFontPreferences state)
This method is called when new component state is loaded.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static AppEditorFontOptions getInstance()
public AppEditorFontOptions.PersistentFontPreferences getState()
getState
in interface PersistentStateComponent<AppEditorFontOptions.PersistentFontPreferences>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(AppEditorFontOptions.PersistentFontPreferences state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<AppEditorFontOptions.PersistentFontPreferences>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public static void initDefaults(ModifiableFontPreferences fontPreferences)
public FontPreferences getFontPreferences()