use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SMDiscoveryBootstrapRefOffViewBeanBase method createSecurityMechIDTable.
protected void createSecurityMechIDTable() {
CCActionTableModel tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblDiscoverySecurityMechID.xml"));
tblModel.setTitleLabel("label.items");
tblModel.setActionValue(TBL_SECURITY_MECH_ID_COL_ID, "discovery.service.bootstrapResOff.securityMechID.ID");
tblModel.setActionValue(TBL_SECURITY_MECH_ID_COL_ACTION, "discovery.service.bootstrapResOff.securityMechID.Action");
tblModel.setActionValue(TBL_SECURITY_MECH_ID_ADD_BTN, "discovery.service.bootstrapResOff.securityMechID.add.button");
tblModel.setActionValue(TBL_SECURITY_MECH_ID_DELETE_BTN, "discovery.service.bootstrapResOff.securityMechID.delete.button");
propertySheetModel.setModel(ATTRIBUTE_NAME_SECURITY_MECH_ID, tblModel);
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SMG11NViewBean method createCharsetAliasTableModel.
private void createCharsetAliasTableModel() {
CCActionTableModel tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblG11NCharsetAlias.xml"));
tblModel.setTitleLabel("label.items");
tblModel.setActionValue(TBL_CHARSET_ALIAS_COL_MIMENAME, "globalization.service.table.CharsetAlias.mimeName");
tblModel.setActionValue(TBL_CHARSET_ALIAS_COL_JAVANAME, "globalization.service.table.CharsetAlias.javaName");
tblModel.setActionValue(TBL_CHARSET_ALIAS_ADD_BTN, "globalization.service.table.CharsetAlias.add.button");
tblModel.setActionValue(TBL_CHARSET_ALIAS_DELETE_BTN, "globalization.service.table.CharsetAlias.delete.button");
propertySheetModel.setModel(SMG11NModelImpl.ATTRIBUTE_NAME_CHARSET_ALIAS, tblModel);
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SMG11NViewBean method populateCharsetAliasTable.
private void populateCharsetAliasTable(Set charsets) {
tablePopulated = true;
CCActionTableModel tblModel = (CCActionTableModel) propertySheetModel.getModel(SMG11NModelImpl.ATTRIBUTE_NAME_CHARSET_ALIAS);
tblModel.clearAll();
boolean firstEntry = true;
int counter = 0;
for (Iterator iter = charsets.iterator(); iter.hasNext(); ) {
String c = (String) iter.next();
CharsetAliasEntry entry = new CharsetAliasEntry(c);
if (entry.isValid()) {
if (!firstEntry) {
tblModel.appendRow();
} else {
firstEntry = false;
}
tblModel.setValue(TBL_CHARSET_ALIAS_DATA_MIMENAME, entry.strMimeName);
tblModel.setValue(TBL_CHARSET_ALIAS_DATA_JAVANAME, entry.strJavaName);
tblModel.setValue(TBL_CHARSET_ALIAS_HREF_ACTION, Integer.toString(counter));
}
counter++;
}
setPageSessionAttribute(SMG11NModelImpl.ATTRIBUTE_NAME_CHARSET_ALIAS, (OrderedSet) charsets);
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SMDiscoveryServiceViewBean method createBootstrapResOffTableModel.
private void createBootstrapResOffTableModel() {
CCActionTableModel tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblDiscoveryBootstrapResOff.xml"));
tblModel.setTitleLabel("label.items");
tblModel.setActionValue(TBL_BOOTSTRAP_RES_OFF_COL_SERVICE_TYPE, "discovery.service.table.bootstrapResOff.serviceType");
tblModel.setActionValue(TBL_BOOTSTRAP_RES_OFF_COL_ABSTRACT, "discovery.service.table.bootstrapResOff.abstract");
tblModel.setActionValue(TBL_BOOTSTRAP_RES_OFF_ADD_BTN, "discovery.service.table.bootstrapResOff.add.button");
tblModel.setActionValue(TBL_BOOTSTRAP_RES_OFF_DELETE_BTN, "discovery.service.table.bootstrapResOff.delete.button");
propertySheetModel.setModel(AMAdminConstants.DISCOVERY_SERVICE_NAME_BOOTSTRAP_RES_OFF, tblModel);
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class AuthPropertiesViewBean method createConfigurationTable.
/*
* Responsible for creating the model used for the authentication instances
* configurations.
*/
private void createConfigurationTable() {
CCActionTableModel tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblAuthConfiguration.xml"));
tblModel.setTitleLabel("label.items");
tblModel.setActionValue(CONFIG_NAME_COLUMN_LABEL, "authentication.configuration.table.name.column");
tblModel.setActionValue(CONFIG_ACTION_COLUMN_LABEL, "authentication.configuration.table.action.column");
tblModel.setActionValue(CREATE_CONFIG_BUTTON, "authentication.configuration.table.create.button");
tblModel.setActionValue(DELETE_CONFIG_BUTTON, "authentication.configuration.table.delete.button");
propertySheetModel.setModel(AUTH_CONFIG_TABLE, tblModel);
}
Aggregations