Package clips.kek.resolution

Source Code of clips.kek.resolution.TableCellRendererResolutionList

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package clips.kek.resolution;

import clips.delegate.kek.CommitteeResolutionData;
import cli_fmw.utils.DefaultColors;
import cli_fmw.utils.ErrorValue;
import cli_fmw.main.ClipsException;
import cli_fmw.utils.sorted_table.renderer.LabelRenderer;
import java.awt.Color;
import java.awt.Component;
import java.util.ArrayList;
import javax.swing.JTable;

/**
*
* @author lacoste
*/
public class TableCellRendererResolutionList extends LabelRenderer {

    private ArrayList<CommitteeResolutionData> comResList;

    public TableCellRendererResolutionList(ArrayList<CommitteeResolutionData> comResList) {
        this.comResList = comResList;
    }

    @Override
    public void modifyErrorTableCellRendererComponent(JTable table, Object value, int row, int col) throws ClipsException {
        CommitteeResolutionData comRes = comResList.get(row);

        if (comRes.isRendered()) {
            render().setBackground(Color.LIGHT_GRAY);
        }
    }

}
TOP

Related Classes of clips.kek.resolution.TableCellRendererResolutionList

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.