org.jboss.errai.common.client.dom.Button.setTitle()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(9.2k)|赞(0)|评价(0)|浏览(83)

本文整理了Java中org.jboss.errai.common.client.dom.Button.setTitle()方法的一些代码示例,展示了Button.setTitle()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setTitle()方法的具体详情如下:
包路径:org.jboss.errai.common.client.dom.Button
类名称:Button
方法名:setTitle

Button.setTitle介绍

暂无

代码示例

代码示例来源:origin: org.dashbuilder/dashbuilder-renderer-default

@Override
public void setDescription(String description) {
  item.setTitle(description);
}

代码示例来源:origin: kiegroup/appformer

@Override
public void setDescription(String description) {
  item.setTitle(description);
}

代码示例来源:origin: org.dashbuilder/dashbuilder-renderer-default

@Override
public void showCurrentSelection(String text, String hint) {
  dropDownText.setTextContent(text);
  dropDownButton.setTitle(hint);
}

代码示例来源:origin: org.kie.workbench.forms/kie-wb-common-dynamic-forms-client

@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));
}

代码示例来源:origin: kiegroup/appformer

@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);
}

代码示例来源:origin: kiegroup/appformer

@Override
public void showCurrentSelection(String text, String hint) {
  dropDownText.setTextContent(text);
  dropDownButton.setTitle(hint);
}

代码示例来源:origin: org.dashbuilder/dashbuilder-renderer-default

@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);
}

代码示例来源:origin: org.uberfire/uberfire-commons-editor-client

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));

代码示例来源:origin: kiegroup/appformer

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));

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

@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("");
  }
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

@Test
public void testRenderEmptyTitle() {
  this.view.render(glyph, GLYPH_WIDTH, GLYPH_HEIGHT);
  verify(icon).appendChild(eq(glyphHtmlElement));
  verify(icon).setTitle(eq(""));
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

@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));
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets

@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());
}

代码示例来源:origin: org.dashbuilder/dashbuilder-displayer-client

@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());
}

代码示例来源:origin: kiegroup/appformer

@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());
}

相关文章