Class ObjectAutoCompleteField<O,​I extends Serializable>

    • Method Detail

      • registerForUpdateOnSelectionChange

        public void registerForUpdateOnSelectionChange​(ObjectAutoCompleteSelectionChangeListener<I> pListener)
        Register a listener that needs to be updated when the selection changes, i.e. the user selected an object from the suggestion list. The listener is called with the id-model and the ajax request target which can be used for updating one self
        Parameters:
        pListener - the listener to notify
      • searchCanceled

        public void searchCanceled​(AjaxRequestTarget pTarget,
                                   boolean pForceRestore)
        Callback called in case the user cancels a search via 'escape'
        Parameters:
        pTarget - target to which the components to update are added
      • convertInput

        public void convertInput()
        Called when form is submitted. We are simply store the object remembered internally.
        Overrides:
        convertInput in class FormComponent<I extends Serializable>
      • getSearchTextField

        public TextField<String> getSearchTextField()
        Access to internal text field which can be used for adding some decorations or behaviours (like JS-Handler or specific CSS). Please be conservative in what you are doing, i.e. do not modify its model. Note: This method might vanish until the first release, it's probably better to provide delegation methods.
        Returns:
        textfield textfield holding the search input