/** * Handle the "reset tool" option from the Title bar. */ public void doReset(RunData runData, Context context) { // access the portlet element id to find "our" state (i.e. the state for this portlet) String peid = ((JetspeedRunData) runData).getJs_peid(); SessionState state = ((JetspeedRunData) runData).getPortletSessionState(peid); // clear this state resetTool(state); // // make sure the Main panel is updated String main = VelocityPortletPaneledAction.mainPanelUpdateId(peid); schedulePeerFrameRefresh(main); } // doReset
/** * Handle the "reset tool" option from the Title bar. */ public void doReset(RunData runData, Context context) { // access the portlet element id to find "our" state (i.e. the state for this portlet) String peid = ((JetspeedRunData) runData).getJs_peid(); SessionState state = ((JetspeedRunData) runData).getPortletSessionState(peid); // clear this state resetTool(state); // // make sure the Main panel is updated String main = VelocityPortletPaneledAction.mainPanelUpdateId(peid); schedulePeerFrameRefresh(main); } // doReset
/** * Handle a request to set options. */ public void doOptions(RunData runData, Context context) { // ignore if not allowed if (!allowedToOptions()) { return; //msg = "you do not have permission to set options for this Worksite."; } Placement placement = ToolManager.getCurrentPlacement(); String pid = null; if (placement != null) pid = placement.getId(); SessionState state = ((JetspeedRunData) runData).getPortletSessionState(pid); // go into options mode state.setAttribute(STATE_MODE, MODE_OPTIONS); // disable auto-updates while editing disableObservers(state); // if we're not in the main panel for this tool, schedule an update of the main panel String currentPanelId = runData.getParameters().getString(ActionURL.PARAM_PANEL); if (!LAYOUT_MAIN.equals(currentPanelId)) { String mainPanelId = mainPanelUpdateId(pid); schedulePeerFrameRefresh(mainPanelId); } } // doOptions
/** * Handle a request to set options. */ public void doOptions(RunData runData, Context context) { // ignore if not allowed if (!allowedToOptions()) { return; //msg = "you do not have permission to set options for this Worksite."; } Placement placement = ToolManager.getCurrentPlacement(); String pid = null; if (placement != null) pid = placement.getId(); SessionState state = ((JetspeedRunData) runData).getPortletSessionState(pid); // go into options mode state.setAttribute(STATE_MODE, MODE_OPTIONS); // disable auto-updates while editing disableObservers(state); // if we're not in the main panel for this tool, schedule an update of the main panel String currentPanelId = runData.getParameters().getString(ActionURL.PARAM_PANEL); if (!LAYOUT_MAIN.equals(currentPanelId)) { String mainPanelId = mainPanelUpdateId(pid); schedulePeerFrameRefresh(mainPanelId); } } // doOptions