Search in sources :

Example 1 with CCPageTitle

use of com.sun.web.ui.view.pagetitle.CCPageTitle in project OpenAM by OpenRock.

the class DelegationViewBean method createChild.

protected View createChild(String name) {
    View view = null;
    if (name.equals(TBL_SEARCH)) {
        populateTableModelEx();
        view = new CCActionTable(this, tblModel, name);
    } else if (name.equals(PAGETITLE)) {
        view = new CCPageTitle(this, ptModel, name);
    } else if (tblModel.isChildSupported(name)) {
        view = tblModel.createChild(this, name);
    } else if (ptModel.isChildSupported(name)) {
        view = ptModel.createChild(this, name);
    } else {
        view = super.createChild(name);
    }
    return view;
}
Also used : CCActionTable(com.sun.web.ui.view.table.CCActionTable) View(com.iplanet.jato.view.View) CCPageTitle(com.sun.web.ui.view.pagetitle.CCPageTitle)

Example 2 with CCPageTitle

use of com.sun.web.ui.view.pagetitle.CCPageTitle in project OpenAM by OpenRock.

the class ServerConfigXMLViewBean method createChild.

protected View createChild(String name) {
    View view = null;
    if (name.equals(TBL_SERVERS)) {
        SerializedField szCache = (SerializedField) getChild(SZ_CACHE_SERVER);
        populateServerTableModel((List) szCache.getSerializedObj());
        view = new CCActionTable(this, tblServerModel, name);
    } else if (name.equals(TBL_USERS)) {
        SerializedField szCache = (SerializedField) getChild(SZ_CACHE_USER);
        populateUserTableModel((List) szCache.getSerializedObj());
        view = new CCActionTable(this, tblUserModel, name);
    } else if (name.equals(PGTITLE_THREE_BTNS)) {
        view = new CCPageTitle(this, ptModel, name);
    } else if (name.equals(PROPERTY_ATTRIBUTE)) {
        view = new AMPropertySheet(this, propertySheetModel, name);
    } else if (propertySheetModel.isChildSupported(name)) {
        view = propertySheetModel.createChild(this, name, getModel());
    } else if (ptModel.isChildSupported(name)) {
        view = ptModel.createChild(this, name);
    } else if (tblServerModel.isChildSupported(name)) {
        view = tblServerModel.createChild(this, name);
    } else if (tblUserModel.isChildSupported(name)) {
        view = tblUserModel.createChild(this, name);
    } else {
        view = super.createChild(name);
    }
    return view;
}
Also used : SerializedField(com.sun.identity.console.components.view.html.SerializedField) AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) List(java.util.List) CCActionTable(com.sun.web.ui.view.table.CCActionTable) View(com.iplanet.jato.view.View) CCPageTitle(com.sun.web.ui.view.pagetitle.CCPageTitle)

Example 3 with CCPageTitle

use of com.sun.web.ui.view.pagetitle.CCPageTitle in project OpenAM by OpenRock.

the class NewAuthInstanceViewBean method createChild.

protected View createChild(String name) {
    View view = null;
    if (name.equals(PGTITLE_TWO_BTNS)) {
        view = new CCPageTitle(this, ptModel, name);
    } else if (name.equals(PROPERTY_ATTRIBUTE)) {
        view = new AMPropertySheet(this, propertySheetModel, name);
    } else if (propertySheetModel.isChildSupported(name)) {
        view = propertySheetModel.createChild(this, name, getModel());
        if (name.equals(INSTANCE_TYPE)) {
            //set the available options for the radio button
            CCRadioButton radio = (CCRadioButton) view;
            radio.setOptions(createAuthTypeOptionList());
        }
    } else if (ptModel.isChildSupported(name)) {
        view = ptModel.createChild(this, name);
    } else {
        view = super.createChild(name);
    }
    return view;
}
Also used : CCRadioButton(com.sun.web.ui.view.html.CCRadioButton) AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) View(com.iplanet.jato.view.View) CCPageTitle(com.sun.web.ui.view.pagetitle.CCPageTitle)

Example 4 with CCPageTitle

use of com.sun.web.ui.view.pagetitle.CCPageTitle in project OpenAM by OpenRock.

the class SubConfigEditViewBean method createChild.

