Examples of PopupManager


Examples of org.thechiselgroup.choosel.core.client.ui.popup.PopupManager

            public void onDragProxyAttached(DragProxyAttachedEvent event) {
                closeImage.setUrl(getInvisibleCloseImageUrl());
            }
        }, DragProxyAttachedEvent.TYPE);

        PopupManager popupManager = popupManagerFactory
                .createPopupManager(new Label(getClosePopupLabel()));
        popupManager.linkToWidget(closeImage);
        popupManager.setHideDelay(0);

        headerBar.add(closeImage);
        headerBar.setCellHorizontalAlignment(closeImage,
                HasAlignment.ALIGN_RIGHT);
        headerBar.setCellVerticalAlignment(closeImage, HasAlignment.ALIGN_TOP);
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.ui.popup.PopupManager

            actionAdapters
                    .add(new ActionToDragAvatarPopupWidgetFactoryActionAdapter(
                            viewAccessor, avatar, action));
        }

        final PopupManager popupManager = popupManagerFactory
                .createPopupManager(createWidget(resources, avatar,
                        actionAdapters));

        for (ResourceSetAvatarPopupWidgetFactoryAction action : actionAdapters) {
            ((ActionToDragAvatarPopupWidgetFactoryActionAdapter) action)
                    .setPopupManager(popupManager);
        }

        final HandlerRegistration link = popupManager.linkToWidget(avatar);

        popupManager.setEnabled(avatar.isEnabled());
        final HandlerRegistration handlerRegistration = avatar
                .addEnabledStatusHandler(new ResourceSetAvatarEnabledStatusEventHandler() {
                    @Override
                    public void onDragAvatarEnabledStatusChange(
                            ResourceSetAvatarEnabledStatusEvent event) {
                        popupManager.setEnabled(avatar.isEnabled());
                    }
                });

        avatar.addDisposable(new Disposable() {
            @Override
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.ui.popup.PopupManager

    public void onInteraction(ViewItem viewItem, ViewItemInteraction interaction) {
        assert viewItem != null;
        assert popupManagers.containsKey(viewItem.getViewItemID());
        assert interaction != null;

        PopupManager popupManager = getPopupManager(viewItem);

        switch (interaction.getEventType()) {
        case DRAG_START:
            popupManager.hidePopup();
            break;
        case MOUSE_MOVE:
            popupManager.onMouseMove(interaction.getClientX(),
                    interaction.getClientY());
            break;
        case MOUSE_DOWN:
            if (interaction.hasNativeEvent()) {
                NativeEvent nativeEvent = interaction.getNativeEvent();
                popupManager.onMouseDown(nativeEvent);
            }
            break;
        case MOUSE_OUT:
            popupManager.onMouseOut(interaction.getClientX(),
                    interaction.getClientY());
            break;
        case MOUSE_OVER:
            popupManager.onMouseOver(interaction.getClientX(),
                    interaction.getClientY());
            break;
        }
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.ui.popup.PopupManager

            actionAdapters
                    .add(new ActionToDragAvatarPopupWidgetFactoryActionAdapter(
                            viewAccessor, avatar, action));
        }

        final PopupManager popupManager = popupManagerFactory
                .createPopupManager(createWidget(resources, avatar,
                        actionAdapters));

        for (ResourceSetAvatarPopupWidgetFactoryAction action : actionAdapters) {
            ((ActionToDragAvatarPopupWidgetFactoryActionAdapter) action)
                    .setPopupManager(popupManager);
        }

        final HandlerRegistration link = popupManager.linkToWidget(avatar);

        popupManager.setEnabled(avatar.isEnabled());
        final HandlerRegistration handlerRegistration = avatar
                .addEnabledStatusHandler(new ResourceSetAvatarEnabledStatusEventHandler() {
                    @Override
                    public void onDragAvatarEnabledStatusChange(
                            ResourceSetAvatarEnabledStatusEvent event) {
                        popupManager.setEnabled(avatar.isEnabled());
                    }
                });

        avatar.addDisposable(new Disposable() {
            @Override
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.ui.popup.PopupManager

        });
    }

    private void initPopup(PopupManagerFactory popupManagerFactory) {
        popupLabel = new Label();
        PopupManager popupManager = popupManagerFactory
                .createPopupManager(popupLabel);
        popupManager.linkToWidget(this);
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.ui.popup.PopupManager

        });
    }

    private void initPopup(PopupManagerFactory popupManagerFactory) {
        popupLabel = new Label();
        PopupManager popupManager = popupManagerFactory
                .createPopupManager(popupLabel);
        popupManager.linkToWidget(this);
    }
View Full Code Here

Examples of uk.ac.man.cs.mig.coode.owlviz.ui.popup.PopupManager

      public void mouseClicked(MouseEvent e) {
        setComponentState();
      }
    });
    panel.add(displayPopupCheckBox, gbc);
    PopupManager popupManager = PopupManager.getInstance("Asserted");
    popupCombo = new JComboBox(popupManager.getPopupPages());
    gbc.gridx = 0;
    gbc.gridy = 1;
    panel.add(popupCombo, gbc);
    JComponent component = new JPanel();
    component.setLayout(new GridBagLayout());
View Full Code Here

Examples of uk.ac.man.cs.mig.coode.owlviz.ui.popup.PopupManager

    }
  }


  public void applyOptions() {
    PopupManager popupManager = PopupManager.getInstance("Asserted");
    if(displayPopupCheckBox.isSelected() == false) {
      popupManager.setCurrentPopupPage(null);
    }
    else {
      OWLInstancePopupPage popupPage = (OWLInstancePopupPage) popupCombo.getSelectedItem();
      popupManager.setCurrentPopupPage(popupPage);
    }
  }
View Full Code Here

Examples of uk.ac.man.cs.mig.coode.owlviz.ui.popup.PopupManager

    }
  }


  public void updateInterface() {
    PopupManager popupManager = PopupManager.getInstance("Asserted");
    Object curPopupPage = popupManager.getCurrentPopupPage();
    if(curPopupPage == null) {
      displayPopupCheckBox.setSelected(false);
      popupCombo.setEnabled(false);
    }
    else {
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.