Class LabelsSearchController

java.lang.Object
org.adempiere.webui.apps.LabelsSearchController
All Implemented Interfaces:
org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>

public class LabelsSearchController extends Object implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
Controller for search on AD_Label* records.
  • Field Details

  • Constructor Details

    • LabelsSearchController

      public LabelsSearchController(LabelsPanel labelsPanel)
      Standard constructor
      Parameters:
      labelsPanel -
  • Method Details

    • create

      public void create(org.zkoss.zk.ui.Component parent)
      Create the controller for the search field
      Parameters:
      parent -
    • onEvent

      public void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception
      Specified by:
      onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
      Throws:
      Exception
    • search

      public void search(String value)
      Echo ON_SEARCH_ECHO_EVENT to initiate search for value
      Parameters:
      value -
    • onSearchEcho

      public void onSearchEcho(String value)
      Handle ON_SEARCH_ECHO_EVENT to execute search for a given text
      Parameters:
      value -
    • onSelect

      public void onSelect(LabelsSearchController.LabelItem item)
      Assign the selected label to the record. If doesn't exist, create the label.
      Parameters:
      item -
    • getSelectedItem

      public LabelsSearchController.LabelItem getSelectedItem()
      Get the selected item in the search results
      Returns:
      selected label or null
    • selectPrior

      public LabelsSearchController.LabelItem selectPrior()
      Select the previous item in the search results
      Returns:
      previous label or null
    • selectNext

      public LabelsSearchController.LabelItem selectNext()
      Select the next item in the search results
      Returns:
      next label or null