|
|
|
@ -28,23 +28,13 @@ public class AddingWidgetListenerTable {
|
|
|
|
|
|
|
|
|
|
public void beforeAdded() { |
|
|
|
|
for (final AddingWidgetListener listener : listeners) { |
|
|
|
|
SwingUtilities.invokeLater(new Runnable() { |
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|
listener.beforeAdded(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
listener.beforeAdded(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void afterAdded(boolean addResult) { |
|
|
|
|
for (final AddingWidgetListener listener : listeners) { |
|
|
|
|
SwingUtilities.invokeLater(new Runnable() { |
|
|
|
|
@Override |
|
|
|
|
public void run() { |
|
|
|
|
listener.afterAdded(addResult); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
listener.afterAdded(addResult); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|