actionName,
"content/images/" + actionName + ".gif"); // TODO: HARD-CODED .gif
PortletEntity entity = getCurrentPortletEntity();
PortletURLProviderImpl url =
new PortletURLProviderImpl(Jetspeed.getCurrentRequestContext(),
windowAccess.getPortletWindow(getCurrentFragment()));
switch (actionId)
{
case JetspeedActions.INDEX_MAXIMIZE:
url.setWindowState(WindowState.MAXIMIZED);
break;
case JetspeedActions.INDEX_MINIMIZE:
url.setWindowState(WindowState.MINIMIZED);
break;
case JetspeedActions.INDEX_NORMAL:
url.setWindowState(WindowState.NORMAL);
break;
case JetspeedActions.INDEX_VIEW:
url.setPortletMode(PortletMode.VIEW);
break;
case JetspeedActions.INDEX_EDIT:
url.setPortletMode(PortletMode.EDIT);
break;
case JetspeedActions.INDEX_HELP:
url.setPortletMode(PortletMode.HELP);
break;
}
action.setAction(url.toString());
actions.add(action);
return action;
}