本文整理了Java中org.jboss.errai.common.client.dom.Button
类的一些代码示例,展示了Button
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button
类的具体详情如下:
包路径:org.jboss.errai.common.client.dom.Button
类名称:Button
暂无
代码示例来源:origin: stackoverflow.com
Button myButton = new Button("HELP",Image.createImage("/help.ico"));
myButton.getStyle().setBgImage(null);
myButton.getStyle().setPadding(0, 0, 0, 0);
myButton.getStyle().setBorder(null);
myButton.getPressedStyle().setBgImage(null);
myButton.getPressedStyle().setPadding(0, 0, 0, 0);
myButton.getPressedStyle().setBorder(null);
代码示例来源:origin: org.kie.workbench.widgets/kie-wb-common-ui
@Override
public void setYesButtonText( final String text ) {
yesButton.setTextContent( text );
}
代码示例来源:origin: org.dashbuilder/dashbuilder-renderer-default
@Override
public void setDescription(String description) {
item.setTitle(description);
}
代码示例来源: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.kie.workbench.stunner/kie-wb-common-stunner-widgets
private void setCloseButtonVisible(boolean visible) {
closeCategoryButton.getStyle().removeProperty("display");
if (!visible) {
closeCategoryButton.getStyle().setProperty("display", "none");
}
}
代码示例来源:origin: stackoverflow.com
public class MyClass extends SelectorComposer<Window> {
@Wire
private Button btn;
@Listen("onChanging = #myTextBoxID")
public void onChanging(ChangeingEvent ev) {
btn.setDisabled( ev.getValue().isEmpty() );
}
}
代码示例来源: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-bpmn-client
@Override
public void add(final AssigneeListItem listItem) {
HTMLElement tableRow = document.createElement("tr");
HTMLElement liveSearchTd = document.createElement("td");
listItem.getLiveSearchDropDown().asWidget().getElement().getStyle().setWidth(100, Style.Unit.PCT);
DOMUtil.appendWidgetToElement(liveSearchTd, listItem.getLiveSearchDropDown());
listItem.getLiveSearchDropDown().setEnabled(!readOnly);
HTMLElement actionTd = document.createElement("td");
Button button = (Button) document.createElement("button");
button.setClassName("btn btn-link fa fa-trash");
button.addEventListener("click", event -> {
listItem.notifyRemoval();
DOMUtil.removeFromParent(tableRow);
}, false);
button.setDisabled(readOnly);
actionTd.appendChild(button);
tableRow.appendChild(liveSearchTd);
tableRow.appendChild(actionTd);
assigneeRows.appendChild(tableRow);
assigneeRowsElements.add(new Pair<>(listItem.getLiveSearchDropDown(), button));
elements.put(listItem, tableRow);
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-library-client
@Override
public void init(final EmptyOrganizationalUnitsScreen presenter) {
this.presenter = presenter;
noOrganizationalUnits.setTextContent(ts.format(LibraryConstants.NoOrganizationalUnits,
translationUtils.getOrganizationalUnitAliasInPlural().toLowerCase(),
translationUtils.getOrganizationalUnitAliasInSingular().toLowerCase()));
createOrganizationalUnit.setTextContent(ts.format(LibraryConstants.CreateOrganizationalUnit,
translationUtils.getOrganizationalUnitAliasInSingular()));
final boolean userCanCreateOrganizationalUnits = presenter.userCanCreateOrganizationalUnits();
createOrganizationalUnit.setHidden(!userCanCreateOrganizationalUnits);
}
代码示例来源:origin: kiegroup/jbpm-wb
@PostConstruct
public void init() {
refine.setTextContent(constants.FilterBy());
filtersInputHelp.setAttribute("data-content",
getInputStringHelpHtml());
jQueryPopover.wrap(filtersInputHelp).popover();
refineSelect.getElement().addEventListener("change",
e -> setInputCurrentFilter(refineSelect.getValue()),
false);
refineApply.setTextContent(constants.Apply());
}
代码示例来源:origin: org.jbpm/jbpm-wb-case-mgmt-client
@PostConstruct
public void init() {
tooltip(sortAlphaAsc);
sortAlphaAsc.setAttribute("data-original-title",
translationService.format(SORT_BY_DATE_DESC));
tooltip(sortAlphaDesc);
sortAlphaDesc.setAttribute("data-original-title",
translationService.format(SORT_BY_DATE_ASC));
}
代码示例来源:origin: org.dashbuilder/dashbuilder-renderer-default
@Override
public void select() {
item.setClassName("btn btn-primary");
}
代码示例来源:origin: org.kie.workbench/kie-wb-common-dmn-client
@Override
public void addRemoveClickHandler(final Command command) {
remove.addEventListener(BrowserEvents.CLICK,
(e) -> command.execute(),
false);
}
代码示例来源:origin: org.kie.workbench.widgets/kie-wb-common-ui
@Override
public void showYesButton( final boolean show ) {
yesButton.getStyle().setProperty( "display", show ? "inline" : "none" );
}
代码示例来源:origin: org.kie.workbench.widgets/kie-wb-metadata-widget
@Override
public void setReadOnly( final boolean isReadOnly ) {
openDocumentMenuButton.setDisabled( isReadOnly );
}
代码示例来源: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: 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: kiegroup/jbpm-wb
@PostConstruct
public void init() {
tooltip(sortAlphaAsc);
sortAlphaAsc.setAttribute("data-original-title",
translationService.format(SORT_BY_DATE_DESC));
tooltip(sortAlphaDesc);
sortAlphaDesc.setAttribute("data-original-title",
translationService.format(SORT_BY_DATE_ASC));
}
代码示例来源:origin: org.dashbuilder/dashbuilder-renderer-default
@Override
public void reset() {
item.setClassName("btn btn-default");
}
代码示例来源:origin: org.kie.workbench.widgets/kie-wb-common-ui
@Override
public void showCancelButton( final boolean show ) {
cancelButton.getStyle().setProperty( "display", show ? "inline" : "none" );
}
内容来源于网络,如有侵权,请联系作者删除!