本文整理了Java中com.vaadin.ui.Panel.setVisible()
方法的一些代码示例,展示了Panel.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Panel.setVisible()
方法的具体详情如下:
包路径:com.vaadin.ui.Panel
类名称:Panel
方法名:setVisible
暂无
代码示例来源:origin: org.activiti/activiti-explorer
public void toolBarItemSelected() {
if (imagePanel != null) {
imagePanel.setVisible(false);
editorGrid.setVisible(true);
toolBar.setActiveEntry(KEY_EDITOR);
}
}
});
代码示例来源:origin: uk.q3c.krail/krail
/**
* used wqhen nav tree not required, and split panel also therefore not required
*/
protected void nonSplitPanel() {
if (nonSplitPanel == null) {
nonSplitPanel = new Panel();
nonSplitPanel.setSizeFull();
}
if (!option.get(optionNavTreeVisible)) {
nonSplitPanel.setContent(mainArea);
nonSplitPanel.setVisible(true);
} else {
nonSplitPanel.setVisible(false);
}
}
代码示例来源:origin: KrailOrg/krail
/**
* used wqhen nav tree not required, and split panel also therefore not required
*/
protected void nonSplitPanel() {
if (nonSplitPanel == null) {
nonSplitPanel = new Panel();
nonSplitPanel.setSizeFull();
}
if (!option.get(optionNavTreeVisible)) {
nonSplitPanel.setContent(mainArea);
nonSplitPanel.setVisible(true);
} else {
nonSplitPanel.setVisible(false);
}
}
代码示例来源:origin: jpos/jPOS-EE
private void hidePasswordPanel () {
if (changePassBtn != null && passwordPanel != null) {
changePassBtn.setCaption(getApp().getMessage("changePassword"));
passwordPanel.setVisible(false);
passwordBinder.setReadOnly(true);
binderIsReadOnly = true;
}
}
代码示例来源:origin: org.opencms/opencms-core
Map<CmsPrincipalBean, String> responsibles = m_availabilityInfo.getResponsibles();
if (!responsibles.isEmpty()) {
m_responsiblesPanel.setVisible(true);
m_notificationPanel.setVisible(true);
for (Map.Entry<CmsPrincipalBean, String> entry : responsibles.entrySet()) {
CmsPrincipalBean principal = entry.getKey();
m_notificationPanel.setVisible(showNotification);
代码示例来源:origin: jpos/jPOS-EE
private Button createChangePasswordButton () {
Button b = new Button(getApp().getMessage("changePassword"));
b.setIcon(VaadinIcons.LOCK);
b.setStyleName(ValoTheme.BUTTON_LINK);
b.addStyleName(ValoTheme.BUTTON_SMALL);
b.setEnabled(false);
b.addClickListener((Button.ClickListener) event -> {
passwordPanel.setVisible(!passwordPanel.isVisible());
binderIsReadOnly = !binderIsReadOnly;
passwordBinder.setReadOnly(binderIsReadOnly);
changePassBtn.setCaption(passwordPanel.isVisible() ?
getApp().getMessage("cancel") : getApp().getMessage("changePassword"));
currentPasswordField.setReadOnly(binderIsReadOnly);
newPasswordField.setReadOnly(binderIsReadOnly);
repeatPasswordField.setReadOnly(binderIsReadOnly);
});
return b;
}
代码示例来源:origin: jpos/jPOS-EE
.bind(string->string,null);
form.addComponent(repeatPasswordField);
passwordPanel.setVisible(forcePasswordChange);
passwordPanel.setContent(panelContent);
return passwordPanel;
内容来源于网络,如有侵权,请联系作者删除!