Handling events in a descriptive context
A method, computer program product, and data processing system for generating GUI code from a declarative specification is disclosed. In a preferred embodiment, a markup language, such as XML, is utilized to specify the hierarchical structure of an object-oriented GUI and the various attributes of i...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | A method, computer program product, and data processing system for generating GUI code from a declarative specification is disclosed. In a preferred embodiment, a markup language, such as XML, is utilized to specify the hierarchical structure of an object-oriented GUI and the various attributes of its components. Additional special-purpose attributes and/or nested markup tags corresponding to particular types of event handlers and events are used to embed lines of non-markup program code (typically imperative program code) within the XML document. To produce the program code for the GUI, the XML document is processed and instructions for constructing the GUI to the XML document's specifications are generated. The embedded non-markup program code is formed into event handlers in the generated output program code, which are associated, in the output program code, with the GUI components to which they correspond. |
---|