本文整理了Java中com.vaadin.ui.Button.setHeightUndefined()
方法的一些代码示例,展示了Button.setHeightUndefined()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setHeightUndefined()
方法的具体详情如下:
包路径:com.vaadin.ui.Button
类名称:Button
方法名:setHeightUndefined
暂无
代码示例来源:origin: com.haulmont.cuba/cuba-web
private void updateComponentHeight() {
if (container == null)
return;
if (getHeight() >= 0) {
container.setHeight(100, Unit.PERCENTAGE);
fileNameButton.setHeight(100, Unit.PERCENTAGE);
uploadButton.setHeight(100, Unit.PERCENTAGE);
clearButton.setHeight(100, Unit.PERCENTAGE);
} else {
container.setHeightUndefined();
fileNameButton.setHeightUndefined();
uploadButton.setHeightUndefined();
clearButton.setHeightUndefined();
}
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private Button getTagetPinButton(final Object itemId) {
final Button pinBtn = new Button();
final String controllerId = (String) getContainerDataSource().getItem(itemId)
.getItemProperty(SPUILabelDefinitions.VAR_CONT_ID).getValue();
final TargetIdName pinnedTarget = new TargetIdName((Long) itemId, controllerId);
final StringBuilder pinBtnStyle = new StringBuilder(ValoTheme.BUTTON_BORDERLESS_COLORED);
pinBtnStyle.append(' ');
pinBtnStyle.append(ValoTheme.BUTTON_SMALL);
pinBtnStyle.append(' ');
pinBtnStyle.append(ValoTheme.BUTTON_ICON_ONLY);
pinBtn.setStyleName(pinBtnStyle.toString());
pinBtn.setHeightUndefined();
pinBtn.setData(pinnedTarget);
pinBtn.setId(UIComponentIdProvider.TARGET_PIN_ICON + controllerId);
pinBtn.addClickListener(this::addPinClickListener);
pinBtn.setDescription(getI18n().getMessage(UIMessageIdProvider.TOOLTIP_TARGET_PIN));
if (isPinned(pinnedTarget)) {
pinBtn.addStyleName(TARGET_PINNED);
targetPinned = Boolean.TRUE;
targetPinnedBtn = pinBtn;
getEventBus().publish(this, PinUnpinEvent.PIN_TARGET);
}
pinBtn.addStyleName(SPUIStyleDefinitions.TARGET_STATUS_PIN_TOGGLE);
HawkbitCommonUtil.applyStatusLblStyle(this, pinBtn, itemId);
return pinBtn;
}
代码示例来源:origin: eclipse/hawkbit
private Button getTagetPinButton(final Object itemId) {
final Button pinBtn = new Button();
final String controllerId = (String) getContainerDataSource().getItem(itemId)
.getItemProperty(SPUILabelDefinitions.VAR_CONT_ID).getValue();
final TargetIdName pinnedTarget = new TargetIdName((Long) itemId, controllerId);
final StringBuilder pinBtnStyle = new StringBuilder(ValoTheme.BUTTON_BORDERLESS_COLORED);
pinBtnStyle.append(' ');
pinBtnStyle.append(ValoTheme.BUTTON_SMALL);
pinBtnStyle.append(' ');
pinBtnStyle.append(ValoTheme.BUTTON_ICON_ONLY);
pinBtn.setStyleName(pinBtnStyle.toString());
pinBtn.setHeightUndefined();
pinBtn.setData(pinnedTarget);
pinBtn.setId(UIComponentIdProvider.TARGET_PIN_ICON + controllerId);
pinBtn.addClickListener(this::addPinClickListener);
pinBtn.setDescription(getI18n().getMessage(UIMessageIdProvider.TOOLTIP_TARGET_PIN));
if (isPinned(pinnedTarget)) {
pinBtn.addStyleName(TARGET_PINNED);
targetPinned = Boolean.TRUE;
targetPinnedBtn = pinBtn;
getEventBus().publish(this, PinUnpinEvent.PIN_TARGET);
}
pinBtn.addStyleName(SPUIStyleDefinitions.TARGET_STATUS_PIN_TOGGLE);
HawkbitCommonUtil.applyStatusLblStyle(this, pinBtn, itemId);
return pinBtn;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private Button createPinBtn(final Object itemId) {
final Item item = getContainerDataSource().getItem(itemId);
final String name = (String) item.getItemProperty(SPUILabelDefinitions.VAR_NAME).getValue();
final String version = (String) item.getItemProperty(SPUILabelDefinitions.VAR_VERSION).getValue();
final DistributionSetIdName distributionSetIdName = new DistributionSetIdName((Long) itemId, name, version);
final Button pinBtn = new Button();
pinBtn.setIcon(FontAwesome.THUMB_TACK);
pinBtn.setHeightUndefined();
pinBtn.addStyleName(getPinStyle());
pinBtn.setData(distributionSetIdName);
pinBtn.setId(getPinButtonId(name, version));
pinBtn.setImmediate(true);
pinBtn.setDescription(getI18n().getMessage(UIMessageIdProvider.TOOLTIP_DISTRIBUTION_SET_PIN));
return pinBtn;
}
代码示例来源:origin: eclipse/hawkbit
private Button createPinBtn(final Object itemId) {
final Item item = getContainerDataSource().getItem(itemId);
final String name = (String) item.getItemProperty(SPUILabelDefinitions.VAR_NAME).getValue();
final String version = (String) item.getItemProperty(SPUILabelDefinitions.VAR_VERSION).getValue();
final DistributionSetIdName distributionSetIdName = new DistributionSetIdName((Long) itemId, name, version);
final Button pinBtn = new Button();
pinBtn.setIcon(FontAwesome.THUMB_TACK);
pinBtn.setHeightUndefined();
pinBtn.addStyleName(getPinStyle());
pinBtn.setData(distributionSetIdName);
pinBtn.setId(getPinButtonId(name, version));
pinBtn.setImmediate(true);
pinBtn.setDescription(getI18n().getMessage(UIMessageIdProvider.TOOLTIP_DISTRIBUTION_SET_PIN));
return pinBtn;
}
内容来源于网络,如有侵权,请联系作者删除!