Package com.art.anette.client.controller

Examples of com.art.anette.client.controller.EmployeeModel


    public Component getTableCellRendererComponent(JTable table, Object value,
                                                   boolean isSelected, boolean hasFocus,
                                                   int row, int column) {
        Component result = super.getTableCellRendererComponent(table, value, isSelected, hasFocus,  row, column);
        if (table.getModel() instanceof EmployeeModel) {
            EmployeeModel m = (EmployeeModel) table.getModel();
            int realRow = table.convertRowIndexToModel(row);
            if (m.getTableEntry(realRow).isDisabled()) {
                result.setForeground(Color.lightGray);
                Map attributes = new HashMap();
                attributes.put(TextAttribute.STRIKETHROUGH, TextAttribute.STRIKETHROUGH_ON);
                result.setFont(result.getFont().deriveFont(attributes));
            } else {
View Full Code Here

TOP

Related Classes of com.art.anette.client.controller.EmployeeModel

Copyright © 2018 www.massapicom. 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.