Package com.storedobject.helper
Class ID
java.lang.Object
com.storedobject.helper.ID
A unique id generator that can be used to set a unique id for components.
- Author:
- Syam
-
Method Summary
-
Method Details
-
newID
public static long newID()Get a new id.- Returns:
- New unique id.
-
set
public static void set(com.vaadin.flow.component.Component component) Set a unique id for the given component if it doesn't have an id now. (Id set will be of the format "soN" where N will be a unique long number).- Parameters:
component
- Component for which id needs to be set.
-