textfield.java

来自「一个OR Mapping 工具」· Java 代码 · 共 107 行

JAVA
107
字号
package org.dbgen.view;import java.awt.event.*;/** * This class was generated by a SmartGuide. * */public class TextField extends javax.swing.JTextField implements ActionListener, FocusListener {  protected transient TextFieldListener listener = null;  protected transient int id = 0;  /**   * TextField constructor comment.   */  public TextField() {    super();  }  /**   * TextField constructor comment.   * @param arg1 int   */  public TextField(int arg1) {    super(arg1);  }  /**   * TextField constructor comment.   * @param arg1 java.lang.String   */  public TextField(String arg1) {    super(arg1);  }  /**   * TextField constructor comment.   * @param arg1 java.lang.String   * @param arg2 int   */  public TextField(String arg1, int arg2) {    super(arg1, arg2);  }  /**   * TextField constructor comment.   * @param arg1 javax.swing.text.Document   * @param arg2 java.lang.String   * @param arg3 int   */  public TextField(javax.swing.text.Document arg1, String arg2, int arg3) {    super(arg1, arg2, arg3);  }  /**   * This method was created by a SmartGuide.   * @param event java.awt.event.ActionEvent   */  public void actionPerformed(ActionEvent event) {    callTextFieldListener();    return;  }  /**   * This method was created by a SmartGuide.   */  public void addSetFieldListener(TextFieldListener listener, int id) {    this.listener = listener;    this.id = id;    addActionListener(this);    addFocusListener(this);    return;  }  /**   * This method was created by a SmartGuide.   */  public void callTextFieldListener() {    listener.setField(id, getText());    return;  }  /**   * This method was created by a SmartGuide.   * @param event java.awt.event.FocusEvent   */  public void focusGained(FocusEvent event) {    //	selectAll();    return;  }  /**   * This method was created by a SmartGuide.   * @param event java.awt.event.FocusEvent   */  public void focusLost(FocusEvent event) {    callTextFieldListener();    return;  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?