本文整理了Java中com.vaadin.ui.Button.setVisible()
方法的一些代码示例,展示了Button.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setVisible()
方法的具体详情如下:
包路径:com.vaadin.ui.Button
类名称:Button
方法名:setVisible
暂无
代码示例来源:origin: com.vaadin/vaadin-server
/**
* Sets the visibility of the History.
*
* @param visible
* {@code true} to show the history, {@code false} to hide it
*/
public void setHistoryVisible(boolean visible) {
historyContainer.setVisible(visible);
resize.setVisible(visible);
}
代码示例来源:origin: OpenNMS/opennms
@Override
public void setReadOnly(boolean readOnly) {
saveBtn.setVisible(!readOnly);
cancelBtn.setVisible(!readOnly);
editBtn.setVisible(readOnly);
deleteBtn.setVisible(readOnly);
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(ClickEvent event)
{
hideFilterButton.setVisible(true);
showFilterButton.setVisible(false);
vSplitPanel.setSplitPosition(splitPosition, splitUnit);
}
});
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(ClickEvent event)
{
hideFilterButton.setVisible(true);
showFilterButton.setVisible(false);
vSplitPanel.setSplitPosition(splitPosition, splitUnit);
}
});
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(ClickEvent event)
{
hideFilterButton.setVisible(true);
showFilterButton.setVisible(false);
vSplitPanel.setSplitPosition(splitPosition, splitUnit);
}
});
代码示例来源:origin: com.vaadin/vaadin-compatibility-server
/**
* Set the History visibility.
*
* @param visible
*/
public void setHistoryVisible(boolean visible) {
historyContainer.setVisible(visible);
resize.setVisible(visible);
}
代码示例来源:origin: org.opennms.features/jmxconfiggenerator.webui
@Override
public void modelChanged(UiState newModel) {
// help.setVisible(false); // TODO enable/disable help dynamically
previous.setVisible(newModel.hasPrevious());
next.setVisible(newModel.hasNext());
}
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(ClickEvent event)
{
hideFilterButton.setVisible(false);
showFilterButton.setVisible(true);
splitPosition = vSplitPanel.getSplitPosition();
splitUnit = vSplitPanel.getSplitPositionUnit();
vSplitPanel.setSplitPosition(0, Unit.PIXELS);
}
});
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(ClickEvent event)
{
hideFilterButton.setVisible(false);
showFilterButton.setVisible(true);
splitPosition = vSplitPanel.getSplitPosition();
splitUnit = vSplitPanel.getSplitPositionUnit();
vSplitPanel.setSplitPosition(0, Unit.PIXELS);
}
});
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(ClickEvent event)
{
hideFilterButton.setVisible(false);
showFilterButton.setVisible(true);
splitPosition = vSplitPanel.getSplitPosition();
splitUnit = vSplitPanel.getSplitPositionUnit();
vSplitPanel.setSplitPosition(0, Unit.PIXELS);
}
});
代码示例来源:origin: com.haulmont.cuba/cuba-web
protected void updateButtonsVisibility() {
uploadButton.setVisible(!isReadOnly());
if (!isReadOnly() && !isRequiredIndicatorVisible() && showClearButton) {
clearButton.setVisible(true);
} else {
clearButton.setVisible(false);
}
}
代码示例来源:origin: org.aperteworkflow/gui-commons
@Override
public void setReadOnly(boolean readOnly) {
for (Iterator<Component> it = itemsLayout.getComponentIterator(); it.hasNext(); ) {
it.next().setReadOnly(readOnly);
}
addButton.setVisible(!readOnly);
super.setReadOnly(readOnly);
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(ClickEvent event)
{
replayService.cancel();
executorService.shutdown();
bar.setVisible(false);
cancelButton.setVisible(false);
Notification.show("Replay cancelled!");
}
});
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void buttonClick(ClickEvent event)
{
replayService.cancel();
executorService.shutdown();
bar.setVisible(false);
cancelButton.setVisible(false);
Notification.show("Replay cancelled!");
}
});
代码示例来源:origin: org.activiti/activiti-explorer
protected void initCountComponent() {
countButton = new Button(count + "");
countButton.addStyleName(Reindeer.BUTTON_LINK);
countButton.addStyleName(ExplorerLayout.STYLE_TOOLBAR_COUNT);
// Initially hidden
countButton.setVisible(false);
layout.addComponent(countButton);
layout.setComponentAlignment(countButton, Alignment.MIDDLE_LEFT);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private Button createShowFilterButtonLayout() {
final Button button = SPUIComponentProvider.getButton(getShowFilterButtonLayoutId(), null,
i18n.getMessage(UIMessageIdProvider.TOOLTIP_SHOW_TAGS), null, false, FontAwesome.TAGS,
SPUIButtonStyleNoBorder.class);
button.setVisible(false);
button.addClickListener(event -> showFilterButtonsIconClicked());
return button;
}
代码示例来源:origin: eclipse/hawkbit
private Button createShowFilterButtonLayout() {
final Button button = SPUIComponentProvider.getButton(getShowFilterButtonLayoutId(), null,
i18n.getMessage(UIMessageIdProvider.TOOLTIP_SHOW_TAGS), null, false, FontAwesome.TAGS,
SPUIButtonStyleNoBorder.class);
button.setVisible(false);
button.addClickListener(event -> showFilterButtonsIconClicked());
return button;
}
代码示例来源:origin: eclipse/hawkbit
private Button createRemoveButton() {
final Button button = SPUIComponentProvider.getButton(UIComponentIdProvider.ROLLOUT_GROUP_REMOVE_ID, "", "",
"", true, FontAwesome.MINUS, SPUIButtonStyleNoBorderWithIcon.class);
button.setSizeUndefined();
button.addStyleName("default-color");
button.setEnabled(true);
button.setVisible(true);
button.addClickListener(event -> onRemove());
return button;
}
代码示例来源:origin: OpenNMS/opennms
public ConfigView(JmxConfigGeneratorUI app) {
this.app = app;
this.configForm = new ConfigForm();
this.buttonPanel = new ButtonPanel(this);
// we do not have a previous button
buttonPanel.getPrevious().setVisible(false);
addComponent(configForm);
addComponent(buttonPanel);
setExpandRatio(configForm, 1);
setSizeFull();
}
代码示例来源:origin: org.opennms.features/vaadin-jmxconfiggenerator
public ConfigView(JmxConfigGeneratorUI app) {
this.app = app;
this.configForm = new ConfigForm();
this.buttonPanel = new ButtonPanel(this);
// we do not have a previous button
buttonPanel.getPrevious().setVisible(false);
addComponent(configForm);
addComponent(buttonPanel);
setExpandRatio(configForm, 1);
setSizeFull();
}
内容来源于网络,如有侵权,请联系作者删除!