portletWindow.getStoredPortlet().getConfiguration().put(new PropertySimple(CFG_TABLE_PREFS, state));
portletWindow.save();
}
});
DashboardPortlet storedPortlet = portletWindow.getStoredPortlet();
if ((null != storedPortlet && null != storedPortlet.getConfiguration())) {
PropertySimple tablePrefs = storedPortlet.getConfiguration().getSimple(CFG_TABLE_PREFS);
ListGrid listGrid = getListGrid();
if (null != tablePrefs && null != listGrid) {
String state = tablePrefs.getStringValue();
listGrid.setViewState(state);
}