Sets the unique ID for this object.
nullobj.setId(id);
id (string) - new unique id for the object
obj.setId("myObject");
The id should contain only alphanumeric characters and start with a letter.
If id is not specified - it will be assigned automatically. However you have to know object id in order to modify its visual style via CSS, so it helps to set it explicitly.
getId() method