@Test public void usingReadOnlyOption_makesAllClickableElementsDisabled() { TriggerWidget widget = createWidget(promptWithReadOnly()); assertThat(widget.getCheckBox().getVisibility(), equalTo(View.VISIBLE)); assertThat(widget.getCheckBox().isEnabled(), equalTo(Boolean.FALSE)); }
public CheckBox getCheckBox() { return triggerButton; }
TriggerWidget extends QuestionWidget { public CheckBox getCheckBox() { return triggerButton; } }
TriggerWidget extends QuestionWidget { public CheckBox getCheckBox() { return triggerButton; } TriggerWidget(Context context, QuestionDetails prompt); }
TriggerWidget extends QuestionWidget { public CheckBox getCheckBox() { return triggerButton; } TriggerWidget(Context context, QuestionDetails prompt); @Override void clearAnswer(); @Override IAnswerData getAnswer(); @Override void setOnLongClickListener(OnLongClickListener l); @Override void cancelLongPress(); CheckBox getCheckBox(); }
TriggerWidget extends QuestionWidget { public CheckBox getCheckBox() { return triggerButton; } TriggerWidget(Context context, QuestionDetails prompt); @Override void clearAnswer(); @Override IAnswerData getAnswer(); @Override void setOnLongClickListener(OnLongClickListener l); @Override void cancelLongPress(); CheckBox getCheckBox();  }