protected View createChild(String name) {
    if (!populatedSubConfigTable && name.equals(AMPropertySheetModel.TBL_SUB_CONFIG)) {
        populatedSubConfigTable = true;
        SubConfigModel model = (SubConfigModel) getModel();
        if (model.hasGlobalSubSchema()) {
            SerializedField szCache = (SerializedField) getChild(SZ_CACHE);
            populateTableModel(szCache.<List<SMSubConfig>>getSerializedObj());
        }
    }
    View view = null;
    if (name.equals(PGTITLE_TWO_BTNS)) {
        view = new CCPageTitle(this, ptModel, name);
    } else if (name.equals(PROPERTY_ATTRIBUTE)) {
        view = new AMPropertySheet(this, propertySheetModel, name);
    } else if (propertySheetModel.isChildSupported(name)) {
        view = propertySheetModel.createChild(this, name, getModel());
    } else if (ptModel.isChildSupported(name)) {
        view = ptModel.createChild(this, name);
    } else {
        view = super.createChild(name);
    }
    return view;
}
Also used : SerializedField(com.sun.identity.console.components.view.html.SerializedField) SMSubConfig(com.sun.identity.console.base.model.SMSubConfig) SubConfigModel(com.sun.identity.console.service.model.SubConfigModel) AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) View(com.iplanet.jato.view.View) CCPageTitle(com.sun.web.ui.view.pagetitle.CCPageTitle)

Example 5 with CCPageTitle

use of com.sun.web.ui.view.pagetitle.CCPageTitle in project OpenAM by OpenRock.

the class STSHomeViewBean method createChild.

protected View createChild(String name) {
    View view;
    if (name.equals(TBL_REST_STS_INSTANCES)) {
        Set<String> publishedInstances = getPublishedInstancesFromCache(REST_STS_PUBLISHED_INSTANCES_CACHE_KEY);
        if (!CollectionUtils.isEmpty(publishedInstances)) {
            populateRestSTSTableModel(publishedInstances);
        } else {
            setRestSTSInstanceNamesInTable();
        }
        view = new CCActionTable(this, tblModelRestSTSInstances, name);
    } else if (name.equals(TBL_SOAP_STS_INSTANCES)) {
        Set<String> publishedInstances = getPublishedInstancesFromCache(SOAP_STS_PUBLISHED_INSTANCES_CACHE_KEY);
        if (!CollectionUtils.isEmpty(publishedInstances)) {
            populateSoapSTSTableModel(publishedInstances);
        } else {
            setSoapSTSInstanceNamesInTable();
        }
        view = new CCActionTable(this, tblModelSoapSTSInstances, name);
    } else if (name.equals(PAGETITLE)) {
        view = new CCPageTitle(this, ptModel, name);
    } else if (tblModelRestSTSInstances.isChildSupported(name)) {
        view = tblModelRestSTSInstances.createChild(this, name);
    } else if (tblModelSoapSTSInstances.isChildSupported(name)) {
        view = tblModelSoapSTSInstances.createChild(this, name);
    } else if (ptModel.isChildSupported(name)) {
        view = ptModel.createChild(this, name);
    } else {
        view = super.createChild(name);
    }
    return view;
}
Also used : HashSet(java.util.HashSet) Set(java.util.Set) CCActionTable(com.sun.web.ui.view.table.CCActionTable) View(com.iplanet.jato.view.View) CCPageTitle(com.sun.web.ui.view.pagetitle.CCPageTitle)

Aggregations

View (com.iplanet.jato.view.View)17 CCPageTitle (com.sun.web.ui.view.pagetitle.CCPageTitle)17 CCActionTable (com.sun.web.ui.view.table.CCActionTable)13 SerializedField (com.sun.identity.console.components.view.html.SerializedField)9 AMPropertySheet (com.sun.identity.console.base.AMPropertySheet)6 CCStaticTextField (com.sun.web.ui.view.html.CCStaticTextField)3 CCRadioButton (com.sun.web.ui.view.html.CCRadioButton)2 HREF (com.iplanet.jato.view.html.HREF)1 SMSubConfig (com.sun.identity.console.base.model.SMSubConfig)1 SubConfigModel (com.sun.identity.console.service.model.SubConfigModel)1 CCDropDownMenu (com.sun.web.ui.view.html.CCDropDownMenu)1 CCHref (com.sun.web.ui.view.html.CCHref)1 CCTabs (com.sun.web.ui.view.tabs.CCTabs)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 List (java.util.List)1 Map (java.util.Map)1 Set (java.util.Set)1