/*
 *  The MIT License (MIT)
 *
 *  View the full license at:
 *  https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md
 *
 *  Copyright (c) 2015 Joseph Hendrix
 *
 *  Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree
 *
 */

package edu.wright.hendrix11.familyTree.bean;

import edu.wright.hendrix11.familyTree.dataBean.DataBean;

import java.util.List;

/**
 * @param <E>
 *
 * @author Joe Hendrix
 */
public abstract class AbstractBean<E>
{

    private DataBean<E, ?> dataBean;

    /**
     *
     */
    protected abstract void initialize();

    /**
     * @param dataBean
     */
    protected void initialize(DataBean<E, ?> dataBean)
    {
        this.dataBean = dataBean;
    }

    /**
     * @return
     */
    public List<E> getEntities()
    {
        return dataBean.list();
    }

    /**
     * @return
     */
    public int getPage()
    {
        return dataBean.getPage();
    }

    /**
     * @param page
     */
    public void setPage(int page)
    {
        dataBean.setPage(page);
    }

    /**
     * @return
     */
    public int getNumPages()
    {
        return dataBean.getNumPages();
    }
}

@@ -507,31 +507,8 @@
 n;%0A%0A
-    /**%0A     *%0A     */%0A
     
@@ -550,47 +550,8 @@
 );%0A%0A
-    /**%0A     * @param dataBean%0A     */%0A
     
@@ -667,342 +667,818 @@
   * 
-@return%0A     */%0A    public List%3CE%3E getEntities()%0A    %7B%0A        return dataBean.list();%0A    %7D%0A%0A    /**%0A     * @return%0A     */%0A    public int getPage()%0A    %7B%0A        return dataBean.getPage();%0A    %7D%0A%0A    /**%0A     * @param page%0A     */%0A    public void setPage(int page)%0A    %7B%0A        dataBean.setPage(page);%0A    %7D%0A%0A    /**%0A     * @return
+Returns the list of entities. These entities are specified by the type E.%0A     * %0A     * @return the list of entities%0A     * %0A     * @see DataBean#list%0A     */%0A    public List%3CE%3E getEntities()%0A    %7B%0A        return dataBean.list();%0A    %7D%0A%0A    /**%0A     * Returns the current page number.%0A     * %0A     * @return the current page number%0A     * %0A     * @see DataBean#getPage%0A     */%0A    public int getPage()%0A    %7B%0A        return dataBean.getPage();%0A    %7D%0A%0A    /**%0A     * Sets the current page number.%0A     * %0A     * @param page the current page number%0A     * %0A     * @see DataBean#setPage%0A     */%0A    public void setPage(int page)%0A    %7B%0A        dataBean.setPage(page);%0A    %7D%0A%0A    /**%0A     * Returns the total number of pages.%0A     * %0A     * @return the total number of pages%0A     * %0A     * @see DataBean#getNumPages
 %0A   

Update AbstractBean.java