Package cli_fmw.utils.sorted_table.renderer.simple

Source Code of cli_fmw.utils.sorted_table.renderer.simple.DirectoryRenderer

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

package cli_fmw.utils.sorted_table.renderer.simple;

import framework.beans.directory.DirectoryBean;
import cli_fmw.delegate.directory.DirectoryItemRO;
import cli_fmw.utils.sorted_table.renderer.LabelRenderer;
import javax.swing.JTable;

/**
*
* @author petr
*/
public class DirectoryRenderer extends LabelRenderer {

    @Override
    protected void modifyErrorTableCellRendererComponent(JTable table, Object value, int row, int col) {
        DirectoryItemRO item = (DirectoryItemRO) value;
        if (!item.isVisible()){
            render().setText(DirectoryBean.HIDE_SYMBOL + render().getText());
            System.out.println("DirectoryRenderer---------------> hidden item: " + render().getText());
        }
    }

}
TOP

Related Classes of cli_fmw.utils.sorted_table.renderer.simple.DirectoryRenderer

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.