javax.swing.JTable.isEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中javax.swing.JTable.isEnabled()方法的一些代码示例,展示了JTable.isEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTable.isEnabled()方法的具体详情如下:
包路径:javax.swing.JTable
类名称:JTable
方法名:isEnabled

JTable.isEnabled介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-debugger-common2

@Override
  public void mouseClicked(MouseEvent evt) {
    if (procTable.isEnabled() && !isTableInfoShown()) {
      procTableClicked(evt);
    }
  }
});

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

private boolean shouldIgnore(MouseEvent e) { 
  return !table.isEnabled(); 
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

private boolean shouldIgnore(MouseEvent e) { 
  return !table.isEnabled(); 
}

代码示例来源:origin: org.netbeans.api/org-openide-explorer

private boolean shouldIgnore(MouseEvent e) {
  return !table.isEnabled() ||
  ((e.getButton() == MouseEvent.BUTTON3) && (e.getClickCount() == 1) && !e.isPopupTrigger());
}

代码示例来源:origin: org.swinglabs.swingx/swingx-all

/**
 * Returns a boolean indication if the mouse event should be ignored.
 * Here: returns true if table not enabled or not an event from the left mouse
 * button.
 * 
 * @param e
 * @return
 */
private boolean shouldIgnore(MouseEvent e) {
  return !SwingUtilities.isLeftMouseButton(e)
   || !table.isEnabled();
}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

/**
 * Returns a boolean indication if the mouse event should be ignored.
 * Here: returns true if table not enabled or not an event from the left mouse
 * button.
 * 
 * @param e
 * @return
 */
private boolean shouldIgnore(MouseEvent e) {
  return !SwingUtilities.isLeftMouseButton(e)
   || !table.isEnabled();
}

代码示例来源:origin: org.swinglabs.swingx/swingx-core

/**
 * Returns a boolean indication if the mouse event should be ignored.
 * Here: returns true if table not enabled or not an event from the left mouse
 * button.
 * 
 * @param e
 * @return
 */
private boolean shouldIgnore(MouseEvent e) {
  return !SwingUtilities.isLeftMouseButton(e)
   || !table.isEnabled();
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

private boolean shouldIgnore(MouseEvent e) {
  return !SwingUtilities.isLeftMouseButton(e)
   || !table.isEnabled();
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * Returns a boolean indication if the mouse event should be ignored.
 * Here: returns true if table not enabled or not an event from the left mouse
 * button.
 * 
 * @param e
 * @return
 */
private boolean shouldIgnore(MouseEvent e) {
  return !SwingUtilities.isLeftMouseButton(e)
   || !table.isEnabled();
}

代码示例来源:origin: org.java.net.substance/substance

public void mouseMoved(MouseEvent e) {
  if (!SubstanceTableUI.this.table.isEnabled())
    return;
  handleMouseMove(e.getPoint());
  this.handleMoveForHeader(e);
}

代码示例来源:origin: com.github.insubstantial/substance

@Override
public void mouseMoved(MouseEvent e) {
  if (!SubstanceTableUI.this.table.isEnabled())
    return;
  handleMouseMove(e.getPoint());
  this.handleMoveForHeader(e);
}

代码示例来源:origin: omegat-org/omegat

@Override
  public void mouseClicked(MouseEvent evt) {
    if (panel.allCharTable.isEnabled() && evt.getClickCount() == 2) {
      JTable target = (JTable) evt.getSource();
      int row = target.getSelectedRow();
      int col = target.getSelectedColumn();
      selCharModel.appendChar((Character) allCharModel.getValueAt(row, col),
          panel.uniqueCheckBox.isSelected());
    }
  }
});

代码示例来源:origin: com.github.insubstantial/substance

@Override
public void mouseDragged(MouseEvent e) {
  if (!SubstanceTableUI.this.table.isEnabled())
    return;
  handleMouseMove(e.getPoint());
  this.handleMoveForHeader(e);
}

代码示例来源:origin: org.java.net.substance/substance

public void mouseDragged(MouseEvent e) {
  if (!SubstanceTableUI.this.table.isEnabled())
    return;
  handleMouseMove(e.getPoint());
  this.handleMoveForHeader(e);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf

private boolean shouldIgnore(MouseEvent e)
{
  return e.isConsumed()
       || (!(SwingUtilities.isLeftMouseButton(e) && table.isEnabled()));
}

代码示例来源:origin: org.swinglabs.swingx/swingx-all

/**
 * Synchs the header's enabled with the table's enabled property.
 */
protected void updateEnabledFromTable() {
  setEnabled(getTable() != null ? getTable().isEnabled() : true);
}

代码示例来源:origin: joel-costigliola/assertj-swing

/**
 * Returns the {@code String} representation of the given {@code Component}, which should be a {@code JTable}.
 *
 * @param c the given {@code Component}.
 * @return the {@code String} representation of the given {@code JTable}.
 */
@Override
@Nonnull protected String doFormat(@Nonnull Component c) {
 JTable table = (JTable) c;
 String format = "%s[name=%s, rowCount=%d, columnCount=%d, enabled=%b, visible=%b, showing=%b]";
 return String.format(format, getRealClassName(c), quote(table.getName()), table.getRowCount(),
            table.getColumnCount(), table.isEnabled(), table.isVisible(), table.isShowing());
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * Synchs the header's enabled with the table's enabled property.
 */
protected void updateEnabledFromTable() {
  setEnabled(getTable() != null ? getTable().isEnabled() : true);
}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

/**
 * Synchs the header's enabled with the table's enabled property.
 */
protected void updateEnabledFromTable() {
  setEnabled(getTable() != null ? getTable().isEnabled() : true);
}

代码示例来源:origin: org.swinglabs.swingx/swingx-core

/**
 * Synchs the header's enabled with the table's enabled property.
 */
protected void updateEnabledFromTable() {
  setEnabled(getTable() != null ? getTable().isEnabled() : true);
}

相关文章

JTable类方法