javax.swing.JTextField.getAction()方法的使用及代码示例

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

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

JTextField.getAction介绍

暂无

代码示例

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

/**
 * Turns the date field to be editable or not.
 * 
 * @param editable
 *            true if editable.
 */
public void setEditable(boolean editable) {
 if (textField.getAction() != null) {
  textField.getAction().setEnabled(editable);
 }
 textField.setEditable(editable);
}

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

/**
 * Turns the date field to be enabled or not.
 * 
 * @param enabled
 *            true if enabled.
 */
@Override
public void setEnabled(boolean enabled) {
 if (textField.getAction() != null) {
  textField.getAction().setEnabled(enabled);
 }
 textField.setEnabled(enabled);
}

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

/**
 * Turns the action field to be editable or not.
 *
 * @param enabled
 *          true if enabled.
 */
@Override
public void setEnabled(boolean enabled) {
 if (textField.getAction() != null) {
  textField.getAction().setEnabled(enabled);
 }
 textField.setEditable(enabled && fieldEditable);
}

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

/**
 * performs the registered action programatically.
 */
public void performAction() {
 textField.getAction().actionPerformed(
   new ActionEvent(this, 0, getActionText()));
}

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

/**
 * performs the registered action programmatically.
 */
public void performAction() {
 textField.getAction().actionPerformed(
   new ActionEvent(this, 0, getActionText()));
}

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

if (showTextField) {
 buttonSquareSize = textField.getPreferredSize().height;
 if (textField.getAction() == null) {
  textField.setAction(action);

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

if (showTextField) {
 buttonSquareSize = textField.getPreferredSize().height;
 if (textField.getAction() == null) {
  textField.setAction(action);

相关文章

JTextField类方法