Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

RFE: UIBuilder.createComponentInstance() - add parameter for component instance name #269

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In StateMachine, I'd like to override createComponentInstance() to return 
custom components based on the instance name (ie. the 'name' field in the GUI 
builder), but it is not passed as a parameter.  Alternatively, maybe change the 
current name parameter to instance name since that value serves pretty much 
same purpose as the class parameter.

What version of the product are you using? On what operating system?
Eclipse plugin v1.0.0.201207051020

Please provide any additional information below.
As a temporary workaround, I am also overriding onCreateRoot() to determine the 
instance name, but this could (although not likely) create a race condition, 
and is just cumbersome.

Original issue reported on code.google.com by 1815...@coolman.ca on 18 Jul 2012 at 3:08

GoogleCodeExporter commented 9 years ago
This is something I wanted to do for quite a while. It requires changing the 
file format for the resource file so its a bit of work but I should do it.

Original comment by shai.almog on 18 Jul 2012 at 5:47