Lines Matching refs:buttonId
133 public void onButtonVisibilityChanged(ButtonManager buttonManager, int buttonId);
138 public void onButtonEnabledChanged(ButtonManager buttonManager, int buttonId);
245 private MultiToggleImageButton getButtonOrError(int buttonId) {
246 switch (buttonId) {
288 throw new IllegalArgumentException("button not known by id=" + buttonId);
297 private ImageButton getImageButtonOrError(int buttonId) {
298 switch (buttonId) {
325 throw new IllegalArgumentException("button not known by id=" + buttonId);
333 * @param buttonId The id if the button to be initialized.
336 public void initializeButton(int buttonId, ButtonCallback cb) {
337 initializeButton(buttonId, cb, null);
344 * @param buttonId The id if the button to be initialized.
348 public void initializeButton(int buttonId, ButtonCallback cb, ButtonCallback preCb) {
349 MultiToggleImageButton button = getButtonOrError(buttonId);
350 switch (buttonId) {
376 throw new IllegalArgumentException("button not known by id=" + buttonId);
379 showButton(buttonId);
380 enableButton(buttonId);
388 public void initializePushButton(int buttonId, View.OnClickListener cb,
390 buttonId);
403 mListener.onButtonEnabledChanged(this, buttonId);
406 button.setTag(R.string.tag_enabled_id, buttonId);
411 mListener.onButtonVisibilityChanged(this, buttonId);
420 public void initializePushButton(int buttonId, View.OnClickListener cb,
422 initializePushButton(buttonId, cb, imageId, NO_RESOURCE);
428 public void initializePushButton(int buttonId, View.OnClickListener cb) {
429 initializePushButton(buttonId, cb, NO_RESOURCE, NO_RESOURCE);
445 public void disableButton(int buttonId) {
447 if (buttonId == BUTTON_EXPOSURE_COMPENSATION) {
448 button = getImageButtonOrError(buttonId);
450 button = getButtonOrError(buttonId);
458 if (buttonId == BUTTON_HDR_PLUS) {
460 } else if (buttonId == BUTTON_HDR) {
467 mListener.onButtonEnabledChanged(this, buttonId);
485 public void enableButton(int buttonId) {
487 if(buttonId == BUTTON_CAMERA && mIsCameraButtonBlocked) {
494 if (buttonId == BUTTON_EXPOSURE_COMPENSATION) {
495 button = getImageButtonOrError(buttonId);
497 button = getButtonOrError(buttonId);
502 mListener.onButtonEnabledChanged(this, buttonId);
505 button.setTag(R.string.tag_enabled_id, buttonId);
511 * @param buttonId The id of the button.
513 public void disableButtonClick(int buttonId) {
514 ImageButton button = getButtonOrError(buttonId);
523 * @param buttonId The id of the button.
525 public void enableButtonClick(int buttonId) {
526 ImageButton button = getButtonOrError(buttonId);
535 public void hideButton(int buttonId) {
538 button = getButtonOrError(buttonId);
540 button = getImageButtonOrError(buttonId);
545 mListener.onButtonVisibilityChanged(this, buttonId);
553 public void showButton(int buttonId) {
556 button = getButtonOrError(buttonId);
558 button = getImageButtonOrError(buttonId);
563 mListener.onButtonVisibilityChanged(this, buttonId);
632 public boolean isEnabled(int buttonId) {
635 button = getButtonOrError(buttonId);
637 button = getImageButtonOrError(buttonId);
642 return (enabledId.intValue() == buttonId) && button.isEnabled();
651 public boolean isVisible(int buttonId) {
654 button = getButtonOrError(buttonId);
656 button = getImageButtonOrError(buttonId);