public final class NotificationsConfigurationImpl extends NotificationsConfiguration implements PersistentStateComponent<Element>, Disposable
Disposable.Parent
Notifications.Bus
Modifier and Type | Field and Description |
---|---|
boolean |
SHOW_BALLOONS |
boolean |
SYSTEM_NOTIFICATIONS |
LIGHTWEIGHT_PREFIX
SYSTEM_MESSAGES_GROUP_ID, TOPIC
Constructor and Description |
---|
NotificationsConfigurationImpl() |
Modifier and Type | Method and Description |
---|---|
void |
changeSettings(NotificationSettings settings) |
void |
changeSettings(java.lang.String groupDisplayName,
NotificationDisplayType displayType,
boolean shouldLog,
boolean shouldReadAloud) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
NotificationSettings[] |
getAllSettings() |
static NotificationsConfigurationImpl |
getInstanceImpl() |
static NotificationSettings |
getSettings(java.lang.String groupId) |
Element |
getState() |
java.lang.String |
getToolWindowId(java.lang.String groupId) |
boolean |
hasToolWindowCapability(java.lang.String groupId) |
boolean |
isRegistered(java.lang.String id) |
void |
loadState(Element state)
This method is called when new component state is loaded.
|
void |
register(java.lang.String groupDisplayName,
NotificationDisplayType displayType) |
void |
register(java.lang.String groupDisplayName,
NotificationDisplayType displayType,
boolean shouldLog) |
void |
register(java.lang.String groupDisplayName,
NotificationDisplayType displayType,
boolean shouldLog,
boolean shouldReadAloud) |
static void |
remove(java.lang.String... toRemove) |
getNotificationsConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
notify
public boolean SHOW_BALLOONS
public boolean SYSTEM_NOTIFICATIONS
public static NotificationsConfigurationImpl getInstanceImpl()
public boolean hasToolWindowCapability(java.lang.String groupId)
public java.lang.String getToolWindowId(java.lang.String groupId)
public NotificationSettings[] getAllSettings()
public static void remove(java.lang.String... toRemove)
public static NotificationSettings getSettings(java.lang.String groupId)
public void dispose()
Disposable
dispose
in interface Disposable
public void register(java.lang.String groupDisplayName, NotificationDisplayType displayType)
register
in interface Notifications
public void register(java.lang.String groupDisplayName, NotificationDisplayType displayType, boolean shouldLog)
register
in interface Notifications
public void register(java.lang.String groupDisplayName, NotificationDisplayType displayType, boolean shouldLog, boolean shouldReadAloud)
register
in interface Notifications
public void changeSettings(java.lang.String groupDisplayName, NotificationDisplayType displayType, boolean shouldLog, boolean shouldReadAloud)
changeSettings
in class NotificationsConfiguration
public void changeSettings(NotificationSettings settings)
public boolean isRegistered(java.lang.String id)
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 void loadState(Element state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)