mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
elements tab: load DOM only if requested (tab was selected/window was shown), add loading decorator
This commit is contained in:
@@ -38,9 +38,13 @@ public class JBLoadingPanel extends JPanel {
|
||||
private final Collection<JBLoadingPanelListener> myListeners = ContainerUtil.createLockFreeCopyOnWriteList();
|
||||
|
||||
public JBLoadingPanel(@Nullable LayoutManager manager, @NotNull Disposable parent) {
|
||||
this(manager, parent, -1);
|
||||
}
|
||||
|
||||
public JBLoadingPanel(@Nullable LayoutManager manager, @NotNull Disposable parent, int startDelayMs) {
|
||||
super(new BorderLayout());
|
||||
myPanel = manager == null ? new JPanel() : new JPanel(manager);
|
||||
myDecorator = new LoadingDecorator(myPanel, parent, -1) {
|
||||
myDecorator = new LoadingDecorator(myPanel, parent, startDelayMs) {
|
||||
@Override
|
||||
protected NonOpaquePanel customizeLoadingLayer(JPanel parent, JLabel text, AsyncProcessIcon icon) {
|
||||
final NonOpaquePanel panel = super.customizeLoadingLayer(parent, text, icon);
|
||||
|
||||
Reference in New Issue
Block a user