class RefreshSelectorMenuBuilder implements MenuFactory.CustomMenuBuilder {

    protected AnchorListItem createTimeSelector(int time,
                                                String name,
                                                int configuredSeconds,
                                                final AnchorListItem refreshDisableButton) {
        final AnchorListItem oneMinuteRadioButton = GWT.create(AnchorListItem.class);
        oneMinuteRadioButton.setText(name);
        oneMinuteRadioButton.setIconFixedWidth(true);
        final int selectedRefreshTime = time;
        if (configuredSeconds == selectedRefreshTime) {
            oneMinuteRadioButton.setIcon(IconType.CHECK);
        }

        oneMinuteRadioButton.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                oneMinuteRadioButton.setIcon(IconType.CHECK);
                supportsRefreshInterval.onUpdateRefreshInterval(true,
                                                                selectedRefreshTime);
                refreshDisableButton.setActive(false);
                refreshDisableButton.setEnabled(true);
                refreshDisableButton.setText(constants.Disable_autorefresh());
            }
        });

        return oneMinuteRadioButton;
    }

    public  RefreshSelectorMenuBuilder(final SupportsRefreshInterval supportsRefreshInterval);

}