Open controls
One embodiment of the present invention is a method of converting a user interface. A control based class can be extended to produce a Java Server Face. The Java Server Face can be converted to create an ASP.NET user interface.
1. A method comprising:
extending, by a computer system, a control base class to produce a Java Server Face (JSF) user interface control, the control base class including abstracted control functionality common to JSF and ASP.NET, the abstracted control functionality comprising one or more of: unique ID generation, tag-defined properties, tag-defined event handlers, control state management, or event broadcast;
wherein the control base class includes one or more method signatures that are convertible to an ASP.NET version of the control base class;
and converting, by the computer system, the JSF user interface control extended from the control base class into an ASP.NET user interface control.
2. The method of claim 1 , wherein an abstracted renderer class is used to provide rendering functionality in both JSF and ASP.NET.
3. The method of claim 2 , wherein the abstracted renderer class is extended to produce a specific JSF renderer.
4. The method of claim 1 , wherein a page command control for page navigation is convertible between JSF and ASP.NET.
5. The method of claim 1 , wherein an abstract input control is convertible from JSF to ASP.NET.
6. The method of claim 1 , wherein third party control and readers can use a wrapper that allows references by a convertible control.
7. A non-transitory computer readable medium having stored thereon code executable by a processor, the code comprising:
code that causes the processor to extend a control base class to produce a Java Server Face (JSF) user interface control, the control base class including abstracted control functionality common to JSF and ASP.NET, the abstracted control functionality comprising one or more of: unique ID generation, tag-defined properties, tag-defined event handlers, control state management, or event broadcast;
wherein the control base class includes one or more method signatures that are convertible to an ASP.NET version of the control base class;
and code that causes the processor to convert the JSF user interface control extended from the control base class into an ASP.NET user interface control.
8. The non-transitory computer readable medium of claim 7 , wherein an abstracted renderer class is used to provide rendering functionality in both JSF and ASP.NET.
9. The non-transitory computer readable medium of claim 8 , wherein the abstracted renderer class is extended to produce a JSF specific renderer.
10. The non-transitory computer readable medium of claim 7 , wherein a page command control for page navigation is convertible between JSF and ASP.NET.
11. The non-transitory computer readable medium of claim 7 , wherein an abstract input control is convertible from JSF to ASP.NET.
12. The non-transitory computer readable medium of claim 7 , wherein third party control and readers can use a wrapper that allows references by a convertible control.
13. A computer system comprising:
a processor configured to:
extend a control base class to produce a Java Server Face (JSF) user interface control, the control base class including abstracted control functionality common to JSF and ASP.NET, the abstracted control functionality comprising one or more of: unique ID generation, tag-defined properties, tag-defined event handlers, control state management, or event broadcast;
wherein the control base class includes one or more method signatures that are convertible to an ASP.NET version of the control base class;
and convert the JSF user interface control extended from the control base class into an ASP.NET user interface control.