| Class | Profligacy::Swing::LEL |
| In: |
lib/profligacy/lel.rb
|
| Parent: | Build |
Layout Expression Language is a small regex like wiki language used to specify complex layouts in a tiny amount of space. The language is based on a Ragel based parser that configures a Swing GroupLayout with the right options to produce the desired effect. An example of LEL is:
@layout = " [ label_1 | label3 ] [ (300,300)*text1 | (150)people ] [ <label2 | _ ] [ .message | ^buttons ]"
Which will produce a panel where you can place components. Otherwise it works exactly like Swing::Build except you pass the LEL expression in to the constructor instead of an array of symbols.
See ihate.rubyforge.org/profligacy/lel.html for more instructions.
| prefs | [R] |