Directory

← Back

xmlui

xmlui is a tool for declaring Vaadin user interfaces in xml

Author

Rating

Popularity

<100

The tool provides simple API for serializing any instantiated Vaadin user interface to XML as well as to instantiate user interface from XML. Syntax is simple to edit, extensible and readable.

The tool is still in experimental phase and XML syntax is likely to change.

Sample code

MLUI ui = new XMLUI();
ui.setRoot(myFancyUI);
ui.setId(myButton,"button to remember");
ui.writeTo(outputStreamToSomewhere);
XMLUI ui = new XMLUI();
ui.readFrom(myInputStream);
mainWindow.addComponent(ui.getRoot());
Button myButton = (Button) ui.getById("myButton");
myButton.addListener(...);
<?xml version="1.0" ?>

<VerticalLayout height="100%" width="100%" margin="true">
        <c expandRatio="1.0">
                <TabSheet height="100%">
                        <c caption="Fields">
                                <VerticalLayout spacing="true" margin="true">
                                        <c>
                                                <TextField caption="Name" id="name"></TextField>
                                        </c>
                                        <c>
                                                <DateField caption="Age" id="age"></DateField>
                                        </c>
                                        <c alignment="c">
                                                <InlineDateField resolution="4"></InlineDateField>
                                        </c>
                                </VerticalLayout>
                        </c>
                        <c caption="Misc">
                                <VerticalLayout margin="left top">
                                        <c>
                                                <Label contentMode="3">&lt;div style="background-color:
                                                        yellow;"&gt;Foo&lt;/div&gt;</Label>
                                        </c>
                                </VerticalLayout>
                        </c>
                </TabSheet>
        </c>
        <c alignment="r">
                <Button caption="Save"></Button>
        </c>
</VerticalLayout>

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Released
2010-01-22
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.3+
Browser
Browser Independent

xmlui - Vaadin Add-on Directory

xmlui is a tool for declaring Vaadin user interfaces in xml xmlui - Vaadin Add-on Directory
The tool provides simple API for serializing any instantiated Vaadin user interface to XML as well as to instantiate user interface from XML. Syntax is simple to edit, extensible and readable. The tool is still in experimental phase and XML syntax is likely to change.
Project Site
Online Demo
Issue Tracker
Source Code
Discussion Forum

xmlui version 0.2
null

Online