public void layoutClick(LayoutClickEvent event) { if (event.getClickedComponent() != null && event.getClickedComponent().equals(dueDateLabel)) { // replace label with textfield replaceComponent(dueDateLabel, dueDateField); } } });
public void layoutClick(LayoutClickEvent event) { if (event.getClickedComponent() != null && event.getClickedComponent().equals(priorityLabel)) { // Replace label with combobox replaceComponent(priorityLabel, priorityComboBox); } } });
@SuppressWarnings("synthetic-access") public void layoutClick(LayoutClickEvent event) { Component currentComponent = event.getClickedComponent(); if (currentComponent != null) { boolean linked = false; do { currentComponent = currentComponent.getParent(); if ((currentComponent != null) && "linked".equals(((AbstractComponent)currentComponent).getData())) { linked = true; } if (event.getClickedComponent() instanceof CmsResourceIcon) { if (currentComponent == node) { openTargetPage((CmsSitemapTreeNodeData)(node.getData()), linked); } else if (currentComponent instanceof CmsSitemapTreeNode) { break; } } } while (currentComponent != null); } }
public void layoutClick(LayoutClickEvent event) { if (event.getClickedComponent() != null && event.getClickedComponent().equals(descriptionLabel)) {
public void layoutClick(LayoutClickEvent event) { if (event.getClickedComponent() != null && event.getClickedComponent().equals(descriptionLabel)) {
private void createListeners() { nameTextFieldBlurListener = event -> { if (!StringUtils.isEmpty(nameTextField.getValue())) { captionLayout.removeComponent(nameTextField); captionLayout.addComponent(nameLabel); } }; nameLayoutClickListner = event -> { if (event.getClickedComponent() instanceof Label) { captionLayout.removeComponent(nameLabel); captionLayout.addComponent(nameTextField); nameTextField.focus(); } }; queryTextField.addTextChangeListener((valid, query) -> enableDisableSaveButton(!valid, query)); }
private void createListeners() { nameTextFieldBlurListener = event -> { if (!StringUtils.isEmpty(nameTextField.getValue())) { captionLayout.removeComponent(nameTextField); captionLayout.addComponent(nameLabel); } }; nameLayoutClickListner = event -> { if (event.getClickedComponent() instanceof Label) { captionLayout.removeComponent(nameLabel); captionLayout.addComponent(nameTextField); nameTextField.focus(); } }; queryTextField.addTextChangeListener((valid, query) -> enableDisableSaveButton(!valid, query)); }