python748 / alternate-java-bridge-library

Automatically exported from code.google.com/p/alternate-java-bridge-library
Apache License 2.0
0 stars 0 forks source link

Please change Events to use Event String on New Form creation template #162

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Right now, when do new form, you are presented with a template.  These 2 lines 
below should be changed

        EventDispatcher.registerEventForDelegation(this, "ScreenInitialization", "Initialize");

and

if (component.equals(this) && eventName.equals("Initialize")) {
            screenInitialized();
            return true;
        }

to

EventDispatcher.registerEventForDelegation(this, "ScreenInitialization", 
Events.INITIALIZE);

and

if (component.equals(this) && eventName.equals(Events.INITIALIZE)) {
            screenInitialized();
            return true;
        }

The reason why, is these lines are usually copied and pasted to create the new 
ones needed.  It is best to follow form with the new way of doing things.  This 
way the initilize part can be double clicked and changed to the event string 
you need.  Makes things easier.

Original issue reported on code.google.com by bric...@gmail.com on 20 May 2013 at 4:52

GoogleCodeExporter commented 8 years ago
I've been meaning to do this for a while now. By the way, it's 
Events.SCREEN_INIT.

Original comment by IMPINC...@gmail.com on 21 May 2013 at 5:38

GoogleCodeExporter commented 8 years ago

Original comment by IMPINC...@gmail.com on 30 May 2013 at 12:47