use of com.sun.web.ui.view.tabs.CCTabs in project OpenAM by OpenRock.
the class MAPClientManagerViewBean method createTab.
private View createTab(String name) {
CCTabsModel tabModel = new CCTabsModel();
MAPServiceModel model = (MAPServiceModel) getModel();
Set profileNames = model.getProfileNames();
if ((profileNames != null) && !profileNames.isEmpty()) {
for (Iterator iter = profileNames.iterator(); iter.hasNext(); ) {
String val = (String) iter.next();
tabModel.addNode(new CCNavNode(val.hashCode(), val, val, val));
}
tabModel.setSelectedNode(getProfileName().hashCode());
}
return new CCTabs(this, tabModel, name);
}
use of com.sun.web.ui.view.tabs.CCTabs in project OpenAM by OpenRock.
the class AgentsViewBean method createChild.
protected View createChild(String name) {
View view = null;
if (name.equals(PARENTAGE_PATH)) {
view = createParentagePath(name);
} else if (name.equals(PARENTAGE_PATH_HREF)) {
view = new HREF(this, name, null);
} else if (name.equals(TAB_COMMON)) {
view = new CCTabs(this, tabModel, name);
} else if (name.equals(TBL_SEARCH)) {
populateTableModelEx();
view = new CCActionTable(this, tblModel, name);
} else if (name.equals(TBL_SEARCH_GROUP)) {
populateTableModelEx();
view = new CCActionTable(this, tblGroupModel, name);
} else if (name.equals(PAGETITLE)) {
view = new CCPageTitle(this, ptModel, name);
} else if ((tblModel != null) && tblModel.isChildSupported(name)) {
view = tblModel.createChild(this, name);
} else if ((tblGroupModel != null) && tblGroupModel.isChildSupported(name)) {
view = tblGroupModel.createChild(this, name);
} else if ((ptModel != null) && ptModel.isChildSupported(name)) {
view = ptModel.createChild(this, name);
} else {
view = super.createChild(name);
}
return view;
}
Aggregations