Examples of TableColumnExt


Examples of org.jdesktop.swingx.table.TableColumnExt

        // added then don't create a compound here.
        if (compoundHighlighter != null) {
            stamp = compoundHighlighter.highlight(stamp, adapter);
        }

        TableColumnExt columnExt = getColumnExt(column);

        if (columnExt != null) {
            // JW: fix for #838 - artificial compound installs listener
            // PENDING JW: instead of doing the looping ourselves, how
            // about adding a method prepareRenderer to the TableColumnExt
            for (Highlighter highlighter : columnExt.getHighlighters()) {
                stamp = highlighter.highlight(stamp, adapter);

            }
            // CompoundHighlighter columnHighlighters
            // = new CompoundHighlighter(columnExt.getHighlighters());
View Full Code Here

Examples of org.jdesktop.swingx.table.TableColumnExt

     */
    protected String getColumnToolTipText(MouseEvent event) {
        if (getXTable() == null) return null;
        int column = columnAtPoint(event.getPoint());
        if (column < 0) return null;
        TableColumnExt columnExt = getXTable().getColumnExt(column);
        return columnExt != null ? columnExt.getToolTipText() : null;
    }
View Full Code Here

Examples of org.jdesktop.swingx.table.TableColumnExt

                    else
                        sb.append(month);
                    String currentMonth = sb.toString();
                    int columnIndex = -1;
                    for (int i = 0; i < notAssignedTable.getColumnCount(false); i++) {
                        TableColumnExt tce = notAssignedTable.getColumnExt(i);
                        String brmonthTitle = ObjectUtil.findColumnTxt(539, "B", "RMONTH");
                        if (brmonthTitle.equals(tce.getTitle())) {
                            columnIndex = i;
                            break;
                        }
                    }
                    if (columnIndex != -1) {
View Full Code Here

Examples of org.jdesktop.swingx.table.TableColumnExt

               
                if (getCurrentObject().getClsId() == 160) {//for currency object                
                    PatternHighlighter pattern = new PatternHighlighter();
                    int columnIndex = -1;
                    for (int i = 0; i < objectTable.getColumnCount(false); i++) {
                        TableColumnExt tce = objectTable.getColumnExt(i);
                        String ccTitle = ObjectUtil.findColumnTxt(160, "C", "C");
                        if (ccTitle.equals(tce.getTitle())) {
                            columnIndex = i;
                            break;
                        }
                    }
                    if (columnIndex != -1) {
                        String lc = CurrencyPlugin.getInstance().getLc();
                        String regularExpr = lc;          
                        pattern.setPattern(regularExpr, columnIndex);
                        pattern.setBackground(Color.BLUE);
                        pattern.setForeground(Color.WHITE);
                        highlighters.addHighlighter(pattern);
                    }                   
                } else if (getCurrentObject().getClsId() == 140) {//for ruser object
                    PatternHighlighter pattern = new PatternHighlighter();
                    int columnIndex = -1;
                    for (int i = 0; i < objectTable.getColumnCount(false); i++) {
                        TableColumnExt tce = objectTable.getColumnExt(i);
                        String ccTitle = ObjectUtil.findColumnTxt(140, "RUSER", "RUSER");
                        if (ccTitle.equals(tce.getTitle())) {
                            columnIndex = i;
                            break;
                        }
                    }
                    if (columnIndex != -1) {                       
                        String regularExpr = GlobalValueManager.getValue("SESSION.LOGINUSER");          
                        pattern.setPattern(regularExpr, columnIndex);
                        pattern.setBackground(Color.BLUE);
                        pattern.setForeground(Color.WHITE);
                        highlighters.addHighlighter(pattern);
                    }                                       
                } else if (getCurrentObject().getClsId() == 120) {//for at object
                    PatternHighlighter pattern = new PatternHighlighter();
                    int columnIndex = -1;
                    for (int i = 0; i < objectTable.getColumnCount(false); i++) {
                        TableColumnExt tce = objectTable.getColumnExt(i);
                        String ccTitle = ObjectUtil.findColumnTxt(120, "AT", "AT");
                        if (ccTitle.equals(tce.getTitle())) {
                            columnIndex = i;
                            break;
                        }
                    }
                    if (columnIndex != -1) {                       
View Full Code Here

Examples of org.jdesktop.swingx.table.TableColumnExt

    private String[] getHiddenColumns() {
        List<String> hiddenCols = new ArrayList<String>();
        TableColumnModelExt columnModel = (TableColumnModelExt) table.getColumnModel();
        for (int i = 0; i < columnModel.getColumnCount(); i++) {
            TableColumnExt col = columnModel.getColumnExt(i);
            if (!col.isVisible()) {
                hiddenCols.add((String) col.getHeaderValue());
            }
        }
        return hiddenCols.toArray(new String[0]);
    }
View Full Code Here

Examples of org.jdesktop.swingx.table.TableColumnExt

    }

    private void setHiddenColumns(String[] columns) {
        TableColumnModelExt columnModel = (TableColumnModelExt) table.getColumnModel();
        for (int i = 0; i < columnModel.getColumnCount(); i++) {
            TableColumnExt col = columnModel.getColumnExt(i);
            for (int j = 0; j < columns.length; j++) {
                if (columns[j].equals(col.getHeaderValue())) {
                    col.setVisible(false);
                }
            }
        }
    }
View Full Code Here
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.