public abstract class ConnectAbstractDropDown
extends java.lang.Object
DropDown
widget to a text with listeners
configuredConstructor and Description |
---|
ConnectAbstractDropDown(org.eclipse.swt.widgets.Text text)
Implementing classes should call refreshValues() after initialisation
|
ConnectAbstractDropDown(org.eclipse.swt.widgets.Text text,
int style)
Implementing classes should call refreshValues() after initialisation
|
ConnectAbstractDropDown(org.eclipse.swt.widgets.Text text,
int style,
boolean refreshOnFocus)
Implementers should call refreshValues() once init has been done.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addFocusListener() |
protected void |
addListeners() |
protected abstract java.util.List<java.lang.String> |
getFilteredValues(java.lang.String filter)
Overwrite to provide specific filtering
|
java.lang.String |
getText() |
void |
init() |
protected boolean |
refreshOnFocus()
Overwrite to force the refresh of the possible values on focus gained event
|
protected void |
refreshValues() |
void |
reset(java.lang.String value) |
public ConnectAbstractDropDown(org.eclipse.swt.widgets.Text text)
public ConnectAbstractDropDown(org.eclipse.swt.widgets.Text text, int style)
text
- style
- only SWT.READ_ONLY is understood, check if the entered text is
part of the legal choices.public ConnectAbstractDropDown(org.eclipse.swt.widgets.Text text, int style, boolean refreshOnFocus)
text
- style
- only SWT.READ_ONLY is understood, check if the entered text is
part of the legal choices.refreshOnFocus
- if true, the possible values are computed each time the focus is
gained. It enables, among other to fine tune the getFilteredValues
method depending on the current contextprotected boolean refreshOnFocus()
public java.lang.String getText()
public void init()
public void reset(java.lang.String value)
protected abstract java.util.List<java.lang.String> getFilteredValues(java.lang.String filter)
protected void refreshValues()
protected void addListeners()
protected void addFocusListener()
Copyright © 2007–2020. All rights reserved.