@Override public void setDescription(String description) { item.setTitle(description); }
@Override public void setDescription(String description) { item.setTitle(description); }
@Override public void showCurrentSelection(String text, String hint) { dropDownText.setTextContent(text); dropDownButton.setTitle(hint); }
@PostConstruct public void init() { addButton.setTitle(translationService.getTranslation(FormRenderingConstants.LOVCreationComponentViewImplAddButton)); removeButton.setTitle(translationService.getTranslation(FormRenderingConstants.LOVCreationComponentViewImplRemoveButton)); promoteButton.setTitle(translationService.getTranslation(FormRenderingConstants.LOVCreationComponentViewImplMoveUp)); degradeButton.setTitle(translationService.getTranslation(FormRenderingConstants.LOVCreationComponentViewImplMoveDown)); }
@Override public void setValue(String value) { item.setTextContent(value); // setTitle to make the whole value visible on mouse over when selector width is restricted and value is trimmed item.setTitle(value); }
@Override public void showCurrentSelection(String text, String hint) { dropDownText.setTextContent(text); dropDownButton.setTitle(hint); }
@Override public void setValue(String value) { item.setTextContent(value); // setTitle to make the whole value visible on mouse over when selector width is restricted and value is trimmed item.setTitle(value); }
private void configureToolbarTitles() { boldAction.setTitle(translationService.format(Constants.HtmlEditorView_Bold)); italicAction.setTitle(translationService.format(Constants.HtmlEditorView_Italic)); underlineAction.setTitle(translationService.format(Constants.HtmlEditorView_Underline)); createLinkAction.setTitle(translationService.format(Constants.HtmlEditorView_CreateLink)); removeLinkAction.setTitle(translationService.format(Constants.HtmlEditorView_RemoveLink)); insertImageAction.setTitle(translationService.format(Constants.HtmlEditorView_InsertImage)); insertTableAction.setTitle(translationService.format(Constants.HtmlEditorView_InsertTable)); bigTitleAction.setTitle(translationService.format(Constants.HtmlEditorView_BigTitle)); mediumTitleAction.setTitle(translationService.format(Constants.HtmlEditorView_MediumTitle)); smallTitleAction.setTitle(translationService.format(Constants.HtmlEditorView_SmallTitle)); paragraphAction.setTitle(translationService.format(Constants.HtmlEditorView_Paragraph)); preAction.setTitle(translationService.format(Constants.HtmlEditorView_Pre)); plainTextAction.setTitle(translationService.format(Constants.HtmlEditorView_PlainText)); quoteAction.setTitle(translationService.format(Constants.HtmlEditorView_Quote)); codeAction.setTitle(translationService.format(Constants.HtmlEditorView_Code)); fontSizeAction.setTitle(translationService.format(Constants.HtmlEditorView_FontSize)); fontColorAction.setTitle(translationService.format(Constants.HtmlEditorView_FontColor)); backgroundColorAction.setTitle(translationService.format(Constants.HtmlEditorView_BackgroundColor)); unorderedListAction.setTitle(translationService.format(Constants.HtmlEditorView_UnorderedList)); orderedListAction.setTitle(translationService.format(Constants.HtmlEditorView_OrderedList)); outdentListAction.setTitle(translationService.format(Constants.HtmlEditorView_OutdentList)); indentListAction.setTitle(translationService.format(Constants.HtmlEditorView_IndentList)); alignLeftAction.setTitle(translationService.format(Constants.HtmlEditorView_AlignLeft)); alignRightAction.setTitle(translationService.format(Constants.HtmlEditorView_AlignRight)); alignCenterAction.setTitle(translationService.format(Constants.HtmlEditorView_AlignCenter)); undoAction.setTitle(translationService.format(Constants.HtmlEditorView_Undo)); redoAction.setTitle(translationService.format(Constants.HtmlEditorView_Redo)); switchToHtmlAction.setTitle(translationService.format(Constants.HtmlEditorView_SwitchToHtmlView));
private void configureToolbarTitles() { boldAction.setTitle(translationService.format(Constants.HtmlEditorView_Bold)); italicAction.setTitle(translationService.format(Constants.HtmlEditorView_Italic)); underlineAction.setTitle(translationService.format(Constants.HtmlEditorView_Underline)); createLinkAction.setTitle(translationService.format(Constants.HtmlEditorView_CreateLink)); removeLinkAction.setTitle(translationService.format(Constants.HtmlEditorView_RemoveLink)); insertImageAction.setTitle(translationService.format(Constants.HtmlEditorView_InsertImage)); insertTableAction.setTitle(translationService.format(Constants.HtmlEditorView_InsertTable)); bigTitleAction.setTitle(translationService.format(Constants.HtmlEditorView_BigTitle)); mediumTitleAction.setTitle(translationService.format(Constants.HtmlEditorView_MediumTitle)); smallTitleAction.setTitle(translationService.format(Constants.HtmlEditorView_SmallTitle)); paragraphAction.setTitle(translationService.format(Constants.HtmlEditorView_Paragraph)); preAction.setTitle(translationService.format(Constants.HtmlEditorView_Pre)); plainTextAction.setTitle(translationService.format(Constants.HtmlEditorView_PlainText)); quoteAction.setTitle(translationService.format(Constants.HtmlEditorView_Quote)); codeAction.setTitle(translationService.format(Constants.HtmlEditorView_Code)); fontSizeAction.setTitle(translationService.format(Constants.HtmlEditorView_FontSize)); fontColorAction.setTitle(translationService.format(Constants.HtmlEditorView_FontColor)); backgroundColorAction.setTitle(translationService.format(Constants.HtmlEditorView_BackgroundColor)); unorderedListAction.setTitle(translationService.format(Constants.HtmlEditorView_UnorderedList)); orderedListAction.setTitle(translationService.format(Constants.HtmlEditorView_OrderedList)); outdentListAction.setTitle(translationService.format(Constants.HtmlEditorView_OutdentList)); indentListAction.setTitle(translationService.format(Constants.HtmlEditorView_IndentList)); alignLeftAction.setTitle(translationService.format(Constants.HtmlEditorView_AlignLeft)); alignRightAction.setTitle(translationService.format(Constants.HtmlEditorView_AlignRight)); alignCenterAction.setTitle(translationService.format(Constants.HtmlEditorView_AlignCenter)); undoAction.setTitle(translationService.format(Constants.HtmlEditorView_Undo)); redoAction.setTitle(translationService.format(Constants.HtmlEditorView_Redo)); switchToHtmlAction.setTitle(translationService.format(Constants.HtmlEditorView_SwitchToHtmlView));
@Override public void render(final Glyph glyph, final double width, final double height) { final org.jboss.errai.common.client.api.IsElement glyphElement = domGlyphRenderers.render(glyph, width, height); icon.appendChild(glyphElement.getElement()); final String tooltip = presenter.getItem().getTooltip(); if (!StringUtils.isEmpty(tooltip)) { icon.setTitle(tooltip); } else { icon.setTitle(""); } }
@Test public void testRenderEmptyTitle() { this.view.render(glyph, GLYPH_WIDTH, GLYPH_HEIGHT); verify(icon).appendChild(eq(glyphHtmlElement)); verify(icon).setTitle(eq("")); }
@Test public void testRenderNonEmptyTitle() { when(paletteItem.getTooltip()).thenReturn(GLYPH_TOOLTIP); this.view.render(glyph, GLYPH_WIDTH, GLYPH_HEIGHT); verify(icon).appendChild(eq(glyphHtmlElement)); verify(icon).setTitle(eq(GLYPH_TOOLTIP)); }
@Override public void render(Glyph glyph, double width, double height) { DefaultPaletteCategory category = presenter.getCategory(); categoryIcon.setTitle(category.getTitle()); final org.jboss.errai.common.client.api.IsElement glyphElement = domGlyphRenderers.render(glyph, width, height); categoryIcon.appendChild(glyphElement.getElement()); }
@Override public void init(SourceCodeEditor presenter) { this.presenter = presenter; aceEditor.startEditor(); aceEditor.setTheme(AceEditorTheme.CHROME); aceEditor.setReadOnly(false); aceEditor.addOnChangeHandler(this::onEditorChange); aceEditor.setAutocompleteEnabled(true); addVariableButton.setTitle(SourceCodeEditorConstants.INSTANCE.add_variable()); }
@Override public void init(SourceCodeEditor presenter) { this.presenter = presenter; aceEditor.startEditor(); aceEditor.setTheme(AceEditorTheme.CHROME); aceEditor.setReadOnly(false); aceEditor.addOnChangeHandler(this::onEditorChange); aceEditor.setAutocompleteEnabled(true); addVariableButton.setTitle(SourceCodeEditorConstants.INSTANCE.add_variable()); }