Package org.adempiere.webui.apps
Class DocumentSearchController
java.lang.Object
org.adempiere.webui.apps.DocumentSearchController
- All Implemented Interfaces:
org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class DocumentSearchController
extends Object
implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Author:
- hengsin
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Value class to hold search result -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(org.zkoss.zk.ui.Component parent) Createlayout
for search resultvoid
onEvent
(org.zkoss.zk.ui.event.Event event) boolean
onOk
(org.zkoss.zul.Textbox textbox) FindDocumentSearchController.SearchResult
link fromlayout
that matches text from textbox.void
EchoON_SEARCH_DOCUMENTS_EVENT
with value as event data.Select and returnDocumentSearchController.SearchResult
that comes after the current selectedDocumentSearchController.SearchResult
link inlayout
.Select and returnDocumentSearchController.SearchResult
that comes before the current selectedDocumentSearchController.SearchResult
link inlayout
.
-
Constructor Details
-
DocumentSearchController
public DocumentSearchController()default constructor
-
-
Method Details
-
create
public void create(org.zkoss.zk.ui.Component parent) Createlayout
for search result- Parameters:
parent
-
-
search
EchoON_SEARCH_DOCUMENTS_EVENT
with value as event data.- Parameters:
value
-
-
onEvent
- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Throws:
Exception
-
onOk
public boolean onOk(org.zkoss.zul.Textbox textbox) FindDocumentSearchController.SearchResult
link fromlayout
that matches text from textbox.
CalldoZoom(SearchResult)
if a match is found.- Parameters:
textbox
-- Returns:
- true if a match is found
-
selectPrior
Select and returnDocumentSearchController.SearchResult
that comes before the current selectedDocumentSearchController.SearchResult
link inlayout
. -
selectNext
Select and returnDocumentSearchController.SearchResult
that comes after the current selectedDocumentSearchController.SearchResult
link inlayout
.
-