Esempio n. 1
0
 public String getAccountDescription() {
   return descriptionField.getText();
 }
Esempio n. 2
0
 public void setAccountDescription(final String description) {
   descriptionField.setText(description);
 }
Esempio n. 3
0
 public void setAccountNumber(final String accountNumber) {
   accountNumberField.setText(accountNumber);
 }
Esempio n. 4
0
 public String getAccountNumber() {
   return accountNumberField.getText();
 }
Esempio n. 5
0
 public void setAccountName(final String name) {
   nameField.setText(name);
 }
Esempio n. 6
0
 public String getAccountName() {
   return nameField.getText();
 }
Esempio n. 7
-1
  private void initComponents() {
    accountNumberField = new JTextFieldEx();
    accountCodeField = new JIntegerField();
    nameField = new JTextFieldEx();
    bankIdField = new JTextFieldEx();
    nameField.setText(rb.getString("Word.Name"));
    descriptionField = new JTextFieldEx();
    descriptionField.setText(rb.getString("Word.Description"));
    currencyCombo = new CurrencyComboBox();
    securityButton = new JButton(rb.getString("Word.None"));

    // for preferred width so button does not force a wide layout
    securityButton.setPreferredSize(new Dimension(20, securityButton.getPreferredSize().height));

    accountTypeModel = new DefaultComboBoxModel<>(AccountType.values());
    accountTypeModel.removeElement(AccountType.ROOT);
    accountTypeCombo = new JComboBox<>(accountTypeModel);

    lockedCheckBox = new JCheckBox(rb.getString("Button.Locked"));
    placeholderCheckBox = new JCheckBox(rb.getString("Button.PlaceHolder"));
    hideCheckBox = new JCheckBox(rb.getString("Button.HideAccount"));
    excludeBudgetCheckBox = new JCheckBox(rb.getString("Button.ExcludeFromBudget"));
    parentButton = new JButton("Root");

    notesArea = new javax.swing.JTextArea();
    notesArea.setLineWrap(true);
    notesArea.setAutoscrolls(false);
    notesArea.setPreferredSize(new java.awt.Dimension(100, 80));

    accountTypeCombo.addActionListener(this);
    securityButton.addActionListener(this);
    parentButton.addActionListener(this);
  }