Groovy Swingbuilder Binding -
panel(name:"reference name") { label("select xml field reference name:", constraints:gbc(gridx:0,gridy:0, anchor:west)) combobox(id:"refnameselectbox",items:displaynameoptions, constraints:gbc(gridx:0,gridy:1,ipadx:20, anchor:west)) label("before:", constraints:gbc(gridx:0, gridy:2, anchor:west)) textfield(id:"refbeforetext", text:"taco", constraints:gbc(gridx:1,gridy:2,ipadx:30, gridwidth:remainder, anchor:west)) label("after:", constraints:gbc(gridx:0, gridy:3, anchor:west)) textfield(id:"refaftertext", text:bind(source:dispbeforetext, sourceproperty:'text'), constraints:gbc(gridx:1,gridy:3,ipadx:30,gridwidth:remainder,anchor:west)) checkbox(id:"refspaceunder",text:"replace spaces _", constraints:gbc(gridx:0,gridy:1,gridwidth:remainder,anchor:west)) checkbox(id:"refnospecials",text:"remove special characters", constraints:gbc(gridx:0,gridy:2,gridwidth:remainder,anchor:west)) } i'm trying give user preview of text manipulation. right now, have refaftertext bound refbeforetext copies text. want use last 2 checkboxes alter text. checking both boxes change refbeforetext "i have taco!" "i_have_a_taco" in refaftertext.
Comments
Post a Comment