Search in sources :

Example 1 with CCTabs

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);
}
Also used : CCTabsModel(com.sun.web.ui.model.CCTabsModel) MAPServiceModel(com.sun.identity.console.service.model.MAPServiceModel) CCNavNode(com.sun.web.ui.model.CCNavNode) CCTabs(com.sun.web.ui.view.tabs.CCTabs) Set(java.util.Set) Iterator(java.util.Iterator)

Example 2 with CCTabs

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;
}
Also used : CCTabs(com.sun.web.ui.view.tabs.CCTabs) HREF(com.iplanet.jato.view.html.HREF) CCActionTable(com.sun.web.ui.view.table.CCActionTable) View(com.iplanet.jato.view.View) CCPageTitle(com.sun.web.ui.view.pagetitle.CCPageTitle)

Aggregations

CCTabs (com.sun.web.ui.view.tabs.CCTabs)2 View (com.iplanet.jato.view.View)1 HREF (com.iplanet.jato.view.html.HREF)1 MAPServiceModel (com.sun.identity.console.service.model.MAPServiceModel)1 CCNavNode (com.sun.web.ui.model.CCNavNode)1 CCTabsModel (com.sun.web.ui.model.CCTabsModel)1 CCPageTitle (com.sun.web.ui.view.pagetitle.CCPageTitle)1 CCActionTable (com.sun.web.ui.view.table.CCActionTable)1 Iterator (java.util.Iterator)1 Set (java.util.Set)1