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