com.vaadin.shared.ui.datefield.

Interface AbstractDateFieldServerRpc

  • All Superinterfaces:

    Serializable, ServerRpc

    public interface AbstractDateFieldServerRpc
    extends ServerRpc

    RPC interface for calls from client to server.

    Since:

    8.2

    • Method Summary

      All Methods
      Modifier and Type Method 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.

    • Method Detail

      • update

        void update​(String newDateString,
                    Map<String,​Integer> resolutions)

        Updates the typed data string and resolution names and values.

        Parameters:

        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 string

        resolutions - 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

      • updateValueWithDelay

        @Delayed(lastOnly=true)
        void updateValueWithDelay​(String newDateString,
                                  Map<String,​Integer> resolutions)

        Updates the typed data string and resolution names and values with delayed rpc. The rpc will be sent by triggering another non Delayed annotated rpc.

        Parameters:

        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 string

        resolutions - 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

        Since:

        8.9

      • blur

        void blur()

        Indicates to the server that the client-side has lost focus.

      • focus

        void focus()

        Indicates to the server that the client-side has acquired focus.