ZUML"

From Documentation
Line 16: Line 16:
 
This chapter is about the general use of ZUML. For a complete reference, please refer to [[ZK_ZUML_Reference|ZUML Reference]].
 
This chapter is about the general use of ZUML. For a complete reference, please refer to [[ZK_ZUML_Reference|ZUML Reference]].
  
=Component Sets and File Extension=
+
=Component Set and File Extension=
  
 
=Version History=
 
=Version History=

Revision as of 02:52, 4 November 2010

Overview

There are two ways to compose UI: XML-based approach and pure-Java approach. Here we describe XML-based approach. For pure-Java approach, please refer the next chapter.

The declaration language is called ZK User Interface Markup Language (ZUML). It is based on XML. Each XML element instructs the ZK Loader which component to create. Each XML attribute describes what value to be assigned to the created component. Each XML processing instruction describes how to process the whole page, such as the page title. For example,

<?page title="Super Application"?>
<window title="Super Hello" border="normal">
    <button label="hi" onClick='alert("hi")'/>

where the first line specifies the page title, the second line creates a root component with title and border, and the third line creates a button with label and an event listener.

This chapter is about the general use of ZUML. For a complete reference, please refer to ZUML Reference.

Component Set and File Extension

Version History

Last Update : 2010/11/4

Version Date Content
     



Last Update : 2010/11/04

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.