class CardFrameComponentView implements CardFrameComponent.View {

    @EventHandler("title-input")
    public void onTitleInputKeyDownEvent(final KeyDownEvent event) {
        if (isEscape(event)) {
            event.preventDefault();
            presenter.refreshView();
        }
        if (isEnter(event)) {
            event.preventDefault();
            presenter.changeTitle();
        }
    }

    @Inject public  CardFrameComponentView(final HTMLDivElement view,
                                  final @Named("span") HTMLElement icon,
                                  final @Named("h2") HTMLHeadingElement titleText,
                                  final HTMLInputElement titleInput,
                                  final HTMLButtonElement inputCloseButton,
                                  final HTMLDivElement editMode,
                                  final HTMLButtonElement okButton,
                                  final HTMLButtonElement closeButton,
                                  final HTMLDivElement content);

}