SWTSkinObjectTabpublic class SWTSkinObjectTab extends SWTSkinObjectContainer
Fields Summary |
---|
SWTSkinObject[] | activeWidgets | SWTSkinObject | activeWidgetsParent | SWTSkinTabSet | tabset |
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 SWTSkinObject | getActiveWidgetsParent()Retrieve the parent skin object to which the active widgets belong to.
return activeWidgetsParent;
| public SWTSkinTabSet | getTabset()
return tabset;
| public void | setActiveWidgets(SWTSkinObject[] skinObjects)
activeWidgets = skinObjects;
| public void | setActiveWidgetsParent(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
this.activeWidgetsParent = activeWidgetsParent;
activeWidgets = null;
| public void | setTabset(SWTSkinTabSet tabset)
this.tabset = tabset;
|
|