My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
JFrame:
title: Binding Frame
size: packed
name: frame
content:
- JPanel:
content:
- JLabel: {name: fnLbl, text: "First name:", labelFor: fName}
- JTextField: {name: fName}
- JLabel: {name: lnLbl, text: "Last name:", labelFor: lName}
- JTextField: {name: lName}
- JButton: {name: ok, text: OK, onAction: [validateInput,save,cancel]}
- JButton: {name: cancel, text: Cancel, onAction: cancel}
- JTextField: {name: fullName, editable: false}
- JTextField: {name: nestedBindTest, editable: false}
layout: |
[] [grow,200px]
>fnLbl fName
>lnLbl lName
fullName+*
nestedBindTest+*
>ok+*=1,cancel=1 [grow,bottom]
bind:
- firstName: fName.text
- lastName: lName.text
- fullName.text: "Hi there, ${this.firstName} ${lastName}"
- nestedBindTest.text: "${lnLbl.text} = ${lnLbl.labelFor.text}"
Show details Hide details

Change log

r150 by jacek99 on May 12, 2008   Diff
Improved bean binding syntax validation by
using lots of regex...also improved
processing of root nodes to ensure
everything works as expected
Go to: 
Project members, sign in to write a code review

Older revisions

r149 by jacek99 on May 12, 2008   Diff
Removed dependency on Log4J, switched
to regular Java logging...saved half
MB in dependencies, good for download
size
r143 by jacek99 on May 11, 2008   Diff
Yay! binding working!
r142 by jacek99 on May 11, 2008   Diff
Got bind: to nearly work as well as I
expected by using ELProperty from
beans binding...however, full-blown
expressions (.e.g. combining two
properties together seems to be out of
...
All revisions of this file

File info

Size: 1126 bytes, 27 lines
Hosted by Google Code