jgnash.ui.components
Class AccountListComboBox.ChildrenTypeModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by jgnash.ui.components.AccountListComboBox.AbstractModel
          extended by jgnash.ui.components.AccountListComboBox.ChildrenTypeModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel
Enclosing class:
AccountListComboBox

private static final class AccountListComboBox.ChildrenTypeModel
extends AccountListComboBox.AbstractModel


Field Summary
(package private)  int depth
           
private static long serialVersionUID
           
 
Fields inherited from class jgnash.ui.components.AccountListComboBox.AbstractModel
accounts, baseAccount, selectedItem, types
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
AccountListComboBox.ChildrenTypeModel(Account base, java.util.Set<AccountType> types, int depth)
           
 
Method Summary
protected  void loadChildren(Account acc, java.util.List<Account> array)
           
(package private)  void loadChildren(Account acc, java.util.List<Account> array, int level)
           
 
Methods inherited from class jgnash.ui.components.AccountListComboBox.AbstractModel
getElementAt, getSelectedItem, getSize, loadAccounts, messagePosted, setSelectedItem
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Field Detail

depth

int depth

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

AccountListComboBox.ChildrenTypeModel

public AccountListComboBox.ChildrenTypeModel(Account base,
                                             java.util.Set<AccountType> types,
                                             int depth)
Method Detail

loadChildren

void loadChildren(Account acc,
                  java.util.List<Account> array,
                  int level)

loadChildren

protected void loadChildren(Account acc,
                            java.util.List<Account> array)
Specified by:
loadChildren in class AccountListComboBox.AbstractModel