本文整理了Java中com.vaadin.ui.Button.getData()
方法的一些代码示例,展示了Button.getData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.getData()
方法的具体详情如下:
包路径:com.vaadin.ui.Button
类名称:Button
方法名:getData
暂无
代码示例来源:origin: com.vaadin/vaadin-server
private void resizeButtonClick(ClickEvent event) {
boolean minimize = (Boolean) resize.getData();
if (minimize) {
historyContainer.setHeight("27px");
history.setHeight("22px");
} else {
historyContainer.setHeight("90px");
history.setHeight("85px");
}
resize.setData(!minimize);
}
代码示例来源:origin: eclipse/hawkbit
private void saveDistributionPinnedBtn(final Button pinBtn) {
if (pinBtn.getData() == null) {
return;
}
final Long pinnedId = ((DistributionSetIdName) pinBtn.getData()).getId();
if (managementUIState.getTargetTableFilters().getPinnedDistId().map(pinnedId::equals).orElse(false)) {
setDistributionPinnedBtn(pinBtn);
}
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void saveDistributionPinnedBtn(final Button pinBtn) {
if (pinBtn.getData() == null) {
return;
}
final Long pinnedId = ((DistributionSetIdName) pinBtn.getData()).getId();
if (managementUIState.getTargetTableFilters().getPinnedDistId().map(pinnedId::equals).orElse(false)) {
setDistributionPinnedBtn(pinBtn);
}
}
代码示例来源:origin: eclipse/hawkbit
@Override
protected void filterClicked(final Button clickedButton) {
distributionSetTypeManagement.getByName(clickedButton.getData().toString())
.ifPresent(manageDistUIState.getManageDistFilters()::setClickedDistSetType);
eventBus.publish(this, new RefreshDistributionTableByFilterEvent());
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
protected void filterClicked(final Button clickedButton) {
distributionSetTypeManagement.getByName(clickedButton.getData().toString())
.ifPresent(manageDistUIState.getManageDistFilters()::setClickedDistSetType);
eventBus.publish(this, new RefreshDistributionTableByFilterEvent());
}
代码示例来源:origin: org.activiti/activiti-explorer
public void buttonClick(ClickEvent event) {
if (propertyTable.size() > 1) {
Object id = event.getButton().getData();
propertyTable.removeItem(id);
}
}
代码示例来源:origin: org.activiti/activiti-explorer
public void buttonClick(ClickEvent event) {
if (taskTable.size() > 1) {
Object id = event.getButton().getData();
taskTable.removeItem(id);
}
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
protected void filterClicked(final Button clickedButton) {
softwareModuleTypeManagement.getByName(clickedButton.getData().toString())
.ifPresent(smType -> {
manageDistUIState.getSoftwareModuleFilters().setSoftwareModuleType(smType);
eventBus.publish(this, new RefreshSoftwareModuleByFilterEvent());
});
}
代码示例来源:origin: de.mhus.lib/mhu-lib-vaadin6
@Override
public void buttonClick(ClickEvent event) {
NavigationNode n = (NavigationNode) event.getButton().getData();
if (n == null) return;
getDesktop().setSelectedPath(n);
}
代码示例来源:origin: eclipse/hawkbit
@Override
protected void filterClicked(final Button clickedButton) {
softwareModuleTypeManagement.getByName(clickedButton.getData().toString()).ifPresent(smType -> {
manageDistUIState.getSoftwareModuleFilters().setSoftwareModuleType(smType);
eventBus.publish(this, new RefreshSoftwareModuleByFilterEvent());
});
}
代码示例来源:origin: eclipse/hawkbit
@Override
protected void filterClicked(final Button clickedButton) {
softwareModuleTypeManagement.getByName(clickedButton.getData().toString()).ifPresent(softwareModuleType -> {
artifactUploadState.getSoftwareModuleFilters().setSoftwareModuleType(softwareModuleType);
eventBus.publish(this, new RefreshSoftwareModuleByFilterEvent());
});
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
protected void filterClicked(final Button clickedButton) {
targetFilterQueryManagement.get((Long) clickedButton.getData()).ifPresent(targetFilterQuery -> {
this.managementUIState.getTargetTableFilters().setTargetFilterQuery(targetFilterQuery.getId());
this.eventBus.publish(this, TargetFilterEvent.FILTER_BY_TARGET_FILTER_QUERY);
});
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
protected void filterClicked(final Button clickedButton) {
if (clickedButton.getData().equals(SPUIDefinitions.NO_TAG_BUTTON_ID)) {
managementUIState.getDistributionTableFilters().setNoTagSelected(true);
} else {
managementUIState.getDistributionTableFilters().getDistSetTags().add(clickedButton.getId());
}
eventBus.publish(this, new RefreshDistributionTableByFilterEvent());
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void resetPinStyle(final Button pinBtn) {
pinBtn.removeStyleName(TARGET_PINNED);
pinBtn.addStyleName(SPUIStyleDefinitions.TARGET_STATUS_PIN_TOGGLE);
final TargetIdName targetIdname = (TargetIdName) pinBtn.getData();
HawkbitCommonUtil.applyStatusLblStyle(this, pinBtn, targetIdname.getTargetId());
}
代码示例来源:origin: eclipse/hawkbit
@Override
protected void filterClicked(final Button clickedButton) {
if (clickedButton.getData().equals(SPUIDefinitions.NO_TAG_BUTTON_ID)) {
managementUIState.getTargetTableFilters().setNoTagSelected(true);
eventBus.publish(this, TargetFilterEvent.FILTER_BY_TAG);
} else {
managementUIState.getTargetTableFilters().getClickedTargetTags().add(clickedButton.getId());
eventBus.publish(this, TargetFilterEvent.FILTER_BY_TAG);
}
}
代码示例来源:origin: eclipse/hawkbit
private void resetPinStyle(final Button pinBtn) {
pinBtn.removeStyleName(TARGET_PINNED);
pinBtn.addStyleName(SPUIStyleDefinitions.TARGET_STATUS_PIN_TOGGLE);
final TargetIdName targetIdname = (TargetIdName) pinBtn.getData();
HawkbitCommonUtil.applyStatusLblStyle(this, pinBtn, targetIdname.getTargetId());
}
代码示例来源:origin: eclipse/hawkbit
@Override
protected void filterClicked(final Button clickedButton) {
if (clickedButton.getData().equals(SPUIDefinitions.NO_TAG_BUTTON_ID)) {
managementUIState.getDistributionTableFilters().setNoTagSelected(true);
} else {
managementUIState.getDistributionTableFilters().getDistSetTags().add(clickedButton.getId());
}
eventBus.publish(this, new RefreshDistributionTableByFilterEvent());
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void onClickOfDetailButton(final ClickEvent event) {
final String targetFilterName = (String) ((Button) event.getComponent()).getData();
targetFilterQueryManagement.getByName(targetFilterName).ifPresent(targetFilterQuery -> {
filterManagementUIState.setFilterQueryValue(targetFilterQuery.getQuery());
filterManagementUIState.setTfQuery(targetFilterQuery);
filterManagementUIState.setEditViewDisplayed(true);
eventBus.publish(this, CustomFilterUIEvent.TARGET_FILTER_DETAIL_VIEW);
});
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void onClickOfDistributionSetButton(final ClickEvent event) {
final Item item = (Item) ((Button) event.getComponent()).getData();
final Long tfqId = (Long) item.getItemProperty(SPUILabelDefinitions.VAR_ID).getValue();
if (permChecker.hasReadRepositoryPermission()) {
dsSelectWindow.showForTargetFilter(tfqId);
} else {
notification.displayValidationError(
i18n.getMessage("message.permission.insufficient", SpPermission.READ_REPOSITORY));
}
}
代码示例来源:origin: eclipse/hawkbit
private void onClickOfDistributionSetButton(final ClickEvent event) {
final Item item = (Item) ((Button) event.getComponent()).getData();
final Long tfqId = (Long) item.getItemProperty(SPUILabelDefinitions.VAR_ID).getValue();
if (permChecker.hasReadRepositoryPermission()) {
dsSelectWindow.showForTargetFilter(tfqId);
} else {
notification.displayValidationError(
i18n.getMessage("message.permission.insufficient", SpPermission.READ_REPOSITORY));
}
}
内容来源于网络,如有侵权,请联系作者删除!