Package org.apache.struts2.jquery.components

Examples of org.apache.struts2.jquery.components.Chart


              .getValue().toString(), invocation));
        }
      }
    }

    StringBuffer tmpLocation = new StringBuffer(actionMapper.getUriFromActionMapping(new ActionMapping(actionName,
        namespace, method, null)));
    UrlHelper.buildParametersString(requestParameters, tmpLocation, "&");

    setLocation(tmpLocation.toString());
View Full Code Here


            fullPath.append(namespace).append("/");
        } else {
            fullPath.append("/");
        }
        fullPath.append(defaultAction);
        ActionMapping mapping = new ActionMapping();
        mapping.setName(getActionName(fullPath.toString()));
        mapping.setNamespace(getNamespace(fullPath.toString()));
        if(method != null) {
          mapping.setMethod(method);
        }
        actionMap.put(portletMode, mapping);
    }
View Full Code Here

     *
     * @param request the PortletRequest object.
     * @return the namespace of the action.
     */
    protected ActionMapping getActionMapping(final PortletRequest request) {
        ActionMapping mapping = null;
        String actionPath = null;
        if (resetAction(request)) {
            mapping = (ActionMapping) actionMap.get(request.getPortletMode());
        } else {
            actionPath = request.getParameter(ACTION_PARAM);
View Full Code Here

      init.initStaticContentLoader(config, dispatcher);

      prepare = new PrepareOperations(filterConfig.getServletContext(),
          dispatcher);
      execute = new ExecuteOperations(filterConfig.getServletContext(),
          dispatcher);
      this.excludedPatterns = init.buildExcludedPatternsList(dispatcher);

      postInit(dispatcher, filterConfig);
    } finally {
View Full Code Here

public class GaePrepareAndExecuteFilter extends StrutsPrepareAndExecuteFilter {

  @Override
  public void init(FilterConfig filterConfig) throws ServletException {
    InitOperations init = new GaeInitOperations();
    try {
      FilterHostConfig config = new FilterHostConfig(filterConfig);
      init.initLogging(config);
      Dispatcher dispatcher = init.initDispatcher(config);

      init.initStaticContentLoader(config, dispatcher);

      prepare = new PrepareOperations(filterConfig.getServletContext(),
          dispatcher);
      execute = new ExecuteOperations(filterConfig.getServletContext(),
          dispatcher);
      this.excludedPatterns = init.buildExcludedPatternsList(dispatcher);

      postInit(dispatcher, filterConfig);
    } finally {
      init.cleanup();
    }
  }
View Full Code Here

      init.initLogging(config);
      Dispatcher dispatcher = init.initDispatcher(config);

      init.initStaticContentLoader(config, dispatcher);

      prepare = new PrepareOperations(filterConfig.getServletContext(),
          dispatcher);
      execute = new ExecuteOperations(filterConfig.getServletContext(),
          dispatcher);
      this.excludedPatterns = init.buildExcludedPatternsList(dispatcher);
View Full Code Here

  @Override
  public void init(FilterConfig filterConfig) throws ServletException {
    InitOperations init = new GaeInitOperations();
    try {
      FilterHostConfig config = new FilterHostConfig(filterConfig);
      init.initLogging(config);
      Dispatcher dispatcher = init.initDispatcher(config);

      init.initStaticContentLoader(config, dispatcher);
View Full Code Here

    super();
  }

  @Override
  public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
    Component bean = new Chart(stack, req, res);
    return bean;
  }
View Full Code Here

  @Override
    protected void populateParams() {
       
    super.populateParams();

        Chart chart = (Chart) component;
        chart.setData(data);
        chart.setShowBars(showBars);
        chart.setShowLines(showLines);
        chart.setShowPoints(showPoints);
        chart.setShowLegend(showLegend);
        chart.setLabels(labels);
        chart.setLegendPosition(legendPosition);
        chart.setPie(pie);
        chart.setStacked(stacked);
        chart.setLine(line);
        chart.setBar(bar);
        chart.setPoint(point);
        chart.setColors(colors);
        chart.setGrid(grid);
        chart.setGridColor(gridColor);
        chart.setGridBackground(gridBackground);
        chart.setOnPlotClickTopic(onPlotClickTopic);
        chart.setOnPlotHoverTopic(onPlotHoverTopic);
        chart.setBorderWidth(borderWidth);
        chart.setTickColor(tickColor);
        chart.setSeriesClickTopics(seriesClickTopics);
        chart.setSeriesHoverTopics(seriesHoverTopics);
        chart.setLegendColor(legendColor);
        chart.setLegendOpacity(legendOpacity);
        chart.setxAxis1Max(xAxis1Max);
        chart.setxAxis1Min(xAxis1Min);
        chart.setxAxis1Time(xAxis1Time);
        chart.setxAxis1Label(xAxis1Label);
        chart.setxAxis2Max(xAxis2Max);
        chart.setxAxis2Min(xAxis2Min);
        chart.setxAxis2Time(xAxis2Time);
        chart.setxAxis2Label(xAxis2Label);
        chart.setyAxis1Max(yAxis1Max);
        chart.setyAxis1Min(yAxis1Min);
        chart.setyAxis1Time(yAxis1Time);
        chart.setyAxis1Label(yAxis1Label);
        chart.setyAxis2Max(yAxis2Max);
        chart.setyAxis2Min(yAxis2Min);
        chart.setyAxis2Time(yAxis2Time);
        chart.setyAxis2Label(yAxis2Label);
        chart.setOptions(options);
    }
View Full Code Here

     * the {@link PortletActionContext}into an {@link ApplicationMap}.
     *
     * @return a Map of all application attributes.
     */
    protected Map getApplicationMap() {
        return new PortletApplicationMap(getPortletContext());
    }
View Full Code Here

TOP

Related Classes of org.apache.struts2.jquery.components.Chart

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.