public interface AbstractDateFieldServerRpc extends ServerRpc
| Modifier and Type | Method and Description |
|---|---|
void |
blur()
Indicates to the server that the client-side has lost focus.
|
void |
focus()
Indicates to the server that the client-side has acquired focus.
|
void |
update(String newDateString,
Map<String,Integer> resolutions)
Updates the typed data string and resolution names and values.
|
void |
updateValueWithDelay(String newDateString,
Map<String,Integer> resolutions)
Updates the typed data string and resolution names and values with
delayed rpc.
|
void update(String newDateString, Map<String,Integer> resolutions)
newDateString - the value of the text field part. It enables analyzing invalid
input on the server. null if the date was chosen with
popup calendar or contains user-typed stringresolutions - map of time unit (resolution) name and value, the key is the
resolution name e.g. "HOUR", "MINUTE", the value can be
null. If the map is empty, that means the
newDateString is invalid@Delayed(lastOnly=true) void updateValueWithDelay(String newDateString, Map<String,Integer> resolutions)
Delayed annotated rpc.newDateString - the value of the text field part. It enables analyzing invalid
input on the server. null if the date was chosen with
popup calendar or contains user-typed stringresolutions - map of time unit (resolution) name and value, the key is the
resolution name e.g. "HOUR", "MINUTE", the value can be
null. If the map is empty, that means the
newDateString is invalidvoid blur()
void focus()
Copyright © 2021 Vaadin Ltd. All rights reserved.