Class TextWithHistory
java.lang.Object
com.biglybt.ui.swt.TextWithHistory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate org.eclipse.swt.widgets.Shellprivate final booleanprivate final Stringstatic final Stringprivate booleanprivate org.eclipse.swt.widgets.Listprivate static final intprivate static final intprivate booleanprivate booleanprivate final org.eclipse.swt.widgets.Textprivate final org.eclipse.swt.graphics.Color -
Constructor Summary
ConstructorsConstructorDescriptionTextWithHistory(String _config_prefix, String _enabled_prefix, org.eclipse.swt.widgets.Text _text) TextWithHistory(String _config_prefix, org.eclipse.swt.widgets.Text _text) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHistory(String str) private voidprivate booleanprivate voidhandleSearch(String current_text, boolean force) private voidvoidsetKeDownShowsHistory(boolean b)
-
Field Details
-
HISTORY_POPUP_DISABLE
- See Also:
-
MAX_MATCHES
private static final int MAX_MATCHES- See Also:
-
MAX_HISTORY
private static final int MAX_HISTORY- See Also:
-
disabled
private final boolean disabled -
config_prefix
-
enabled_prefix
-
text
private final org.eclipse.swt.widgets.Text text -
text_bg
private final org.eclipse.swt.graphics.Color text_bg -
history
-
current_shell
private org.eclipse.swt.widgets.Shell current_shell -
list
private org.eclipse.swt.widgets.List list -
mouse_entered
private boolean mouse_entered -
keyDownShowsHistory
private boolean keyDownShowsHistory
-
-
Constructor Details
-
TextWithHistory
-
TextWithHistory
-
-
Method Details
-
setKeDownShowsHistory
public void setKeDownShowsHistory(boolean b) -
handleSearch
-
fireSelected
private boolean fireSelected() -
match
-
loadHistory
private void loadHistory() -
clearHistory
private void clearHistory() -
addHistory
-