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

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

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

JTable.processKeyBinding介绍

暂无

代码示例

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@Override
protected boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed) {
  processingKeyBinding = true;
  try {
    return super.processKeyBinding(ks, e, condition, pressed);
  } finally {
    processingKeyBinding = false;
  }
}

代码示例来源:origin: de.sciss/jtreetable

/**
     * Override to safe-guard against changing the selection model.
     */
//        public void setSelectionModel(ListSelectionModel model) {
//            if (selectionModel != null)
//                throw new UnsupportedOperationException();
//            super.setSelectionModel(model);
//        }
    
    @Override
    public boolean processKeyBinding(KeyStroke ks,
        KeyEvent e, int condition, boolean pressed) {
      return super.processKeyBinding(ks, e, condition, pressed);
    }

代码示例来源:origin: com.jalalkiswani/jk-desktop

return super.processKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0), e, condition, pressed);
    return super.processKeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, 0), e, condition, pressed);
return super.processKeyBinding(ks, e, condition, pressed);

代码示例来源:origin: com.googlecode.vfsjfilechooser2/vfsjfilechooser2

@Override
protected boolean processKeyBinding(KeyStroke ks, KeyEvent e,
  int condition, boolean pressed)
{
  if ((e.getKeyCode() == KeyEvent.VK_ESCAPE) &&
      (getCellEditor() == null))
  {
    // We are not editing, forward to filechooser.
    chooser.dispatchEvent(e);
    return true;
  }
  return super.processKeyBinding(ks, e, condition, pressed);
}

代码示例来源:origin: mucommander/mucommander

/**
   * Method overridden to consume keyboard events when quick search is active or when a row is being editing
   * in order to prevent registered actions from being fired.
   */
  @Override
  protected boolean processKeyBinding(KeyStroke ks, KeyEvent ke, int condition, boolean pressed) {
    if(quickSearch.isActive() || isEditing())
      return true;

//        if(ActionKeymap.isKeyStrokeRegistered(ks))
//            return false;

    return super.processKeyBinding(ks, ke, condition, pressed);
  }

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

protected boolean processKeyBinding(
  KeyStroke ks,
  KeyEvent e,
  int condition,
  boolean pressed)
    {
      if (e.getKeyCode() == KeyEvent.VK_ESCAPE
        && getCellEditor() == null)
      {
        // We are not editing, forward to filechooser.
        chooser.dispatchEvent(e);
        return true;
      }
      return super.processKeyBinding(ks, e, condition, pressed);
    }
  };

代码示例来源:origin: in.jlibs/org-netbeans-swing-outline

boolean retValue = super.processKeyBinding(ks, e, condition, pressed);
  return retValue;

代码示例来源:origin: org.tentackle/tentackle-swing

return super.processKeyBinding(ks, e, condition, pressed);

代码示例来源:origin: org.jspresso/jspresso-swing-application

if (SwingUtilities.getUIInputMap(this, condition) != null
  && SwingUtilities.getUIInputMap(this, condition).get(ks) != null) {
 return super.processKeyBinding(ks, e, condition, pressed);
 return super.processKeyBinding(ks, e, condition, pressed);

代码示例来源:origin: freeplane/freeplane

@Override
protected boolean processKeyBinding(final KeyStroke ks, final KeyEvent e, final int condition, final boolean pressed) {
  if (ks.getKeyCode() == KeyEvent.VK_TAB && e.getModifiers() == 0 && pressed && getSelectedColumn() == 1
      && getSelectedRow() == getRowCount() - 1 && getModel() instanceof ExtendedAttributeTableModelDecorator) {
    insertRow(getRowCount());
    return true;
  }
  if (ks.getKeyCode() == KeyEvent.VK_ESCAPE && e.getModifiers() == 0 && pressed) {
    if (! isEditing()){
      attributeView.getNodeView().requestFocusInWindow();
      return true;
    }
    else
      return super.processKeyBinding(ks, e, condition, pressed);
  }
  if(super.processKeyBinding(ks, e, condition, pressed))
    return true;
  if (condition == JComponent.WHEN_FOCUSED)
    return editCell(ks, e);
  return false;
}

代码示例来源:origin: org.jspresso.framework/jspresso-swing-application

if (SwingUtilities.getUIInputMap(this, condition) != null && SwingUtilities.getUIInputMap(this, condition).get(ks)
  != null) {
 return super.processKeyBinding(ks, e, condition, pressed);
 return super.processKeyBinding(ks, e, condition, pressed);

相关文章

JTable类方法