class GridWidget extends BaseGridWidget {

    @Override
    protected void onItemClick(int index) {
        if (!selectedItems.contains(index)) {
            if (selectedItems.isEmpty()) {
                selectItem(index);
            } else {
                unselectItem(selectedItems.get(0));
                selectItem(index);
            }
        } else {
            getAudioHelper().stop();
        }

        if (quickAdvance && listener != null) {
            listener.advance();
        }

        if (noButtonsMode) {
            SelectChoice item = items.get(index);
            Clip clip = getClip(getFormEntryPrompt(), item, getReferenceManager());

            if (clip != null) {
                getAudioHelper().play(clip);
            }
        }

        widgetValueChanged();
    }

    public  GridWidget(Context context, QuestionDetails questionDetails, final boolean quickAdvance);

}