|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjgnash.ui.components.AutoCompleteFactory
public class AutoCompleteFactory
This factory class generates AutoCompleteTextFields that share a common model to reduce the amount of overhead.
| Nested Class Summary | |
|---|---|
private static class |
AutoCompleteFactory.MemoModel
|
private static class |
AutoCompleteFactory.PayeeAccountModel
This model stores the transaction with the payee field value. |
private static class |
AutoCompleteFactory.PayeeModel
This model stores the transaction with the payee field value. |
private static class |
AutoCompleteFactory.TransactionModel
|
| Field Summary | |
|---|---|
private static java.lang.String |
AUTO_COMPLETE
|
private static boolean |
autoComplete
|
private static AutoCompleteModel |
memoModel
|
| Constructor Summary | |
|---|---|
private |
AutoCompleteFactory()
|
| Method Summary | |
|---|---|
static javax.swing.JTextField |
getMemoField()
Returns an auto-complete field that knows about transaction memos. |
static javax.swing.JTextField |
getPayeeField(Account account)
Returns an auto-complete field that knows about transaction payees. |
static boolean |
isEnabled()
Returns the status of auto completion |
static void |
setEnabled(boolean auto)
Sets the availability of the auto-completion ability |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static AutoCompleteModel memoModel
private static boolean autoComplete
private static final java.lang.String AUTO_COMPLETE
| Constructor Detail |
|---|
private AutoCompleteFactory()
| Method Detail |
|---|
public static void setEnabled(boolean auto)
auto - enabled statepublic static boolean isEnabled()
public static javax.swing.JTextField getMemoField()
public static javax.swing.JTextField getPayeeField(Account account)
account - account this payee field will match
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||