public void toolBarItemSelected() { if (imagePanel != null) { imagePanel.setVisible(false); editorGrid.setVisible(true); toolBar.setActiveEntry(KEY_EDITOR); } } });
/** * 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); } }
/** * 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); } }
private void hidePasswordPanel () { if (changePassBtn != null && passwordPanel != null) { changePassBtn.setCaption(getApp().getMessage("changePassword")); passwordPanel.setVisible(false); passwordBinder.setReadOnly(true); binderIsReadOnly = true; } }
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);
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; }
.bind(string->string,null); form.addComponent(repeatPasswordField); passwordPanel.setVisible(forcePasswordChange); passwordPanel.setContent(panelContent); return passwordPanel;