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;
}
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;
}
use of com.sun.web.ui.view.pagetitle.CCPageTitle in project OpenAM by OpenRock.
the class AuthConfigViewBean method createChild.
protected View createChild(String name) {
View view = null;
if (!tablePopulated) {
populateEntryTable();
}
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 (ptModel.isChildSupported(name)) {
view = ptModel.createChild(this, name);
} else if (name.equals(ACTION_TILED_VIEW)) {
view = new AuthActionTiledView(this, entryTableModel, name);
} else if (name.equals(AUTH_ENTRY_TABLE)) {
CCActionTable table = new CCActionTable(this, entryTableModel, name);
table.setTiledView((AuthActionTiledView) getChild(ACTION_TILED_VIEW));
view = table;
} else if (propertySheetModel.isChildSupported(name)) {
view = propertySheetModel.createChild(this, name, getModel());
} else {
view = super.createChild(name);
}
return view;
}
use of com.sun.web.ui.view.pagetitle.CCPageTitle in project OpenAM by OpenRock.
the class AuthPropertiesViewBean method createChild.
protected View createChild(String name) {
if (!tablePopulated) {
populateConfigTable();
populateInstanceTable();
}
View view = null;
if (name.equals(PROPERTY_ATTRIBUTE)) {
view = new AMPropertySheet(this, propertySheetModel, name);
} else if (propertySheetModel.isChildSupported(name)) {
view = propertySheetModel.createChild(this, name, getModel());
} else if (name.equals(PGTITLE_TWO_BTNS)) {
view = new CCPageTitle(this, ptModel, name);
} else if (ptModel.isChildSupported(name)) {
view = ptModel.createChild(this, name);
} else {
view = super.createChild(name);
}
return view;
}
use of com.sun.web.ui.view.pagetitle.CCPageTitle in project OpenAM by OpenRock.
the class SelectTypeViewBeanBase 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(getTypeOptionsChildName())) {
CCRadioButton rb = (CCRadioButton) view;
rb.setOptions(getTypeOptions());
}
} else if (ptModel.isChildSupported(name)) {
view = ptModel.createChild(this, name);
} else {
view = super.createChild(name);
}
return view;
}
Aggregations