public final class MasterDetailsStateService extends java.lang.Object implements PersistentStateComponent<MasterDetailsStateService.States>
Modifier and Type | Class and Description |
---|---|
static class |
MasterDetailsStateService.ComponentState |
static class |
MasterDetailsStateService.States |
Constructor and Description |
---|
MasterDetailsStateService() |
Modifier and Type | Method and Description |
---|---|
MasterDetailsState |
getComponentState(java.lang.String key,
java.lang.Class<? extends MasterDetailsState> stateClass) |
static MasterDetailsStateService |
getInstance(Project project) |
MasterDetailsStateService.States |
getState() |
void |
loadState(MasterDetailsStateService.States states)
This method is called when new component state is loaded.
|
void |
setComponentState(java.lang.String key,
MasterDetailsState state) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static MasterDetailsStateService getInstance(Project project)
public MasterDetailsState getComponentState(java.lang.String key, java.lang.Class<? extends MasterDetailsState> stateClass)
public void setComponentState(java.lang.String key, MasterDetailsState state)
public MasterDetailsStateService.States getState()
getState
in interface PersistentStateComponent<MasterDetailsStateService.States>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(MasterDetailsStateService.States states)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<MasterDetailsStateService.States>
states
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)