T - the PDO type@ValueTranslatorService(modelClass=org.tentackle.pdo.PersistentDomainObject.class, viewClass=java.lang.String.class) public class PdoStringTranslator<T extends PersistentDomainObject<T>> extends ValueStringTranslator<T>
| Constructor and Description |
|---|
PdoStringTranslator(FxTextComponent component)
Creates a translator.
|
| Modifier and Type | Method and Description |
|---|---|
protected PdoComponentAddon<T> |
createPdoAddon()
Creates the PDO style implementation.
|
protected org.tentackle.bind.Bindable |
getBindableAnnotation(T proxy)
Gets the
Bindable annotation of the unique domain key. |
protected T |
getPdo()
Gets the PDO via binding.
For non-editable comboboxes this translator isnt used, but registered, because it could be changed to editable. |
protected void |
presetSearchCriteria(T proxy,
Class<?> udkClass,
String v)
Preset the given proxy with the string from the component.
|
Function<String,T> |
toModelFunction() |
Function<T,String> |
toViewFunction() |
getComponent, getValidChars, toModelisLenient, setLenientclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitneedsToModelTwice, toViewpublic PdoStringTranslator(FxTextComponent component)
component - the text componentprotected PdoComponentAddon<T> createPdoAddon()
protected T getPdo()
protected void presetSearchCriteria(T proxy, Class<?> udkClass, String v)
proxy - the proxy pdoudkClass - the class of the unique domain keyv - the view valueprotected org.tentackle.bind.Bindable getBindableAnnotation(T proxy)
Bindable annotation of the unique domain key.
If the UDK consists of more than one member, the first Bindable annotation is returned.
proxy - the PDO class to inspectTentackle - distributed, domain- and model-driven