ButtonItem.hide() does not exist?

Hi,

I have a ButtonItem on a form, and when I call show() or hide() on it, I get:

com.google.gwt.core.client.JavaScriptException: (TypeError):
  Object #<Object> has no method 'show'

Calling setVisible() doesn’t throw but doesn’t work either.

Suggestions?

Best,
Michał

OK, I figured it out: I must call setShowIfCondition() instead.

Michał