本文整理了Java中javax.swing.JTextField.getAction()
方法的一些代码示例,展示了JTextField.getAction()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.getAction()
方法的具体详情如下:
包路径:javax.swing.JTextField
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!