Re: Changing ActionCell Title

2010-12-02 Thread Greg Dougherty
Hi John, Just wanted to say I implemented this last night, and it worked exactly the way I wanted it to. Thanks! Greg On Dec 1, 3:00 pm, John LaBanca jlaba...@google.com wrote: Everything you said sounds correct. Here is a code snippet that should work: ButtonCell cell = newButtonCell();

Changing ActionCell Title

2010-12-01 Thread Greg Dougherty
Is it possible to change teh title of an ActionCell based on the contents of the row it's in? It looks like the answer is no, but I figured I'd check here before I gave up. Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

Re: Changing ActionCell Title

2010-12-01 Thread John LaBanca
You can use a ButtonCell instead. ButtonCell takes a String to display in the Button, but otherwise it looks just like ActionCell. Thanks, John LaBanca jlaba...@google.com On Wed, Dec 1, 2010 at 12:30 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: Is it possible to change teh title of

Re: Changing ActionCell Title

2010-12-01 Thread Greg Dougherty
What, then, do I have to implement so that the button will fire an action when it's clicked. Does this require me to extend ButtonCell? Thanks, Greg On Dec 1, 12:48 pm, John LaBanca jlaba...@google.com wrote: You can use a ButtonCell instead.  ButtonCell takes a String to display in the

Re: Changing ActionCell Title

2010-12-01 Thread John LaBanca
ButtonCell triggers a ValueChangeHandler when it is clicked. Add a FieldUpdater to your Column and FieldUpdater#update() will be called. Thanks, John LaBanca jlaba...@google.com On Wed, Dec 1, 2010 at 2:29 PM, Greg Dougherty dougherty.greg...@mayo.eduwrote: What, then, do I have to implement

Re: Changing ActionCell Title

2010-12-01 Thread Greg Dougherty
Hi John, I'm pretty sure I'm not following you. Here's my understanding: I currently have an ActionCell in an IdentityColumn. You're saying I can replace the ActionCell with a ButtonCell. I need to have a class implement FieldUpdaterT, C, and pass that to the IdentityColumn that holds my

Re: Changing ActionCell Title

2010-12-01 Thread John LaBanca
Everything you said sounds correct. Here is a code snippet that should work: ButtonCell cell = newButtonCell(); // Create a column using the ButtonCell. ColumnRowObject, String column = new ColumnRowObject, String(cell) { public String getValue(RowObject object) { return Show +

Re: Changing ActionCell Title

2010-12-01 Thread Greg Dougherty
Hi John, Thanks for all your help. I take it I won't be able to disable the button? (Not a big deal if so, it's a nice to have not a must have.) Again, Thanks! Greg On Dec 1, 3:00 pm, John LaBanca jlaba...@google.com wrote: Everything you said sounds correct. Here is a code snippet that