Package action

Source Code of action.Bar

package action;

import java.util.LinkedList;
import java.util.List;

import action.chart.Element;
import action.chart.Title;

import com.opensymphony.xwork2.Action;

/**
* So this is the class that gets serialized to JSON
* @author tim
*/
public class Bar {
  protected Title title;
  protected List<Element> elements;
 
  public String execute() {
    title = new Title();
    title.setText("Hej");
    elements = new LinkedList<Element>();
    Element e = new Element();
    Object[] data = new Object[] {1,2,3,4,5,6,7,8,9,10};
    e.setValues(data);
    elements.add(e);
    return Action.SUCCESS;
 

  // Getters and Setters follow
  public Title getTitle() {
    return title;
  }
  public void setTitle(Title title) {
    this.title = title;
  }
  public List<Element> getElements() {
    return elements;
  }
  public void setElements(List<Element> elements) {
    this.elements = elements;
  }
}
TOP

Related Classes of action.Bar

TOP
Copyright © 2018 www.massapi.com. 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.