[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [eclipse-incubator-e4-dev] Fw: Declarative UI roundup?
|
- From: "向雅" <fyaoxy@xxxxxxxxx>
- Date: Fri, 7 Nov 2008 08:46:59 +0800
- Delivered-to: eclipse-incubator-e4-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=/Ac/3As8FihBoKTH7uOrTqO8wnoqtwrY4abJ25NSdxc=; b=PhBuwZ229R2qNrDow/YKySPexUiJSU4jOn9S0SX9TXPDwrrRhH0C/WmvlhsiHgPjCj X0ibIxhdbJ1FZDan8IKmMNrC3KBIfC4b0MZpvweDiuww2i4b7T/h2ZZvxPig9Ge8RJDm 1kaPvWvjmWuFY7rFopQkUOUYianrlmcnjmL1I=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=NlXwfgEXoYO7DwEnd2SXQYNJnSs/n1UrKCDMk3rkdyQeLlNuDtDygEBPFKk19XjkSj SRG7hxK2l4aoQ2UdMRX5NFToA50S/BCLCq9kD3a3I5Tb7tKLz5u2pcpqC65q5JQfv1u4 Rv1OGdnPHnx0CWgdg+JQj4MdR18wGBW3n4lnw=
2 points: an UI declaration, and a thought.
1.an UI declaration:
above sample can be like this:
@layout: fill;
label: "hello, world"; text{style: BORDER; layoutData: "grow"}
Huge simple? if yes, again:
@layout: "fill";
@StyleSheet{
text{ style: SINGLE, BORDER;}
};
@forms: true;
section{
@id: loginSection;
sectionStyle: ExpandableComposite.TITLE_BAR;
CompositeSeparator:NONE;
text: 登录系统;
layoutData: "center";
composite{
@id: sectionClient;
layout: "wrap 3", "[][250:pref:400,fill][]", "[]5[]";
label: 您的数字证书:;
text { @id: certFile; text: ""; }
button { @id: browse; text: 选择文件(&B)...; style: PUSH; }
label: 您的密码:;
text { @id: password; text: ""; style: PASSWORD; }
button { @id: login; text: "登录系统(&L) "; style: PUSH; }
}
client: @sectionClient;
}
2, a thought: at this time, in the world, the most question is not can
you do. instead, just be: How and what make better.Yes? like David
style, I do answer, sure.:)
Best! qinxian