| Constructor and Description |
|---|
DataReceivedHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPendingNavigation()
Called by the connector any pending navigation operations should be
cleared.
|
void |
dataReceived()
Called by the connector when new data for the last requested filter
is received from the server.
|
boolean |
isPending(String value) |
boolean |
isWaitingForFilteringResponse()
For internal use only - this method will be removed in the future.
|
boolean |
isWaitingForInitialData()
For internal use only - this method will be removed in the future.
|
void |
popupOpenerClicked()
Record that the popup opener has been clicked and the popup should be
opened on the next request.
|
void |
reactOnInputWhenReady(String value)
Perform filtering with the user entered string and when the results
are received, perform any action appropriate for the user input
(select an item or create a new one).
|
void |
serverReplyHandled()
Called by the connector when it has finished handling any reply from
the server, regardless of what was updated.
|
void |
setNavigationCallback(Runnable callback)
Set a callback that is invoked when a page change occurs if there
have not been intervening requests to the server.
|
void |
updateSelectionFromServer(String selectedKey,
String selectedCaption,
String selectedIconUri)
Perform selection (if appropriate) based on a reply from the server.
|
public void dataReceived()
public void reactOnInputWhenReady(String value)
value - user inputpublic boolean isPending(String value)
public void clearPendingNavigation()
public void setNavigationCallback(Runnable callback)
callback - method to call after filtering has completedpublic void popupOpenerClicked()
public void serverReplyHandled()
public boolean isWaitingForFilteringResponse()
public boolean isWaitingForInitialData()
public void updateSelectionFromServer(String selectedKey, String selectedCaption, String selectedIconUri)
selectedKey - new selected key or null if none given by the serverselectedCaption - new selected item caption if sent by the server or null -
this is used when the selected item is not on the current
pageselectedIconUri - new selected item icon if sent by the server or to clearCopyright © 2021 Vaadin Ltd. All rights reserved.