FileDocCategorySizeDatePackage
UISkinnableManagerSWT.javaAPI DocAzureus 3.0.3.42204Mon Mar 19 13:12:20 GMT 2007com.aelitis.azureus.ui.swt

UISkinnableManagerSWT

public class UISkinnableManagerSWT extends Object
author
TuxPaper
created
Mar 18, 2007 TODO: seperate into class/impl

Fields Summary
static UISkinnableManagerSWT
instance
private Map
mapSkinnables
Key: ID; Value: ArrayList of UISkinnableSWTListener
Constructors Summary
Methods Summary
public voidaddSkinnableListener(java.lang.String id, UISkinnableSWTListener l)

		List listeners = (List) mapSkinnables.get(id);
		
		if (listeners == null) {
			listeners = new ArrayList();
			listeners.add(l);
			mapSkinnables.put(id, listeners);
		} else {
			listeners.add(l);
		}
	
public static com.aelitis.azureus.ui.swt.UISkinnableManagerSWTgetInstance()

	
	    
		return instance;
	
public UISkinnableSWTListener[]getSkinnableListeners(java.lang.String id)


	    
		List listeners = (List) mapSkinnables.get(id);
		
		if (listeners == null) {
			return new UISkinnableSWTListener[0];
		}
		
		UISkinnableSWTListener[] skinListeners = new UISkinnableSWTListener[listeners.size()];
		skinListeners = (UISkinnableSWTListener[]) listeners.toArray(skinListeners);
		return skinListeners;
	
public voidremoveSkinnableListener(java.lang.String id, UISkinnableSWTListener l)

		List listeners = (List) mapSkinnables.get(id);
		
		if (listeners != null) {
			listeners.remove(l);
		}