本文整理汇总了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());
}
}
示例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);
}
}
示例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;
}
示例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());
}
}
示例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);
}
}
}
示例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());
}
}
示例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);
}
}
}
示例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());
}
}
示例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());
}
}
示例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);
}
}
}
示例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);
}