Package org.jdesktop.swingx.decorator

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline


        public void updateObjectLayoutTable() {
            if (objectLayoutTable == null) {
                objectLayoutTable = new JXTable();
                getObjectLayoutTable().setHorizontalScrollEnabled(true);                                                                          
                getObjectLayoutTable().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
                getObjectLayoutTable().setHighlighters(new HighlighterPipeline(
                        new Highlighter[]{ AlternateRowHighlighter.genericGrey,
                                            new RolloverHighlighter(Color.BLACK, Color.WHITE)}));                                                                      
                getObjectLayoutTable().setSortable(true);
                getObjectLayoutTable().setEditable(false);           
                getObjectLayoutTable().setComponentPopupMenu(objectLayoutTablePopMenu);   
View Full Code Here


                        values.add(cell);
                    }
                    Row selectedRow = new Row(values, getCurrentObject().getRowType());
                    getCurrentObject().loadChilds(selectedRow);                   
                    ItemTableModel imodel = new ItemTableModel(getCurrentObject(), selectedRow);
                    objectChildTable.setHighlighters(new HighlighterPipeline(
                        new Highlighter[]{ AlternateRowHighlighter.genericGrey,
                                            new RolloverHighlighter(Color.BLACK, Color.WHITE)}));
                    objectChildTable.setModel(imodel);
                    objectChildTable.getColumnExt(objectChildTable.getColumnCount(true) -1).setVisible(false);
                } else
View Full Code Here

           
        }
       
        private void setHighLighting() {
           
                HighlighterPipeline highlighters = new HighlighterPipeline();
                highlighters.addHighlighter(new AlternateRowHighlighter());
                highlighters.addHighlighter(new RolloverHighlighter(Color.BLACK, Color.WHITE));
               
                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) {                       
                        String regularExpr = GlobalValueManager.getValue("APPLICATION.AT");          
                        pattern.setPattern(regularExpr, columnIndex);
                        pattern.setBackground(Color.BLUE);
                        pattern.setForeground(Color.WHITE);
                        highlighters.addHighlighter(pattern);
                    }
                }
                objectTable.setHighlighters(highlighters);
               
        }
View Full Code Here

                                                                       
                                    objectChildTable.setEditable(false);
                                    objectChildTable.setColumnControlVisible(false);
                                    objectChildTable.setHorizontalScrollEnabled(true);
                                    objectChildTable.setSortable(true);
                                    objectChildTable.setHighlighters(new HighlighterPipeline(
                                        new Highlighter[]{ AlternateRowHighlighter.classicLinePrinter }));
                                    objectChildTable.getHighlighters().addHighlighter(
                                        new RolloverHighlighter(Color.BLACK, Color.WHITE ));
                                   
                                    //previewPane
View Full Code Here

    panel = new StackTraceView();
    panel.setLayout(new BorderLayout());
    panel.setModel(new StackTraceTableModel(stackTrace));
    panel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    panel.setColumnControlVisible(true);
    panel.setHighlighters(new HighlighterPipeline(
        new Highlighter[] { new AlternateRowHighlighter() }));   
    return panel;
  }
View Full Code Here

    table.setModel(getTableModel());
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(getTableMouseListener());
    table.setColumnControlVisible(true);
    table.setHighlighters(new HighlighterPipeline(
        new Highlighter[] { new AlternateRowHighlighter() }));
    JScrollPane spTable = new JScrollPane(table);
    tablePanel.add(spTable);
   
    getMainPanel().add(tablePanel);   
View Full Code Here

    table.setModel(getTableModel());
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(getTableMouseListener());
    table.setColumnControlVisible(true);
    table.setHighlighters(new HighlighterPipeline(
        new Highlighter[] { new AlternateRowHighlighter() }));
    JScrollPane spTable = new JScrollPane(table);
    tablePanel.add(spTable);
   
    getMainPanel().add(tablePanel);   
View Full Code Here

      }
    };
    table.addMouseListener(tableMouseListener);
    table.setColumnControlVisible(true);
    table.setHighlighters(new HighlighterPipeline(
        new Highlighter[] { new AlternateRowHighlighter() }));
    tablePanel.add(spTable);

  }
View Full Code Here

    table.setModel(getTableModel());
    table.setColumnControlVisible(true);
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(getTableMouseListener());
    table.setColumnControlVisible(true);
    table.setHighlighters(new HighlighterPipeline(
        new Highlighter[] { new AlternateRowHighlighter() }));
    JScrollPane spTable = new JScrollPane(table);
    tablePanel.add(spTable);

    return mainPanel;
View Full Code Here

    table.setModel(getTableModel());
    table.setColumnControlVisible(true);
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    table.addMouseListener(getTableMouseListener());
    table.setColumnControlVisible(true);
    table.setHighlighters(new HighlighterPipeline(
        new Highlighter[] { new AlternateRowHighlighter() }));
    JScrollPane spTable = new JScrollPane(table);
    tablePanel.add(spTable);
    mainPanel.add(tablePanel);
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.decorator.HighlighterPipeline

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.