class DataSetDefRefreshIntervalEditor implements IsWidget, org.dashbuilder.dataset.client.editor.DataSetDefRefreshIntervalEditor {

    @Override
    public String getValue() {
        final Double quantity = view.getQuantity();
        final DateIntervalType type = getSelectedIntervalType();
        return new TimeAmount(quantity.longValue(), type).toString();
    }

    @Inject public  DataSetDefRefreshIntervalEditor(final View view,
                                           final Event<org.dashbuilder.common.client.event.ValueChangeEvent<String>> valueChangeEvent);

}