本文整理了Java中com.vaadin.ui.Button.setDescription()
方法的一些代码示例,展示了Button.setDescription()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setDescription()
方法的具体详情如下:
包路径:com.vaadin.ui.Button
类名称:Button
方法名:setDescription
暂无
代码示例来源:origin: info.magnolia.ui/magnolia-ui-framework
private void setButtonCaptionAndDescription() {
final String caption = isEmpty() ? buttonCaptionNew : buttonCaptionOther;
selectButton.setCaption(caption);
selectButton.setDescription(caption);
}
}
代码示例来源:origin: com.github.markash/components
public static Button DASHBOARD_EDIT(final String id, final ClickListener listener) {
Button button = ButtonBuilder.build(I8n.Button.EDIT, VaadinIcons.EDIT, listener, Style.Button.ICON_EDIT, ValoTheme.BUTTON_ICON_ONLY);
button.setId(id);
button.setDescription("Edit Dashboard");
return button;
}
}
代码示例来源:origin: apache/ace
public static void addShortcut(WebBrowser browser, Button button, String description, int key, int... modifiers) {
if (!browser.isTouchDevice()) {
button.setClickShortcut(key, modifiers);
button.setDescription(String.format("%s (%s)", description, formatShortcut(key, modifiers)));
}
}
代码示例来源:origin: OpenNMS/opennms
public Object generateCell(Table source, final Object itemId, Object columnId) {
Button button = new Button("Edit");
button.setDescription("Edit this Ops Board configuration");
button.setStyleName("small");
button.addClickListener(new Button.ClickListener() {
public void buttonClick(Button.ClickEvent clickEvent) {
m_wallboardConfigView.openWallboardEditor((Wallboard) itemId);
}
});
return button;
}
});
代码示例来源:origin: OpenNMS/opennms
public Object generateCell(Table source, final Object itemId, Object columnId) {
Button button = new Button("Remove");
button.setDescription("Delete this Surveillance View configuration");
button.setStyleName("small");
button.addClickListener(new Button.ClickListener() {
public void buttonClick(Button.ClickEvent clickEvent) {
SurveillanceViewProvider.getInstance().removeView((View) itemId);
m_beanItemContainer.removeItem(itemId);
}
});
return button;
}
});
代码示例来源:origin: OpenNMS/opennms
public Object generateCell(Table source, final Object itemId, Object columnId) {
Button button = new Button("Remove");
button.setDescription("Delete this Ops Board configuration");
button.setStyleName("small");
button.addClickListener(new Button.ClickListener() {
public void buttonClick(Button.ClickEvent clickEvent) {
m_wallboardConfigView.removeTab(((Wallboard) itemId).getTitle());
WallboardProvider.getInstance().removeWallboard((Wallboard) itemId);
refreshTable();
}
});
return button;
}
});
代码示例来源:origin: org.opennms.features/vaadin-surveillance-views
public Object generateCell(Table source, final Object itemId, Object columnId) {
Button button = new Button("Remove");
button.setDescription("Delete this Surveillance View configuration");
button.setStyleName("small");
button.addClickListener(new Button.ClickListener() {
public void buttonClick(Button.ClickEvent clickEvent) {
SurveillanceViewProvider.getInstance().removeView((View) itemId);
m_beanItemContainer.removeItem(itemId);
}
});
return button;
}
});
代码示例来源:origin: OpenNMS/opennms
public Object generateCell(Table source, final Object itemId, Object columnId) {
Button button = new Button("Preview");
button.setDescription("Preview this Surveillance View configuration");
button.setStyleName("small");
button.addClickListener(new PreviewClickListener(m_surveillanceViewService, SurveillanceViewsConfigList.this, (View) itemId));
return button;
}
}
代码示例来源:origin: OpenNMS/opennms
public static Button createButton(
final String buttonCaption,
final String buttonDescription,
final Resource icon,
final ClickListener clickListener) {
Button button = new Button();
button.setCaption(buttonCaption);
button.setIcon(icon);
if (buttonDescription != null) button.setDescription(buttonDescription);
if (clickListener != null) button.addClickListener(clickListener);
return button;
}
代码示例来源:origin: OpenNMS/opennms
public Object generateCell(Table source, final Object itemId, Object columnId) {
Button button = new Button("Preview");
button.setDescription("Preview this Ops Board configuration");
button.setStyleName("small");
button.addClickListener(new PreviewClickListener(WallboardOverview.this, (Wallboard) itemId));
return button;
}
});
代码示例来源:origin: org.opennms.features.vaadin-components/core
public static Button createButton(
final String buttonCaption,
final String buttonDescription,
final Resource icon,
final ClickListener clickListener) {
Button button = new Button();
button.setCaption(buttonCaption);
button.setIcon(icon);
if (buttonDescription != null) button.setDescription(buttonDescription);
if (clickListener != null) button.addClickListener(clickListener);
return button;
}
代码示例来源:origin: org.opennms.features/vaadin-surveillance-views
public Object generateCell(Table source, final Object itemId, Object columnId) {
Button button = new Button("Preview");
button.setDescription("Preview this Surveillance View configuration");
button.setStyleName("small");
button.addClickListener(new PreviewClickListener(m_surveillanceViewService, SurveillanceViewsConfigList.this, (View) itemId));
return button;
}
}
代码示例来源:origin: org.aperteworkflow/gui-commons
public static Button icon(String description, Resource icon, Button.ClickListener listener) {
Button b = new Button();
b.setStyleName("link");
b.setIcon(icon);
b.setImmediate(true);
b.setDescription(description);
if (listener != null) {
b.addListener(listener);
}
return b;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private Object createDeleteButton(final Object itemId) {
final Button deleteButton = SPUIComponentProvider.getButton("", "", "", "", true, FontAwesome.TRASH_O,
SPUIButtonStyleNoBorderWithIcon.class);
final String id = getEntityId(itemId);
deleteButton.setId("delete.entity." + id);
deleteButton.setDescription(i18n.getMessage(UIMessageIdProvider.TOOLTIP_DELETE));
deleteButton.addClickListener(this::addDeleteButtonClickListener);
return deleteButton;
}
代码示例来源:origin: eclipse/hawkbit
private Object createDeleteButton(final Object itemId) {
final Button deleteButton = SPUIComponentProvider.getButton("", "", "", "", true, FontAwesome.TRASH_O,
SPUIButtonStyleNoBorderWithIcon.class);
final String id = getEntityId(itemId);
deleteButton.setId("delete.entity." + id);
deleteButton.setDescription(i18n.getMessage(UIMessageIdProvider.TOOLTIP_DELETE));
deleteButton.addClickListener(this::addDeleteButtonClickListener);
return deleteButton;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private Button createShowArtifactDetailsButton() {
artifactDetailsButton = SPUIComponentProvider.getButton("", "", "", null, false, FontAwesome.FILE_O,
SPUIButtonStyleNoBorder.class);
artifactDetailsButton.setDescription(getI18n().getMessage(UIMessageIdProvider.TOOLTIP_ARTIFACT_ICON));
artifactDetailsButton.addClickListener(event -> showArtifactDetailsWindow(getSelectedBaseEntity()));
return artifactDetailsButton;
}
代码示例来源:origin: eclipse/hawkbit
private Button createShowArtifactDetailsButton() {
artifactDetailsButton = SPUIComponentProvider.getButton("", "", "", null, false, FontAwesome.FILE_O,
SPUIButtonStyleNoBorder.class);
artifactDetailsButton.setDescription(getI18n().getMessage(UIMessageIdProvider.TOOLTIP_ARTIFACT_ICON));
artifactDetailsButton.addClickListener(event -> showArtifactDetailsWindow(getSelectedBaseEntity()));
return artifactDetailsButton;
}
代码示例来源:origin: eclipse/hawkbit
private Button createBreadcrumbButton() {
final Button createFilterViewLink = SPUIComponentProvider.getButton(null, "", "", null, false, null,
SPUIButtonStyleNoBorder.class);
createFilterViewLink.setStyleName(ValoTheme.LINK_SMALL + " " + "on-focus-no-border link rollout-caption-links");
createFilterViewLink.setDescription(i18n.getMessage(BREADCRUMB_CUSTOM_FILTERS));
createFilterViewLink.setCaption(i18n.getMessage(BREADCRUMB_CUSTOM_FILTERS));
createFilterViewLink.addClickListener(value -> showCustomFiltersView());
return createFilterViewLink;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private Button createBreadcrumbButton() {
final Button createFilterViewLink = SPUIComponentProvider.getButton(null, "", "", null, false, null,
SPUIButtonStyleNoBorder.class);
createFilterViewLink.setStyleName(ValoTheme.LINK_SMALL + " " + "on-focus-no-border link rollout-caption-links");
createFilterViewLink.setDescription(i18n.getMessage(BREADCRUMB_CUSTOM_FILTERS));
createFilterViewLink.setCaption(i18n.getMessage(BREADCRUMB_CUSTOM_FILTERS));
createFilterViewLink.addClickListener(value -> showCustomFiltersView());
return createFilterViewLink;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private Button createFilterButton(final Long id, final String name, final Object itemId) {
final Button button = SPUIComponentProvider.getButton("", name, name, "", false, null,
SPUITagButtonStyle.class);
button.addStyleName("custom-filter-button");
button.setId(name);
if (id != null) {
button.setCaption(name);
}
button.setDescription(name);
button.setData(itemId);
button.addClickListener(event -> customTargetTagFilterButtonClick.processButtonClick(event));
return button;
}
内容来源于网络,如有侵权,请联系作者删除!