Added method Button::getState()