Class PdoStringTranslator<T extends PersistentDomainObject<T>>

    • Constructor Detail

      • PdoStringTranslator

        public PdoStringTranslator​(FxTextComponent component)
        Creates a translator.
        Parameters:
        component - the text component
    • Method Detail

      • getPdoAddon

        public PdoComponentAddon<T> getPdoAddon()
        Gets the PDO addon.
        Returns:
        the addon
      • setPdoAddon

        public void setPdoAddon​(PdoComponentAddon<T> pdoAddon)
        Sets the PDO addon.
        Parameters:
        pdoAddon - the addon
      • runSearch

        protected void runSearch​(T proxy)
        Runs the interactive search.
        Parameters:
        proxy - the proxy object
      • createPdoAddon

        protected PdoComponentAddon<T> createPdoAddon()
        Creates the PDO style implementation.
        Returns:
        the implementation
      • getPdo

        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.
        Returns:
        the model value
      • setPdo

        protected void setPdo​(T pdo)
        Sets the PDO via binding.
        Mainly used by DnD.
        Parameters:
        pdo - the PDO, null to clear
      • presetSearchCriteria

        protected void presetSearchCriteria​(T proxy,
                                            Class<?> udkClass,
                                            String v)
        Preset the given proxy with the string from the component.
        Parameters:
        proxy - the proxy pdo
        udkClass - the class of the unique domain key
        v - the view value
      • getBindableAnnotation

        protected org.tentackle.bind.Bindable getBindableAnnotation​(T proxy)
        Gets the Bindable annotation of the unique domain key.

        If the UDK consists of more than one member, the first Bindable annotation is returned.

        Parameters:
        proxy - the PDO class to inspect
        Returns:
        the annotation, null if not annotated with Bindable