Package Controle

Source Code of Controle.ControleItemPlanoDeAcao

package Controle;
import Entidade.ItemPlanoDeAcao;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean
@ViewScoped
public class ControleItemPlanoDeAcao implements Serializable{
    ItemPlanoDeAcao ipda = new ItemPlanoDeAcao();
    private ItemPlanoDeAcao itemPlanoAcao;
    private List<ItemPlanoDeAcao> itensPlanoAcao;

    @PostConstruct
    public void init() {
        itemPlanoAcao = new ItemPlanoDeAcao();
        itensPlanoAcao = new ArrayList<ItemPlanoDeAcao>();
    }   
    public ItemPlanoDeAcao getIpda() {
        return ipda;
    }

    public ItemPlanoDeAcao getItemPlanoAcao() {
        return itemPlanoAcao;
    }

    public List<ItemPlanoDeAcao> getItensPlanoAcao() {
        return itensPlanoAcao;
    }

    public void setIpda(ItemPlanoDeAcao ipda) {
        this.ipda = ipda;
    }

    public void setItemPlanoAcao(ItemPlanoDeAcao itemPlanoAcao) {
        this.itemPlanoAcao = itemPlanoAcao;
    }

    public void setItensPlanoAcao(List<ItemPlanoDeAcao> itensPlanoAcao) {
        this.itensPlanoAcao = itensPlanoAcao;
    }
    public void adicionar(ItemPlanoDeAcao itemPlan) {
        this.itemPlanoAcao = itemPlan;
        this.itensPlanoAcao.add(this.itemPlanoAcao);
        this.itemPlanoAcao = new ItemPlanoDeAcao();
        setItensPlanoAcao(this.itensPlanoAcao);
    }
}
TOP

Related Classes of Controle.ControleItemPlanoDeAcao

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.