public class ChoiceManagerByDataObject extends ChoiceManager
which is more lightweight
choiceLimit
Constructor and Description |
---|
ChoiceManagerByDataObject(MustTextField textField,
DataObjectHolder.Creator choiceContentDo,
java.lang.String sourceColumnName)
Constructs a new choice manager to be filled by a data object -
source data object will be created when needed first time.
|
ChoiceManagerByDataObject(MustTextField textField,
DataObjectHolder.Creator dataObjectCreator,
java.lang.String sourceColumnName,
Callback callback)
Constructs a new choice manager to be filled by a data object -
source data object will be created when needed first time.
|
ChoiceManagerByDataObject(MustTextField textField,
DataObject sourceDataObject,
java.lang.String sourceColumnName)
Constructs a new choice manager to be filled by a data object.
|
ChoiceManagerByDataObject(MustTextField textField,
DataObject sourceDataObject,
java.lang.String sourceColumnName,
Callback callback)
Constructs a new choice manager to be filled by a data object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
protected void |
free() |
protected java.util.Vector<java.lang.String> |
getChoice(java.lang.String fragment) |
DataObject |
getSourceDataObject() |
void |
setAdditionalWhereConditionFragment(java.lang.String additionalWhereConditionFragment) |
getMinLengthForSearch, isStillRelevant, keyPressed, keyReleased, keyTyped, run, setActive, setMinLengthForSearch, setOwner
public ChoiceManagerByDataObject(MustTextField textField, DataObjectHolder.Creator choiceContentDo, java.lang.String sourceColumnName)
textField
- the text field whose input is to be completed.choiceContentDo
- the creator of the data object containing valid items -
the data object will be created uniquely, if you do not want to share data objects between threads,
use different data object holderssourceColumnName
- the name of the column containing the valid itemspublic ChoiceManagerByDataObject(MustTextField textField, DataObjectHolder.Creator dataObjectCreator, java.lang.String sourceColumnName, Callback callback)
textField
- the text field whose input is to be completed.dataObjectCreator
- the creator of the data object containing valid items -
using this constructor will guaranty that each choice manager will
use its own data objectsourceColumnName
- the name of the column containing the valid itemscallback
- the callback after user has chosenpublic ChoiceManagerByDataObject(MustTextField textField, DataObject sourceDataObject, java.lang.String sourceColumnName)
textField
- the text field whose input is to be completed.sourceDataObject
- the data object containing valid itemssourceColumnName
- the name of the column containing the valid itemspublic ChoiceManagerByDataObject(MustTextField textField, DataObject sourceDataObject, java.lang.String sourceColumnName, Callback callback)
textField
- the text field whose input is to be completed.sourceDataObject
- the data object containing valid itemssourceColumnName
- the name of the column containing the valid itemscallback
- the callback after user has chosenpublic void setAdditionalWhereConditionFragment(java.lang.String additionalWhereConditionFragment)
protected java.util.Vector<java.lang.String> getChoice(java.lang.String fragment)
getChoice
in class ChoiceManager
public DataObject getSourceDataObject()
protected void free()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de