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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -