@Test public void testEnableReadOnlyMode() { titleText.hidden = true; editMode.hidden = false; cardFrameView.enableReadOnlyMode(); assertFalse(titleText.hidden); assertTrue(editMode.hidden); }
@Override public void enableReadOnlyMode() { titleText.hidden = false; editMode.hidden = true; }
CardFrameComponentView implements CardFrameComponent.View { @Override public void enableReadOnlyMode() { titleText.hidden = false; editMode.hidden = true; } }
CardFrameComponentView implements CardFrameComponent.View { @Override public void enableReadOnlyMode() { titleText.hidden = false; editMode.hidden = true; } @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 enableReadOnlyMode() { titleText.hidden = false; editMode.hidden = true; } @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 enableReadOnlyMode() { titleText.hidden = false; editMode.hidden = true; } @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; }