Package com.vaadin.copilot
Class ConnectToService
java.lang.Object
com.vaadin.copilot.ConnectToService
Utility class for connecting to a service method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of binding that can be used for a Flow Grid. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectToService.BindingTypecanBindFlowComboBoxToService(SpringBridge.ServiceMethodInfo serviceMethod) Checks if a Flow ComboBox can be bound to the given service method.static ConnectToService.BindingTypecanBindFlowGridToService(SpringBridge.ServiceMethodInfo serviceMethod) Checks if a Flow Grid can be bound to the given service method.static ConnectToService.BindingTypecanBindHillaComboBoxToService(SpringBridge.ServiceMethodInfo serviceMethod) Checks if a Hilla ComboBox can be bound to the given service method.static ConnectToService.BindingTypecanBindHillaGridToService(SpringBridge.ServiceMethodInfo serviceMethod) Checks if a Hilla Grid can be bound to the given service method.
-
Field Details
-
PAGEABLE_TYPE
- See Also:
-
HILLA_FILTER_TYPE
- See Also:
-
STRING_TYPE
-
-
Constructor Details
-
ConnectToService
public ConnectToService()
-
-
Method Details
-
canBindFlowGridToService
public static ConnectToService.BindingType canBindFlowGridToService(SpringBridge.ServiceMethodInfo serviceMethod) Checks if a Flow Grid can be bound to the given service method.- Parameters:
serviceMethod- the service method to check- Returns:
- the binding type that can be used
-
canBindHillaGridToService
public static ConnectToService.BindingType canBindHillaGridToService(SpringBridge.ServiceMethodInfo serviceMethod) Checks if a Hilla Grid can be bound to the given service method.- Parameters:
serviceMethod- the service method to check- Returns:
- the binding type that can be used
-
canBindFlowComboBoxToService
public static ConnectToService.BindingType canBindFlowComboBoxToService(SpringBridge.ServiceMethodInfo serviceMethod) Checks if a Flow ComboBox can be bound to the given service method.- Parameters:
serviceMethod- the service method to check- Returns:
- the binding type that can be used
-
canBindHillaComboBoxToService
public static ConnectToService.BindingType canBindHillaComboBoxToService(SpringBridge.ServiceMethodInfo serviceMethod) Checks if a Hilla ComboBox can be bound to the given service method.- Parameters:
serviceMethod- the service method to check- Returns:
- the binding type that can be used
-