当前位置: 首页>>代码示例>>Java>>正文


Java TableColumnExt.isVisible方法代码示例

本文整理汇总了Java中org.jdesktop.swingx.table.TableColumnExt.isVisible方法的典型用法代码示例。如果您正苦于以下问题:Java TableColumnExt.isVisible方法的具体用法?Java TableColumnExt.isVisible怎么用?Java TableColumnExt.isVisible使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jdesktop.swingx.table.TableColumnExt的用法示例。


在下文中一共展示了TableColumnExt.isVisible方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: updateCountdown

import org.jdesktop.swingx.table.TableColumnExt; //导入方法依赖的package包/类
public void updateCountdown() {
    if (!jSupportsTable.isVisible()) {
        return;
    }
    TableColumnExt col = jSupportsTable.getColumnExt("Countdown");
    if (col.isVisible()) {
        int startX = 0;
        for (int i = 0; i < jSupportsTable.getColumnCount(); i++) {
            if (jSupportsTable.getColumnExt(i).equals(col)) {
                break;
            }
            startX += (jSupportsTable.getColumnExt(i).isVisible()) ? jSupportsTable.getColumnExt(i).getWidth() : 0;
        }
        jSupportsTable.repaint(startX, (int) jSupportsTable.getVisibleRect().getY(), startX + col.getWidth(), (int) jSupportsTable.getVisibleRect().getHeight());
    }
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:17,代码来源:DSWorkbenchSOSRequestAnalyzer.java

示例2: actionPerformed

import org.jdesktop.swingx.table.TableColumnExt; //导入方法依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
    if (e.getActionCommand().equals("Find")) {
        BufferedImage back = ImageUtils.createCompatibleBufferedImage(3, 3, BufferedImage.TRANSLUCENT);
        Graphics g = back.getGraphics();
        g.setColor(new Color(120, 120, 120, 120));
        g.fillRect(0, 0, back.getWidth(), back.getHeight());
        g.setColor(new Color(120, 120, 120));
        g.drawLine(0, 0, 3, 3);
        g.dispose();
        TexturePaint paint = new TexturePaint(back, new Rectangle2D.Double(0, 0, back.getWidth(), back.getHeight()));
        jxFilterPane.setBackgroundPainter(new MattePainter(paint));
        DefaultListModel model = new DefaultListModel();

        for (int i = 0; i < jConquersTable.getColumnCount(); i++) {
            TableColumnExt col = jConquersTable.getColumnExt(i);
            if (col.isVisible() && !col.getTitle().equals("Entfernung") && !col.getTitle().equals("Dorfpunkte")) {
                model.addElement(col.getTitle());
            }
        }
        jXColumnList.setModel(model);
        jXColumnList.setSelectedIndex(0);
        jxFilterPane.setVisible(true);
    }
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:26,代码来源:DSWorkbenchConquersFrame.java

示例3: getNotCollapsedColumns

import org.jdesktop.swingx.table.TableColumnExt; //导入方法依赖的package包/类
@Override
public List<Column> getNotCollapsedColumns() {
    List<Column> visibleColumns = new LinkedList<>();
    for (Column column : columnsOrder) {
        TableColumnExt columnExt = impl.getColumnExt(column);
        if (columnExt != null && columnExt.isVisible()) {
            visibleColumns.add(column);
        }
    }
    return visibleColumns;
}
 
开发者ID:cuba-platform,项目名称:cuba,代码行数:12,代码来源:DesktopAbstractTable.java

示例4: updateTime

import org.jdesktop.swingx.table.TableColumnExt; //导入方法依赖的package包/类
public void updateTime() {
    TableColumnExt firstCol = jSupportsTable.getColumnExt("Früheste Abschickzeit");
    TableColumnExt lastCol = jSupportsTable.getColumnExt("Späteste Abschickzeit");
    if (firstCol.isVisible() && lastCol.isVisible()) {
        int startX = 0;
        for (int i = 0; i < jSupportsTable.getColumnCount(); i++) {
            if (jSupportsTable.getColumnExt(i).equals(firstCol)) {
                break;
            }
            startX += (jSupportsTable.getColumnExt(i).isVisible()) ? jSupportsTable.getColumnExt(i).getWidth() : 0;
        }
        jSupportsTable.repaint(startX, 0, startX + firstCol.getWidth() + lastCol.getWidth(), jSupportsTable.getHeight());
    }
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:15,代码来源:DSWorkbenchSOSRequestAnalyzer.java

示例5: actionPerformed

import org.jdesktop.swingx.table.TableColumnExt; //导入方法依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
    ReportTableTab activeTab = getActiveTab();
    if (e.getActionCommand() != null && activeTab != null) {
        if (e.getActionCommand().equals("Copy")) {
            activeTab.transferSelection(ReportTableTab.TRANSFER_TYPE.COPY_TO_INTERNAL_CLIPBOARD);
        } else if (e.getActionCommand().equals("BBCopy")) {
            activeTab.transferSelection(ReportTableTab.TRANSFER_TYPE.CLIPBOARD_BB);
        } else if (e.getActionCommand().equals("Cut")) {
            activeTab.transferSelection(ReportTableTab.TRANSFER_TYPE.CUT_TO_INTERNAL_CLIPBOARD);
        } else if (e.getActionCommand().equals("Paste")) {
            activeTab.transferSelection(ReportTableTab.TRANSFER_TYPE.FROM_INTERNAL_CLIPBOARD);
        } else if (e.getActionCommand().equals("Delete")) {
            activeTab.deleteSelection(true);
        } else if (e.getActionCommand().equals("Find")) {
            BufferedImage back = ImageUtils.createCompatibleBufferedImage(3, 3, BufferedImage.TRANSLUCENT);
            Graphics g = back.getGraphics();
            g.setColor(new Color(120, 120, 120, 120));
            g.fillRect(0, 0, back.getWidth(), back.getHeight());
            g.setColor(new Color(120, 120, 120));
            g.drawLine(0, 0, 3, 3);
            g.dispose();
            TexturePaint paint = new TexturePaint(back, new Rectangle2D.Double(0, 0, back.getWidth(), back.getHeight()));
            jxSearchPane.setBackgroundPainter(new MattePainter(paint));
            DefaultListModel model = new DefaultListModel();

            for (int i = 0; i < activeTab.getReportTable().getColumnCount(); i++) {
                TableColumnExt col = activeTab.getReportTable().getColumnExt(i);
                if (col.isVisible()) {
                    if (!col.getTitle().equals("Status") && !col.getTitle().equals("Typ") && !col.getTitle().equals("Sonstiges")) {
                        model.addElement(col.getTitle());
                    }
                }
            }
            jXColumnList.setModel(model);
            jXColumnList.setSelectedIndex(0);
            jxSearchPane.setVisible(true);
        }
    }
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:41,代码来源:DSWorkbenchReportFrame.java

示例6: updateCountdown

import org.jdesktop.swingx.table.TableColumnExt; //导入方法依赖的package包/类
protected void updateCountdown() {
    TableColumnExt col = jAttackTable.getColumnExt("Verbleibend");
    if (col.isVisible()) {
        int startX = 0;
        for (int i = 0; i < jAttackTable.getColumnCount(); i++) {
            if (jAttackTable.getColumnExt(i).equals(col)) {
                break;
            }
            startX += (jAttackTable.getColumnExt(i).isVisible()) ? jAttackTable.getColumnExt(i).getWidth() : 0;
        }

        jAttackTable.repaint(startX, 0, startX + col.getWidth(), jAttackTable.getHeight());
    }
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:15,代码来源:DSWorkbenchDoItYourselfAttackPlaner.java

示例7: actionPerformed

import org.jdesktop.swingx.table.TableColumnExt; //导入方法依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
    RankTableTab activeTab = getActiveTab();
    if (e.getActionCommand() != null && activeTab != null) {
        if (e.getActionCommand().equals("Find")) {
            BufferedImage back = ImageUtils.createCompatibleBufferedImage(3, 3, BufferedImage.TRANSLUCENT);
            Graphics g = back.getGraphics();
            g.setColor(new Color(120, 120, 120, 120));
            g.fillRect(0, 0, back.getWidth(), back.getHeight());
            g.setColor(new Color(120, 120, 120));
            g.drawLine(0, 0, 3, 3);
            g.dispose();
            TexturePaint paint = new TexturePaint(back, new Rectangle2D.Double(0, 0, back.getWidth(), back.getHeight()));
            jxSearchPane.setBackgroundPainter(new MattePainter(paint));
            DefaultListModel model = new DefaultListModel();
            
            for (int i = 0; i < activeTab.getRankTable().getColumnCount(); i++) {
                TableColumnExt col = activeTab.getRankTable().getColumnExt(i);
                if (col.isVisible()) {
                    if (col.getTitle().equals("Name") || col.getTitle().equals("Tag") || col.getTitle().equals("Stamm")) {
                        model.addElement(col.getTitle());
                    }
                    
                }
            }
            jXColumnList.setModel(model);
            jXColumnList.setSelectedIndex(0);
            jxSearchPane.setVisible(true);
        }
    }
    
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:33,代码来源:DSWorkbenchRankFrame.java

示例8: updateCountdown

import org.jdesktop.swingx.table.TableColumnExt; //导入方法依赖的package包/类
public void updateCountdown() {
    TableColumnExt col = jxAttackTable.getColumnExt("Verbleibend");
    if (col.isVisible()) {
        int startX = 0;
        for (int i = 0; i < jxAttackTable.getColumnCount(); i++) {
            if (jxAttackTable.getColumnExt(i).equals(col)) {
                break;
            }
            startX += (jxAttackTable.getColumnExt(i).isVisible()) ? jxAttackTable.getColumnExt(i).getWidth() : 0;
        }
        jxAttackTable.repaint(startX, (int) jxAttackTable.getVisibleRect().getY(), startX + col.getWidth(), (int) jxAttackTable.getVisibleRect().getHeight());
    }
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:14,代码来源:AttackTableTab.java

示例9: updateTime

import org.jdesktop.swingx.table.TableColumnExt; //导入方法依赖的package包/类
public void updateTime() {
    TableColumnExt col = jxAttackTable.getColumnExt("Abschickzeit");
    if (col.isVisible()) {
        int startX = 0;
        for (int i = 0; i < jxAttackTable.getColumnCount(); i++) {
            if (jxAttackTable.getColumnExt(i).equals(col)) {
                break;
            }
            startX += (jxAttackTable.getColumnExt(i).isVisible()) ? jxAttackTable.getColumnExt(i).getWidth() : 0;
        }
        jxAttackTable.repaint(startX, 0, startX + col.getWidth(), jxAttackTable.getHeight());
    }
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:14,代码来源:AttackTableTab.java

示例10: actionPerformed

import org.jdesktop.swingx.table.TableColumnExt; //导入方法依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
    AttackTableTab activeTab = getActiveTab();
    int idx = jAttackTabPane.getSelectedIndex();
    if (e.getActionCommand() != null && activeTab != null) {
        if (e.getActionCommand().equals("TimeChange")) {
            activeTab.fireChangeTimeEvent();
        } else if (e.getActionCommand().equals("UnitChange")) {
            activeTab.fireChangeUnitEvent();
        } else if (e.getActionCommand().equals("Recolor")) {
            activeTab.updateSortHighlighter();
        } else if (e.getActionCommand().equals("ExportScript")) {
            activeTab.fireExportScriptEvent();
        } else if (e.getActionCommand().equals("Copy")) {
            activeTab.transferSelection(AttackTableTab.TRANSFER_TYPE.COPY_TO_INTERNAL_CLIPBOARD);
        } else if (e.getActionCommand().equals("BBCopy")) {
            activeTab.transferSelection(AttackTableTab.TRANSFER_TYPE.CLIPBOARD_BB);
        } else if (e.getActionCommand().equals("Cut")) {
            activeTab.transferSelection(AttackTableTab.TRANSFER_TYPE.CUT_TO_INTERNAL_CLIPBOARD);
            jAttackTabPane.setSelectedIndex(idx);
        } else if (e.getActionCommand().equals("Paste")) {
            activeTab.transferSelection(AttackTableTab.TRANSFER_TYPE.FROM_INTERNAL_CLIPBOARD);
            jAttackTabPane.setSelectedIndex(idx);
        } else if (e.getActionCommand().equals("Delete")) {
            activeTab.deleteSelection(true);
        } else if (e.getActionCommand().equals("Find")) {
            BufferedImage back = ImageUtils.createCompatibleBufferedImage(3, 3, BufferedImage.TRANSLUCENT);
            Graphics g = back.getGraphics();
            g.setColor(new Color(120, 120, 120, 120));
            g.fillRect(0, 0, back.getWidth(), back.getHeight());
            g.setColor(new Color(120, 120, 120));
            g.drawLine(0, 0, 3, 3);
            g.dispose();
            TexturePaint paint = new TexturePaint(back, new Rectangle2D.Double(0, 0, back.getWidth(), back.getHeight()));

            jxSearchPane.setBackgroundPainter(new MattePainter(paint));
            DefaultListModel model = new DefaultListModel();

            for (int i = 0; i < activeTab.getAttackTable().getColumnCount(); i++) {
                TableColumnExt col = activeTab.getAttackTable().getColumnExt(i);
                if (col.isVisible()) {
                    if (!col.getTitle().equals("Einheit") && !col.getTitle().equals("Typ") && !col.getTitle().equals("Sonstiges")
                            && !col.getTitle().equals("Abschickzeit") && !col.getTitle().equals("Ankunftzeit") && !col.getTitle().equals("Verbleibend")) {
                        model.addElement(col.getTitle());
                    }
                }
            }
            jXColumnList.setModel(model);
            jXColumnList.setSelectedIndex(0);
            jxSearchPane.setVisible(true);
        }
    }
}
 
开发者ID:Torridity,项目名称:dsworkbench,代码行数:54,代码来源:DSWorkbenchAttackFrame.java

示例11: ColumnState

import org.jdesktop.swingx.table.TableColumnExt; //导入方法依赖的package包/类
/**
 * Constructor used by the Property.
 * 
 * @param columnExt
 * @param viewIndex
 */
public ColumnState(TableColumnExt columnExt, int viewIndex) {
    this(columnExt.getWidth(), columnExt.getPreferredWidth(),
            columnExt.getModelIndex(), columnExt.isVisible(), viewIndex);
}
 
开发者ID:RockManJoe64,项目名称:swingx,代码行数:11,代码来源:XProperties.java


注:本文中的org.jdesktop.swingx.table.TableColumnExt.isVisible方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。