@Test public void testEnableEditMode() { titleText.hidden = false; editMode.hidden = true; cardFrameView.enableEditMode(); assertTrue(titleText.hidden); assertFalse(editMode.hidden); verify(titleInput).focus(); }
@Override public void enableEditMode() { titleText.hidden = true; editMode.hidden = false; titleInput.focus(); }
CardFrameComponentView implements CardFrameComponent.View { @Override public void enableEditMode() { titleText.hidden = true; editMode.hidden = false; titleInput.focus(); } }
CardFrameComponentView implements CardFrameComponent.View { @Override public void enableEditMode() { titleText.hidden = true; editMode.hidden = false; titleInput.focus(); } @Inject  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); }
CardFrameComponentView implements CardFrameComponent.View { @Override public void enableEditMode() { titleText.hidden = true; editMode.hidden = false; titleInput.focus(); } @Inject  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); @Override void init(final CardFrameComponent presenter); @EventHandler("title-text") void onTitleTextClick(final ClickEvent e); @EventHandler("ok-button") void onOkButtonClick(final ClickEvent e); @EventHandler("close-button") void onCloseButtonClick(final ClickEvent e); @EventHandler("input-close-button") void onInputCloseButtonClick(final ClickEvent e); @EventHandler("title-input") void onTitleInputKeyDownEvent(final KeyDownEvent event); @Override void setUUID(final String uuid); @Override void setIcon(final String cssClassName); @Override void setTitle(final String title); @Override String getTitle(); @Override void setContent(final HTMLElement content); @Override void enableReadOnlyMode(); @Override void enableEditMode(); @Override void setupToggleTitle(final boolean enabled); }
CardFrameComponentView implements CardFrameComponent.View { @Override public void enableEditMode() { titleText.hidden = true; editMode.hidden = false; titleInput.focus(); } @Inject  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); @Override void init(final CardFrameComponent presenter); @EventHandler("title-text") void onTitleTextClick(final ClickEvent e); @EventHandler("ok-button") void onOkButtonClick(final ClickEvent e); @EventHandler("close-button") void onCloseButtonClick(final ClickEvent e); @EventHandler("input-close-button") void onInputCloseButtonClick(final ClickEvent e); @EventHandler("title-input") void onTitleInputKeyDownEvent(final KeyDownEvent event); @Override void setUUID(final String uuid); @Override void setIcon(final String cssClassName); @Override void setTitle(final String title); @Override String getTitle(); @Override void setContent(final HTMLElement content); @Override void enableReadOnlyMode(); @Override void enableEditMode(); @Override void setupToggleTitle(final boolean enabled); static final String CARD_UUID_ATTR; }