FileDocCategorySizeDatePackage
SWTSkinObjectTab.javaAPI DocAzureus 3.0.3.43144Thu Mar 01 23:47:30 GMT 2007com.aelitis.azureus.ui.swt.skin

SWTSkinObjectTab

public class SWTSkinObjectTab extends SWTSkinObjectContainer
author
TuxPaper
created
Jun 21, 2006

Fields Summary
SWTSkinObject[]
activeWidgets
SWTSkinObject
activeWidgetsParent
SWTSkinTabSet
tabset
Constructors Summary
public SWTSkinObjectTab(SWTSkin skin, SWTSkinProperties properties, String sID, String sConfigID, SWTSkinObject parent)


	    
			      
		super(skin, properties, sID, sConfigID, parent);
		type = "tab";
	
Methods Summary
public java.lang.String[]getActiveWidgetIDs()

		String[] sIDs = properties.getStringArray(getConfigID() + ".active-widgets");
		return sIDs;
	
public SWTSkinObject[]getActiveWidgets()

		if (activeWidgets == null) {

			String[] sIDs = getActiveWidgetIDs();
			ArrayList skinObjectArray = new ArrayList();

			if (sIDs != null) {
				for (int i = 0; i < sIDs.length; i++) {
					//					System.out.println("Looking for " + sIDs[i] + " w/Parent "
					//							+ activeWidgetsParent);
					SWTSkinObject skinObject = getSkin().getSkinObjectByID(sIDs[i],
							activeWidgetsParent);
					if (skinObject != null) {
						skinObjectArray.add(skinObject);
					}
				}
			}

			if (skinObjectArray.size() == 0) {
				return new SWTSkinObject[0];
			}

			activeWidgets = new SWTSkinObject[skinObjectArray.size()];
			activeWidgets = (SWTSkinObject[]) skinObjectArray.toArray(activeWidgets);
		}

		return activeWidgets;
	
public SWTSkinObjectgetActiveWidgetsParent()
Retrieve the parent skin object to which the active widgets belong to.

return
Parent skin object, or null if it doesn't matter

		return activeWidgetsParent;
	
public SWTSkinTabSetgetTabset()

		return tabset;
	
public voidsetActiveWidgets(SWTSkinObject[] skinObjects)

		activeWidgets = skinObjects;
	
public voidsetActiveWidgetsParent(SWTSkinObject activeWidgetsParent)
Sets the parent skin object to which the active widgets belong to.

This is usefull when there are multiple widgets with the same ID

param
activeWidgetsParent

		this.activeWidgetsParent = activeWidgetsParent;
		activeWidgets = null;
	
public voidsetTabset(SWTSkinTabSet tabset)

		this.tabset = tabset;