pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger and Beth Whitcomb <RogerandB...@rbwhitcomb.com>
Subject Re: Binding between a editing cell in TableView to an external TextInput
Date Sun, 28 Oct 2012 22:17:23 GMT
I can't think of an automatic way at the moment.  But, you could 
definitely setup a TextInputContentListener in your row/cell editor and 
use the "textChanged" method to update the contents of the external 
TextInput.  The code would look something like this:

// During setup of your row editor
TextInput textInput = new TextInput();
textInput.getTextInputContentListeners().add(new 
TextInputContentListener.Adapter() {
     @Override
     public void textChanged(TextInput textInput) {
         formulaTextInput.setText(textInput.getText());
     }
});
rowEditor.getCellEditors().put(columnName, textInput);
...

HTH,
~Roger Whitcomb


Mime
View raw message