Package com.biglybt.ui.swt
Class TextWithHistory
- java.lang.Object
-
- com.biglybt.ui.swt.TextWithHistory
-
public class TextWithHistory extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
config_prefix
private org.eclipse.swt.widgets.Shell
current_shell
private boolean
disabled
private java.lang.String
enabled_prefix
private java.util.List<java.lang.String>
history
private boolean
keyDownShowsHistory
private org.eclipse.swt.widgets.List
list
private static int
MAX_HISTORY
private static int
MAX_MATCHES
private boolean
menu_visible
private boolean
mouse_entered
private org.eclipse.swt.widgets.Text
text
private org.eclipse.swt.graphics.Color
text_bg
-
Constructor Summary
Constructors Constructor Description TextWithHistory(java.lang.String _config_prefix, java.lang.String _enabled_prefix, org.eclipse.swt.widgets.Text _text)
TextWithHistory(java.lang.String _config_prefix, org.eclipse.swt.widgets.Text _text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHistory(java.lang.String str)
private void
clearHistory()
private boolean
fireSelected()
private void
handleSearch(java.lang.String current_text, boolean force)
private void
loadHistory()
private java.util.List<java.lang.String>
match(java.lang.String str)
void
setKeDownShowsHistory(boolean b)
-
-
-
Field Detail
-
MAX_MATCHES
private static final int MAX_MATCHES
- See Also:
- Constant Field Values
-
MAX_HISTORY
private static final int MAX_HISTORY
- See Also:
- Constant Field Values
-
disabled
private final boolean disabled
-
config_prefix
private final java.lang.String config_prefix
-
enabled_prefix
private final java.lang.String enabled_prefix
-
text
private final org.eclipse.swt.widgets.Text text
-
text_bg
private final org.eclipse.swt.graphics.Color text_bg
-
history
private java.util.List<java.lang.String> 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
-
menu_visible
private boolean menu_visible
-
keyDownShowsHistory
private boolean keyDownShowsHistory
-
-
Method Detail
-
setKeDownShowsHistory
public void setKeDownShowsHistory(boolean b)
-
handleSearch
private void handleSearch(java.lang.String current_text, boolean force)
-
fireSelected
private boolean fireSelected()
-
match
private java.util.List<java.lang.String> match(java.lang.String str)
-
loadHistory
private void loadHistory()
-
clearHistory
private void clearHistory()
-
addHistory
public void addHistory(java.lang.String str)
-
-