-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutoFilterComboBox-raw-type #203
AutoFilterComboBox-raw-type #203
Conversation
so it can become String. Thanks god, otherwise this threw a wrench in everything...
as a replacement of the editable version of AutoFilterComboBox
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine modulo a tiny nitpick.
} | ||
|
||
public String getText() { | ||
return (String) (this.getSelectedItem() != null ? this.getSelectedItem() : this.currentMatch); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I hate that LcokableListModel.getSelectedItem returns an Object instead of a genericized type...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(why are we even still using that? Wasn't it used for the lockable aspect, which got removed?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this point, LockableListModel is a (Swing) ListModel that has a notion of visible / hidden elements based on a custom filter.
AutoFilterComboBox was split into two "modes": editable, and not.
This PR isolates the editable mode into its own class, "EditableAutoFilterComboBox", whose generic is locked as String.
This allows AutoFilterComboBox to have its own Generic.