HTML "getElementByID" implementation for SWT widget
===

In HTML, there is something like `document.getElementById("button1");`

I would like something of this sort to happen in my SWT application.

Say I created an SWT widget on the run with `new Button(shell, SWT.PUSH)`
Is there anywhere I can get(reference) this object with something similar to `getElementById(...)`?

I am thinking of creating a `HashMap<String, Object>` type, where String places the id of the object(Widget) and then I will call `hashMap.getKey(id)` which will return me a reference to the object(Widget).  