Examples of HighlighterPipeline


Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

            });

            getTable().setColumnControlVisible(false);
            getTable().setEditable(false);             
            getTable().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            getTable().setHighlighters(new HighlighterPipeline(
                new org.jdesktop.swingx.decorator.Highlighter[]{AlternateRowHighlighter.genericGrey}));
            getTable().getHighlighters().addHighlighter(new RolloverHighlighter(Color.BLACK, Color.WHITE ));
            getTable().setHorizontalScrollEnabled(true)
           
            //fix
View Full Code Here

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

      bankTable = new JXTable();
                        bankTable.setSortable(true);
                        bankTable.setEditable(false);
                        bankTable.setColumnControlVisible(false);
                        bankTable.setHorizontalScrollEnabled(true);
                        HighlighterPipeline highlighters = new HighlighterPipeline();
                        highlighters.addHighlighter(new AlternateRowHighlighter());
                        highlighters.addHighlighter(new RolloverHighlighter(Color.BLACK, Color.WHITE));
                        bankTable.setHighlighters(highlighters);
                        bankTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
                        bankTable.addMouseListener(this);
                        scrollPane.setViewportView(bankTable);
    }
    contentPane.add(scrollPane, cc.xy(3, 5));

                scrollPane = new JScrollPane();
    {
     
      addressTable = new JXTable();
                        addressTable.setSortable(true);
                        addressTable.setEditable(false);
                        addressTable.setColumnControlVisible(false);
                        addressTable.setHorizontalScrollEnabled(true);
                        HighlighterPipeline highlighters = new HighlighterPipeline();
                        highlighters.addHighlighter(new AlternateRowHighlighter());
                        highlighters.addHighlighter(new RolloverHighlighter(Color.BLACK, Color.WHITE));
                        addressTable.setHighlighters(highlighters);
                        addressTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
                        addressTable.addMouseListener(this);
                        scrollPane.setViewportView(addressTable);
    }
View Full Code Here

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

      sourceTable = new JXTable();
      sourceTable.setHorizontalScrollEnabled(true);
      sourceTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      sourceTable
          .setHighlighters(new HighlighterPipeline(
              new Highlighter[] { AlternateRowHighlighter.classicLinePrinter }));
      sourceTable.setHighlighters(new HighlighterPipeline(
          new Highlighter[] { AlternateRowHighlighter.genericGrey }));
      sourceTable.getHighlighters().addHighlighter(
          new RolloverHighlighter(Color.BLACK, Color.WHITE));
      sourceTable
          .setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
      sourceTable.setComponentPopupMenu(sourceTableMenu);
      sourceTable.addMouseListener(this);
      scrollPane.setViewportView(sourceTable);
    }
    contentPane.add(scrollPane, cc.xywh(3, 5, 1, 3));

    JButton button = new JButton();
    button.setText(null);
    button.setIcon(ImageManager.getImage(ImageManager.ADD_IMAGE));
    button.setActionCommand("Add To Positive");
    button.addActionListener(this);
    contentPane.add(button, cc.xy(5, 5));

    scrollPane = new JScrollPane();
    {

      addedTaxRegsTable = new JXTable();
      addedTaxRegsTable.setHorizontalScrollEnabled(true);
      addedTaxRegsTable
          .setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      addedTaxRegsTable
          .setHighlighters(new HighlighterPipeline(
              new Highlighter[] { AlternateRowHighlighter.classicLinePrinter }));
      addedTaxRegsTable.setHighlighters(new HighlighterPipeline(
          new Highlighter[] { AlternateRowHighlighter.genericGrey }));
      addedTaxRegsTable.getHighlighters().addHighlighter(
          new RolloverHighlighter(Color.BLACK, Color.WHITE));
      addedTaxRegsTable
          .setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
      addedTaxRegsTable.setComponentPopupMenu(addedTaxRegsTableMenu);
      addedTaxRegsTable.addMouseListener(this);
      scrollPane.setViewportView(addedTaxRegsTable);
    }
    contentPane.add(scrollPane, cc.xy(7, 5));

    button = new JButton();
    button.setText(null);
    button.setIcon(ImageManager.getImage(ImageManager.SUB_IMAGE));
    button.setActionCommand("Add To Negative");
    button.addActionListener(this);
    contentPane.add(button, cc.xy(5, 7));

    scrollPane = new JScrollPane();
    {

      subedTaxRegsTable = new JXTable();
      subedTaxRegsTable.setHorizontalScrollEnabled(true);
      subedTaxRegsTable
          .setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      subedTaxRegsTable
          .setHighlighters(new HighlighterPipeline(
              new Highlighter[] { AlternateRowHighlighter.classicLinePrinter }));
      subedTaxRegsTable.setHighlighters(new HighlighterPipeline(
          new Highlighter[] { AlternateRowHighlighter.genericGrey }));
      subedTaxRegsTable.getHighlighters().addHighlighter(
          new RolloverHighlighter(Color.BLACK, Color.WHITE));
      subedTaxRegsTable
          .setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
View Full Code Here

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

        table = new JXTable();
        table.getTableHeader().setReorderingAllowed(false);
        table.setSortable(true);
        table.setColumnControlVisible(false);
        table.setHorizontalScrollEnabled(true);
        table.setHighlighters(new HighlighterPipeline(
            new Highlighter[]{ AlternateRowHighlighter.genericGrey }));
        table.getHighlighters().addHighlighter(
            new RolloverHighlighter(Color.BLACK, Color.WHITE ));
        table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        tableModel=new ClearRegsManagerTableModel();
View Full Code Here

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

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

                        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

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

           
        }
       
        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

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

                                                                       
                                    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

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

    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

Examples of org.jdesktop.swingx.decorator.HighlighterPipeline

    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
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.