|
@@ -165,7 +165,7 @@ public abstract class FrameContainer {
|
165
|
165
|
// TODO: This should default ot something colour independent
|
166
|
166
|
notification = Color.BLACK;
|
167
|
167
|
|
168
|
|
- synchronized(listeners) {
|
|
168
|
+ synchronized (listeners) {
|
169
|
169
|
for (NotificationListener listener : listeners.get(NotificationListener.class)) {
|
170
|
170
|
listener.notificationCleared(getFrame());
|
171
|
171
|
}
|
|
@@ -184,7 +184,7 @@ public abstract class FrameContainer {
|
184
|
184
|
&& !colour.equals(notification)) {
|
185
|
185
|
notification = colour;
|
186
|
186
|
|
187
|
|
- synchronized(listeners) {
|
|
187
|
+ synchronized (listeners) {
|
188
|
188
|
for (NotificationListener listener : listeners.get(NotificationListener.class)) {
|
189
|
189
|
listener.notificationSet(getFrame(), colour);
|
190
|
190
|
}
|
|
@@ -257,7 +257,7 @@ public abstract class FrameContainer {
|
257
|
257
|
}
|
258
|
258
|
}
|
259
|
259
|
|
260
|
|
- synchronized(listeners) {
|
|
260
|
+ synchronized (listeners) {
|
261
|
261
|
for (SelectionListener listener : listeners.get(SelectionListener.class)) {
|
262
|
262
|
listener.selectionChanged(getFrame());
|
263
|
263
|
}
|
|
@@ -309,7 +309,7 @@ public abstract class FrameContainer {
|
309
|
309
|
* @param listener The listener to be added
|
310
|
310
|
*/
|
311
|
311
|
public void addNotificationListener(final NotificationListener listener) {
|
312
|
|
- synchronized(listeners) {
|
|
312
|
+ synchronized (listeners) {
|
313
|
313
|
listeners.add(NotificationListener.class, listener);
|
314
|
314
|
}
|
315
|
315
|
}
|
|
@@ -320,7 +320,7 @@ public abstract class FrameContainer {
|
320
|
320
|
* @param listener The listener to be removed
|
321
|
321
|
*/
|
322
|
322
|
public void removeNotificationListener(final NotificationListener listener) {
|
323
|
|
- synchronized(listeners) {
|
|
323
|
+ synchronized (listeners) {
|
324
|
324
|
listeners.remove(NotificationListener.class, listener);
|
325
|
325
|
}
|
326
|
326
|
}
|
|
@@ -331,7 +331,7 @@ public abstract class FrameContainer {
|
331
|
331
|
* @param listener The listener to be added
|
332
|
332
|
*/
|
333
|
333
|
public void addSelectionListener(final SelectionListener listener) {
|
334
|
|
- synchronized(listeners) {
|
|
334
|
+ synchronized (listeners) {
|
335
|
335
|
listeners.add(SelectionListener.class, listener);
|
336
|
336
|
}
|
337
|
337
|
}
|
|
@@ -342,7 +342,7 @@ public abstract class FrameContainer {
|
342
|
342
|
* @param listener The listener to be removed
|
343
|
343
|
*/
|
344
|
344
|
public void removeSelectionListener(final SelectionListener listener) {
|
345
|
|
- synchronized(listeners) {
|
|
345
|
+ synchronized (listeners) {
|
346
|
346
|
listeners.remove(SelectionListener.class, listener);
|
347
|
347
|
}
|
348
|
348
|
}
|