Examples of LayoutClickListener


Examples of com.vaadin.event.LayoutEvents.LayoutClickListener

        setCompositionRoot(layout);
        return this;
    }

    protected LayoutClickListener createLayoutClickListener() {
        return new LayoutClickListener() {
            public void layoutClick(LayoutClickEvent event) {
                FlexibleOptionGroupItemComponent c = null;
                boolean allowUnselection = optionGroup.isMultiSelect();
                if (event.getChildComponent() instanceof FlexibleOptionGroupItemComponent) {
                    c = (FlexibleOptionGroupItemComponent) event.getChildComponent();
View Full Code Here

Examples of com.vaadin.event.LayoutEvents.LayoutClickListener

                }
            });
            Label l = new Label(getMessagePrefixed("base.user.only"), Label.CONTENT_XHTML);
            HorizontalLayout hl = VaadinUtility.horizontalLayout(Alignment.MIDDLE_LEFT, cb, l);
            hl.setMargin(false, true, false, false);
            hl.addListener(new LayoutClickListener() {
                @Override
                public void layoutClick(LayoutClickEvent event) {
                    cb.setValue(!cb.booleanValue());
                }
            });
View Full Code Here

Examples of com.vaadin.event.LayoutEvents.LayoutClickListener

    }
    final Label descriptionLabel = new Label(descriptionText);
    descriptionLabel.addStyleName(ExplorerLayout.STYLE_CLICKABLE);
    descriptionLayout.addComponent(descriptionLabel);
   
    descriptionLayout.addListener(new LayoutClickListener() {
      public void layoutClick(LayoutClickEvent event) {
        if (event.getClickedComponent() != null && event.getClickedComponent().equals(descriptionLabel)) {
          // layout for textarea + ok button
          final VerticalLayout editLayout = new VerticalLayout();
          editLayout.setSpacing(true);
View Full Code Here

Examples of com.vaadin.event.LayoutEvents.LayoutClickListener

                else {
                    buildNotifications(event);
                    getUI().addWindow(notifications);
                    notifications.focus();
                    ((CssLayout) getUI().getContent())
                            .addLayoutClickListener(new LayoutClickListener() {
                                /**
                 *
                 */
                private static final long serialVersionUID = -6067867129998245551L;

View Full Code Here

Examples of com.vaadin.event.LayoutEvents.LayoutClickListener

            public void buttonClick(ClickEvent event) {
                Notification.show("Not implemented in this demo");
            }
        });

        draftThumb.addLayoutClickListener(new LayoutClickListener() {
            @Override
            public void layoutClick(LayoutClickEvent event) {
                if (event.getButton() == MouseButton.LEFT
                        && event.getChildComponent() != delete) {
                    editors.addTab(createEditorInstance(1, null, null))
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.