Methods Summary |
---|
public void | close(MiniBar mini_bar)
if (mini_bar != null) {
mini_bar.close();
}
|
public void | close(java.lang.Object context)
MiniBar bar = this.getMiniBarForObject(context);
if (bar != null) {bar.close();}
|
public void | closeAll()
try {
minibars_mon.enter();
for (Iterator iter = new ArrayList(minibars).iterator(); iter.hasNext();) {
MiniBar bar = (MiniBar) iter.next();
bar.close();
}
}
finally {
minibars_mon.exit();
}
|
public int | countMiniBars()
return this.minibars.size();
|
public static org.gudy.azureus2.ui.swt.minibar.MiniBarManager | getManager()
global_instance = new MiniBarManager();
return global_instance;
|
public MiniBar | getMiniBarForObject(java.lang.Object context)
try {
minibars_mon.enter();
for (Iterator iter = minibars.iterator(); iter.hasNext();) {
MiniBar bar = (MiniBar) iter.next();
if (bar.hasContext(context)) {return bar;}
}
return null;
}
finally {
minibars_mon.exit();
}
|
public java.util.ListIterator | getMiniBarIterator()
return this.minibars.listIterator();
|
public org.gudy.azureus2.core3.util.AEMonitor | getMiniBarMonitor()
return minibars_mon;
|
public org.gudy.azureus2.ui.swt.components.shell.ShellManager | getShellManager()
return shellManager;
|
public boolean | isOpen(java.lang.Object context)
return this.getMiniBarForObject(context) != null;
|
public boolean | refreshAll()
try {
minibars_mon.enter();
for (Iterator iter = minibars.iterator(); iter.hasNext();) {
MiniBar bar = (MiniBar) iter.next();
bar.refresh();
}
} finally {
minibars_mon.exit();
}
return false;
|
public void | register(MiniBar bar)
shellManager.addWindow(bar.getShell());
try {
minibars_mon.enter();
minibars.add(bar);
if (!global) {global_instance.register(bar);}
} finally {
minibars_mon.exit();
}
|
public void | setAllVisible(boolean visible)
try {
minibars_mon.enter();
for (Iterator iter = minibars.iterator(); iter.hasNext();) {
MiniBar bar = (MiniBar) iter.next();
bar.setVisible(visible);
}
}
finally {
minibars_mon.exit();
}
|
public void | unregister(MiniBar bar)
try {
minibars_mon.enter();
minibars.remove(bar);
if (!global) {global_instance.unregister(bar);}
} finally {
minibars_mon.exit();
}
|