Package com.biglybt.ui.swt
Class TextWithHistory
java.lang.Object
com.biglybt.ui.swt.TextWithHistory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private org.eclipse.swt.widgets.Shell
private final boolean
private final String
private boolean
private org.eclipse.swt.widgets.List
private static final int
private static final int
private boolean
private boolean
private final org.eclipse.swt.widgets.Text
private 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 TypeMethodDescriptionvoid
addHistory
(String str) private void
private boolean
private void
handleSearch
(String current_text, boolean force) private void
void
setKeDownShowsHistory
(boolean b)
-
Field Details
-
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
-