use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class ServerConfigInheritViewBean method createTableModel.
private void createTableModel() {
tblPropertyNamesModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblPropertyNames.xml"));
tblPropertyNamesModel.setTitleLabel("label.items");
tblPropertyNamesModel.setActionValue(TBL_COL_PROPERTY_NAME, "table.inherit.property.name.column.name");
tblPropertyNamesModel.setActionValue(TBL_COL_VALUE, "table.inherit.property.name.column.value");
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SMG11NViewBean method handleTblSupportedCharsetsButtonDeleteRequest.
/**
* Handles remove supported container request.
*
* @param event Request Invocation Event.
*/
public void handleTblSupportedCharsetsButtonDeleteRequest(RequestInvocationEvent event) throws ModelControlException {
setSubmitCycle(true);
CCActionTable table = (CCActionTable) getChild(SMG11NModelImpl.ATTRIBUTE_NAME_SUPPORTED_CHARSETS);
table.restoreStateData();
CCActionTableModel tblModel = (CCActionTableModel) propertySheetModel.getModel(SMG11NModelImpl.ATTRIBUTE_NAME_SUPPORTED_CHARSETS);
Integer[] selected = tblModel.getSelectedRows();
if ((selected != null) && (selected.length > 0)) {
OrderedSet tblValues = (OrderedSet) getPageSessionAttribute(SMG11NModelImpl.ATTRIBUTE_NAME_SUPPORTED_CHARSETS);
tblValues.removeAll(selected);
setPageSessionAttribute(SMG11NModelImpl.ATTRIBUTE_NAME_SUPPORTED_CHARSETS, tblValues);
populateSupportedCharsetsTable(tblValues);
}
forwardTo();
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class ServerSiteViewBean method createTableModel.
private void createTableModel() {
tblSiteModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSite.xml"));
tblSiteModel.setTitleLabel("label.items");
tblSiteModel.setActionValue(TBL_SITE_BUTTON_ADD, "table.site.button.new");
tblSiteModel.setActionValue(TBL_SITE_BUTTON_DELETE, "table.site.button.delete");
tblSiteModel.setActionValue(TBL_COL_SITE_NAME, "table.site.name.column.name");
tblSiteModel.setActionValue(TBL_COL_SITE_URL, "table.site.url.column.name");
tblSiteModel.setActionValue(TBL_COL_SITE_SERVERS, "table.site.servers.column.name");
tblServerModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblServer.xml"));
tblServerModel.setTitleLabel("label.items");
tblServerModel.setActionValue(TBL_SERVER_BUTTON_ADD, "table.server.button.new");
tblServerModel.setActionValue(TBL_SERVER_BUTTON_DELETE, "table.server.button.delete");
tblServerModel.setActionValue(TBL_SERVER_BUTTON_CLONE, "table.server.button.clone");
tblServerModel.setActionValue(TBL_COL_SERVER_NAME, "table.server.name.column.name");
tblServerModel.setActionValue(TBL_COL_SITE, "table.server.site.column.name");
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class ServerConfigXMLViewBean method createTableModel.
private void createTableModel() {
tblServerModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblServerConfigXMLServers.xml"));
tblServerModel.setTitleLabel("label.items");
tblServerModel.setActionValue(TBL_SERVERS_COL_NAME, "amconfig.serverconfig.xml.server.table.column.name");
tblServerModel.setActionValue(TBL_SERVERS_COL_HOST, "amconfig.serverconfig.xml.server.table.column.host");
tblServerModel.setActionValue(TBL_SERVERS_COL_PORT, "amconfig.serverconfig.xml.server.table.column.port");
tblServerModel.setActionValue(TBL_SERVERS_COL_TYPE, "amconfig.serverconfig.xml.server.table.column.type");
propertySheetModel.setModel(TBL_SERVERS, tblServerModel);
tblUserModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblServerConfigXMLUsers.xml"));
tblUserModel.setTitleLabel("label.items");
tblUserModel.setActionValue(TBL_USERS_COL_NAME, "amconfig.serverconfig.xml.user.table.column.name");
tblUserModel.setActionValue(TBL_USERS_COL_HOST, "amconfig.serverconfig.xml.user.table.column.host");
tblUserModel.setActionValue(TBL_USERS_COL_PORT, "amconfig.serverconfig.xml.user.table.column.port");
tblUserModel.setActionValue(TBL_USERS_COL_TYPE, "amconfig.serverconfig.xml.user.table.column.type");
propertySheetModel.setModel(TBL_USERS, tblUserModel);
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class WSPersonalProfileServiceViewBean method populateDSAttributeMapListTable.
private void populateDSAttributeMapListTable(Set attributeMap) {
tablePopulated = true;
CCActionTableModel tblModel = (CCActionTableModel) propertySheetModel.getModel(WSPersonalProfileServiceModelImpl.ATTRIBUTE_NAME_DS_ATTRIBUTE_MAP_LIST);
tblModel.clearAll();
boolean firstEntry = true;
int counter = 0;
for (Iterator iter = attributeMap.iterator(); iter.hasNext(); ) {
if (!firstEntry) {
tblModel.appendRow();
} else {
firstEntry = false;
}
String mapping = (String) iter.next();
int idx = mapping.indexOf('=');
if (idx != -1) {
String name = mapping.substring(0, idx);
String attr = mapping.substring(idx + 1);
tblModel.setValue(TBL_DS_ATTRIBUTE_MAP_LIST_DATA_NAME, name);
tblModel.setValue(TBL_DS_ATTRIBUTE_MAP_LIST_DATA_MAP, attr);
tblModel.setValue(TBL_DS_ATTRIBUTE_MAP_LIST_HREF_ACTION, Integer.toString(counter));
tblModel.setValue(TBL_DS_ATTRIBUTE_MAP_LIST_LABEL_ACTION, "webservices.personal.profile.table.dsAttributeMapList.action.edit.label");
}
counter++;
}
setPageSessionAttribute(WSPersonalProfileServiceModelImpl.ATTRIBUTE_NAME_DS_ATTRIBUTE_MAP_LIST, (OrderedSet) attributeMap);
}
Aggregations