class NotificationEditorWidget implements IsWidget,
                                                 NotificationEditorWidgetView.Presenter {

    @Override
    public String getExpirationLabel(Expiration type) {
        switch (type) {
            case EXPRESSION:
                return translationService.getValue(EXPIRATION_PREFIX + "expression" + EXPIRATION_POSTFIX);
            case DATETIME:
                return translationService.getValue(EXPIRATION_PREFIX + "datetime" + EXPIRATION_POSTFIX);
            case TIME_PERIOD:
                return translationService.getValue(EXPIRATION_PREFIX + "time.period" + EXPIRATION_POSTFIX);
            default:
                throw new IllegalArgumentException(type.toString() + " is not supported.");
        }
    }

    @Inject public  NotificationEditorWidget(NotificationEditorWidgetView view,
                                    ClientTranslationService translationService);

}