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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(org.zkoss.zk.ui.Component parent) Create the controller for the search fieldGet the selected item in the search resultsvoid
onEvent
(org.zkoss.zk.ui.event.Event event) void
onSearchEcho
(String value) HandleON_SEARCH_ECHO_EVENT
to execute search for a given textvoid
Assign the selected label to the record.void
EchoON_SEARCH_ECHO_EVENT
to 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:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Throws:
Exception
-
search
EchoON_SEARCH_ECHO_EVENT
to initiate search for value- Parameters:
value
-
-
onSearchEcho
HandleON_SEARCH_ECHO_EVENT
to 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
-