Package org.adempiere.webui.apps
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(org.zkoss.zk.ui.Component parent) Create the controller for the search fieldGet the selected item in the search resultsvoidonEvent(org.zkoss.zk.ui.event.Event event) voidonSearchEcho(String value) HandleON_SEARCH_ECHO_EVENTto execute search for a given textvoidAssign the selected label to the record.voidEchoON_SEARCH_ECHO_EVENTto initiate search for valueSelect the next item in the search resultsSelect the previous item in the search results
-
Field Details
-
ON_POST_SELECT_LABELITEM_EVENT
Event echo fromonSelect(LabelItem)- See Also:
-
-
Constructor Details
-
LabelsSearchController
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
- Specified by:
onEventin interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>- Throws:
Exception
-
search
EchoON_SEARCH_ECHO_EVENTto initiate search for value- Parameters:
value-
-
onSearchEcho
HandleON_SEARCH_ECHO_EVENTto execute search for a given text- Parameters:
value-
-
onSelect
Assign the selected label to the record. If doesn't exist, create the label.- Parameters:
item-
-
getSelectedItem
Get the selected item in the search results- Returns:
- selected label or null
-
selectPrior
Select the previous item in the search results- Returns:
- previous label or null
-
selectNext
Select the next item in the search results- Returns:
- next label or null
-